# CVE-2021-47520: can: pch_can: pch_can_rx_normal: fix use after free

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2024-05-24T15:09:33.796Z
- Modified: 2026-08-05T08:48:14.519Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b21d18b51b31a24d17f883b678432fbdee3d5675 before bafe343a885c70dddf358379cf0b2a1c07355d8d; from b21d18b51b31a24d17f883b678432fbdee3d5675 before 3a3c46e2eff0577454860a203be1a8295f4acb76; from b21d18b51b31a24d17f883b678432fbdee3d5675 before affbad02bf80380a7403885b9fe4a1587d1bb4f3; from b21d18b51b31a24d17f883b678432fbdee3d5675 before 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; from b21d18b51b31a24d17f883b678432fbdee3d5675 before abb4eff3dcd2e583060082a18a8dbf31f02689d4; from b21d18b51b31a24d17f883b678432fbdee3d5675 before 703dde112021c93d6e89443c070e7dbd4dea612e; from b21d18b51b31a24d17f883b678432fbdee3d5675 before 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; from b21d18b51b31a24d17f883b678432fbdee3d5675 before 94cddf1e9227a171b27292509d59691819c458db; 2.6.37 (not affected: before 2.6.37; from 4.4.295 up to 4.4.*; from 4.9.293 up to 4.9.*; from 4.14.258 up to 4.14.*; from 4.19.221 up to 4.19.*; from 5.4.165 up to 5.4.*; from 5.10.85 up to 5.10.*; from 5.15.8 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 2.6.37 before 4.4.295; from 4.5 before 4.9.293; from 4.10 before 4.14.258; from 4.15 before 4.19.221; from 4.20 before 5.4.165; from 5.5 before 5.10.85; from 5.11 before 5.15.8

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2021-47520](https://www.cve.org/CVERecord?id=CVE-2021-47520), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47520](https://nvd.nist.gov/vuln/detail/CVE-2021-47520), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47520 · Whole record: https://cve.day/CVE-2021-47520.json · Rebuilt by cve.day 2026-11-25T22:58:08.898Z
