CVE-2021-47520

can: pch_can: pch_can_rx_normal: fix use after free

HIGH
7.8
CVSS Score
Published: May 24, 2024 at 03:09 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: can: pch_can: pch_can_rx_normal: fix use after free After calling netif_receive_skb(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is dereferenced just after the call netif_receive_skb(skb). Reordering the lines solves the issue.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.37 ≤ v < 4.14.2582.6.37 ≤ v < 4.19.2212.6.37 ≤ v < 4.4.2952.6.37 ≤ v < 4.9.2932.6.37 ≤ v < 5.10.852.6.37 ≤ v < 5.15.82.6.37 ≤ v < 5.162.6.37 ≤ v < 5.4.1654.10 ≤ v < 4.14.2584.15 ≤ v < 4.19.2214.20 ≤ v < 5.4.1654.5 ≤ v < 4.9.2935.11 ≤ v < 5.15.85.5 ≤ v < 5.10.852.6.37b21d18b51b31a24d17f883b678432fbdee3d5675
Vendor states this is fixed in 3a3c46e2eff0577454860a203be1a8295f4acb76 (fixed)
Vendor states this is fixed in 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa (fixed)
Vendor states this is fixed in 6c73fc931658d8cbc8a1714b326cb31eb71d16a7 (fixed)
Vendor states this is fixed in 703dde112021c93d6e89443c070e7dbd4dea612e (fixed)
Vendor states this is fixed in 94cddf1e9227a171b27292509d59691819c458db (fixed)
Vendor states this is fixed in abb4eff3dcd2e583060082a18a8dbf31f02689d4 (fixed)
Vendor states this is fixed in affbad02bf80380a7403885b9fe4a1587d1bb4f3 (fixed)
Vendor states this is fixed in bafe343a885c70dddf358379cf0b2a1c07355d8d (fixed)
Vendor states this is fixed in 2.6.37 (unaffected)
Vendor states this is fixed in 4.14.258 (unaffected)
Vendor states this is fixed in 4.19.221 (unaffected)
Vendor states this is fixed in 4.4.295 (unaffected)
Vendor states this is fixed in 4.9.293 (unaffected)
Vendor states this is fixed in 5.10.85 (unaffected)
Vendor states this is fixed in 5.15.8 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.165 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3a3c46e2eff0577454860a203be1a8295f4acb76
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c73fc931658d8cbc8a1714b326cb31eb71d16a7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/703dde112021c93d6e89443c070e7dbd4dea612e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/94cddf1e9227a171b27292509d59691819c458db
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/abb4eff3dcd2e583060082a18a8dbf31f02689d4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/affbad02bf80380a7403885b9fe4a1587d1bb4f3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bafe343a885c70dddf358379cf0b2a1c07355d8d

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card