# CVE-2021-47520: can: pch\_can: pch\_can\_rx\_normal: fix use after free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-24T15:09:33.796Z
- **Modified:** 2026-08-05T08:48:14.519Z

## 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

## 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

- Linux: \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< bafe343a885c70dddf358379cf0b2a1c07355d8d; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< 3a3c46e2eff0577454860a203be1a8295f4acb76; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< affbad02bf80380a7403885b9fe4a1587d1bb4f3; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< abb4eff3dcd2e583060082a18a8dbf31f02689d4; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< 703dde112021c93d6e89443c070e7dbd4dea612e; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; \>= b21d18b51b31a24d17f883b678432fbdee3d5675, \< 94cddf1e9227a171b27292509d59691819c458db (cvelist)
- Linux: 2.6.37 (cvelist)

## Mitigation

- Upgrade Linux to 94cddf1e9227a171b27292509d59691819c458db or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/bafe343a885c70dddf358379cf0b2a1c07355d8d>
- patch: <https://git.kernel.org/stable/c/3a3c46e2eff0577454860a203be1a8295f4acb76>
- patch: <https://git.kernel.org/stable/c/affbad02bf80380a7403885b9fe4a1587d1bb4f3>
- patch: <https://git.kernel.org/stable/c/3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa>
- patch: <https://git.kernel.org/stable/c/abb4eff3dcd2e583060082a18a8dbf31f02689d4>
- patch: <https://git.kernel.org/stable/c/703dde112021c93d6e89443c070e7dbd4dea612e>
- patch: <https://git.kernel.org/stable/c/6c73fc931658d8cbc8a1714b326cb31eb71d16a7>
- patch: <https://git.kernel.org/stable/c/94cddf1e9227a171b27292509d59691819c458db>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47520>

HTML: <https://flawdb.com/CVE-2021-47520> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47520>
