CVE-2021-47520

HighCVSS 7.8/10Last modified Aug 4, 2026

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= b21d18b51b31a24d17f883b678432fbdee3d5675, < bafe343a885c70dddf358379cf0b2a1c07355d8d; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3a3c46e2eff0577454860a203be1a8295f4acb76; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < affbad02bf80380a7403885b9fe4a1587d1bb4f3; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < abb4eff3dcd2e583060082a18a8dbf31f02689d4; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 703dde112021c93d6e89443c070e7dbd4dea612e; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 6c73fc931658d8cbc8a1714b326cb31eb71d16a7; >= b21d18b51b31a24d17f883b678432fbdee3d5675, < 94cddf1e9227a171b27292509d59691819c458db
LinuxLinux2.6.37

References

Timeline

Published
May 24, 2024
Last modified
Aug 4, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-475217.8In the Linux kernel, the following vulnerability has been resolved: can: sja1000: fix use after free in ems_pcmcia_add_card() If the last CVE-2021-475225.5In the Linux kernel, the following vulnerability has been resolved: HID: bigbenff: prevent null pointer dereference When emulating the devCVE-2021-475235.5In the Linux kernel, the following vulnerability has been resolved: IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr This buffer is currently CVE-2021-475245.5In the Linux kernel, the following vulnerability has been resolved: serial: liteuart: fix minor-number leak on probe errors Make sure to rCVE-2021-475257.8In the Linux kernel, the following vulnerability has been resolved: serial: liteuart: fix use-after-free and memleak on unbind Deregister CVE-2021-475265.5In the Linux kernel, the following vulnerability has been resolved: serial: liteuart: Fix NULL pointer dereference in ->remove() drvdata hCVE-2021-475275.5In the Linux kernel, the following vulnerability has been resolved: serial: core: fix transmit-buffer reset and memleak Commit 761ed4a9458CVE-2021-475285.5In the Linux kernel, the following vulnerability has been resolved: usb: cdnsp: Fix a NULL pointer dereference in cdnsp_endpoint_init() InCVE-2021-475295.5In the Linux kernel, the following vulnerability has been resolved: iwlwifi: Fix memory leaks in error handling path Should an error occurCVE-2021-475305.5In the Linux kernel, the following vulnerability has been resolved: drm/msm: Fix wait_fence submitqueue leak We weren't dropping the submiCVE-2021-475315.5In the Linux kernel, the following vulnerability has been resolved: drm/msm: Fix mmap to include VM_IO and VM_DONTDUMP In commit 510410bfcCVE-2021-475325.5In the Linux kernel, the following vulnerability has been resolved: drm/msm/devfreq: Fix OPP refcnt leak
CVE-2021-47520: High severity, CVSS 7.8 | Vulnix