# CVE-2021-47670: can: peak_usb: fix use after free bugs

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-04-17T18:01:30.722Z
- Modified: 2026-08-05T08:48:50.364Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

can: peak_usb: fix use after free bugs

After calling peak_usb_netif_rx_ni(skb), dereferencing skb is unsafe.
Especially, the can_frame cf which aliases skb memory is accessed
after the peak_usb_netif_rx_ni().

Reordering the lines solves the issue.

(As written by CVE List.)

## Affected

- Linux Linux: from 0a25e1f4f18566b750ebd3ae995af64e23111e63 before 5408824636fa0dfedb9ecb0d94abd573131bfbbe; from 0a25e1f4f18566b750ebd3ae995af64e23111e63 before ddd1416f44130377798c1430b76503513b7497c2; from 0a25e1f4f18566b750ebd3ae995af64e23111e63 before ec939c13c3fff2114479769c8380b7f1a54feca9; from 0a25e1f4f18566b750ebd3ae995af64e23111e63 before 50aca891d7a554db0901b245167cd653d73aaa71; 4.0 (not affected: before 4.0; from 4.19.171 up to 4.19.*; from 5.4.93 up to 5.4.*; from 5.10.11 up to 5.10.*; from 5.11 up to *)
- linux linux_kernel: from 4.0 before 4.19.171; from 4.20 before 5.4.93; from 5.5 before 5.10.11; 5.11

## 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`
- CISA-ADP: 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/5408824636fa0dfedb9ecb0d94abd573131bfbbe> (patch)
- <https://git.kernel.org/stable/c/ddd1416f44130377798c1430b76503513b7497c2> (patch)
- <https://git.kernel.org/stable/c/ec939c13c3fff2114479769c8380b7f1a54feca9> (patch)
- <https://git.kernel.org/stable/c/50aca891d7a554db0901b245167cd653d73aaa71> (patch)

## Sources

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

---

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