Vulnerability · Published May 24, 2024 · Assigned by Linux

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

High 8.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.3%top 72.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux5.15.15-1DEBIAN-CVE-2021-47520
Debian:13linux5.15.15-1DEBIAN-CVE-2021-47520
Debian:14linux5.15.15-1DEBIAN-CVE-2021-47520
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2021-47520
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2021-47520
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2021-47520

Affected products (as reported)

VendorProductVersions
Linux Linux b21d18b51b31a24d17f883b678432fbdee3d5675 – before bafe343a885c70dddf358379cf0b2a1c07355d8db21d18b51b31a24d17f883b678432fbdee3d5675 – before 3a3c46e2eff0577454860a203be1a8295f4acb76b21d18b51b31a24d17f883b678432fbdee3d5675 – before affbad02bf80380a7403885b9fe4a1587d1bb4f3b21d18b51b31a24d17f883b678432fbdee3d5675 – before 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aab21d18b51b31a24d17f883b678432fbdee3d5675 – before abb4eff3dcd2e583060082a18a8dbf31f02689d4b21d18b51b31a24d17f883b678432fbdee3d5675 – before 703dde112021c93d6e89443c070e7dbd4dea612eb21d18b51b31a24d17f883b678432fbdee3d5675 – before 6c73fc931658d8cbc8a1714b326cb31eb71d16a7b21d18b51b31a24d17f883b678432fbdee3d5675 – before 94cddf1e9227a171b27292509d59691819c458db
Linux Linux 2.6.37

References