CVE-2021-47520

published 24 May 2024 · updated 5 Aug 2026

can: pch_can: pch_can_rx_normal: fix use after free

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3a3c46e2eff0577454860a203be1a8295f4acb76, Kernel 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, Kernel 6c73fc931658d8cbc8a1714b326cb31eb71d16a7 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.37, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <3a3c46e2eff0577454860a203be1a8295f4acb76, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <6c73fc931658d8cbc8a1714b326cb31eb71d16a7, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <703dde112021c93d6e89443c070e7dbd4dea612e, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <94cddf1e9227a171b27292509d59691819c458db, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <abb4eff3dcd2e583060082a18a8dbf31f02689d4, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <affbad02bf80380a7403885b9fe4a1587d1bb4f3, >=b21d18b51b31a24d17f883b678432fbdee3d5675 <bafe343a885c70dddf358379cf0b2a1c07355d8d3a3c46e2eff0577454860a203be1a8295f4acb76, 3e193ef4e0a3f5bf92ede83ef214cb09d01b00aa, 6c73fc931658d8cbc8a1714b326cb31eb71d16a7, 703dde112021c93d6e89443c070e7dbd4dea612e, 94cddf1e9227a171b27292509d59691819c458db, abb4eff3dcd2e583060082a18a8dbf31f02689d4, affbad02bf80380a7403885b9fe4a1587d1bb4f3, bafe343a885c70dddf358379cf0b2a1c07355d8d

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47520 severity on Zeptric[![CVE-2021-47520](https://zeptric.io/badge/cve/CVE-2021-47520.svg)](https://zeptric.io/cve/CVE-2021-47520)