CVE-2021-47670
JSON

8.8high

can: peak_usb: fix use after free bugs

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 4.0 before 4.19.171, from 4.20 before 5.4.93, from 5.5 before 5.10.11, 5.11NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: peak_usb: corrección de errores de use after free. Tras llamar a peak_usb_netif_rx_ni(skb), desreferenciar skb no es seguro. En particular, se accede al cf can_frame, que crea un alias de memoria skb, después de peak_usb_netif_rx_ni(). Reordenar las líneas soluciona el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47670 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47670 changed 2026-08-04Public domain