CVE-2021-47520
can: pch_can: pch_can_rx_normal: fix use after free
Mitigation
- Upgrade Linux to 94cddf1e9227a171b27292509d59691819c458db or later.
Who should check
- Anyone running Linux >= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < abb4eff3dcd2e583060082a18a8dbf31f02689d4; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 703dde112021c93d6e89443c070e7dbd4dea612e; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 94cddf1e9227a171b27292509d59691819c458db
- Anyone running Linux 2.6.37
Vulnerability facts
- Affected
- Linux >= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < abb4eff3dcd2e583060082a18a8dbf31f02689d4; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 703dde112021c93d6e89443c070e7dbd4dea612e; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 94cddf1e9227a171b27292509d59691819c458db; Linux 2.6.37
- Fixed in
- Linux 3a3c46e2eff0577454860a203be1a8295f4acb76, Linux 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, Linux 703dde112021c93d6e89443c070e7dbd4dea612e, Linux 6c73fc931658d8cbc8a1714b326cb31eb71d16a7, Linux 94cddf1e9227a171b27292509d59691819c458db
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
- CWE
- CWE-416
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < abb4eff3dcd2e583060082a18a8dbf31f02689d4; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 703dde112021c93d6e89443c070e7dbd4dea612e; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 94cddf1e9227a171b27292509d59691819c458db | — | cvelist |
| Linux | 2.6.37 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47520. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47520.md Affected: Linux >= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b… Fixed in: Linux 3a3c46e2eff0577454860a203be1a8295f4acb76, Linux 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, Linux 703dde112021c93d6e89443c070e7dbd4dea612e, Linux 6c73fc931658d8cbc8a1714b326cb31eb71d16a7, Linux 94cddf1e9227a171b27292509d59691819c458db Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/bafe343a885c70dddf358379cf0b2a1c07355d8d
- https://git.kernel.org/stable/c/3a3c46e2eff0577454860a203be1a8295f4acb76
- https://git.kernel.org/stable/c/affbad02bf80380a7403885b9fe4a1587d1bb4f3
- https://git.kernel.org/stable/c/3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa
- https://git.kernel.org/stable/c/abb4eff3dcd2e583060082a18a8dbf31f02689d4
- https://git.kernel.org/stable/c/703dde112021c93d6e89443c070e7dbd4dea612e
- https://git.kernel.org/stable/c/6c73fc931658d8cbc8a1714b326cb31eb71d16a7
- https://git.kernel.org/stable/c/94cddf1e9227a171b27292509d59691819c458db
FAQ
Is CVE-2021-47520 being exploited?
There is no confirmed exploitation: CVE-2021-47520 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47520?
High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47520?
Linux >= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < abb4eff3dcd2e583060082a18a8dbf31f02689d4; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 703dde112021c93d6e89443c070e7dbd4dea612e; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 94cddf1e9227a171b27292509d59691819c458db; Linux 2.6.37.
Is there a fix for CVE-2021-47520?
Yes. Fixed in Linux 3a3c46e2eff0577454860a203be1a8295f4acb76, Linux 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, Linux 703dde112021c93d6e89443c070e7dbd4dea612e, Linux 6c73fc931658d8cbc8a1714b326cb31eb71d16a7, Linux 94cddf1e9227a171b27292509d59691819c458db. Upgrade Linux to 94cddf1e9227a171b27292509d59691819c458db or later.
How do I check if I'm affected by CVE-2021-47520?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.