CVE-2021-47520
JSON

8.8high

can: pch_can: pch_can_rx_normal: fix use after free

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.8NVD

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
NVD7.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 partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: pch_can: pch_can_rx_normal: corregir el use after free después de llamar a netif_receive_skb(skb), desreferenciar skb no es seguro. Especialmente, el can_frame cf que alias la memoria skb se desreferencia justo después de la llamada netif_receive_skb(skb). Reordenar las líneas resuelve el problema.

References

Sources

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