CVE-2021-47235

HIGH

Linux Kernel 3.15-4.4.273 - Use-After-Free in ec_bhf_remove

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: fix potential use-after-free in ec_bhf_remove static void ec_bhf_remove(struct pci_dev *dev) { ... struct ec_bhf_priv *priv = netdev_priv(net_dev); unregister_netdev(net_dev); free_netdev(net_dev); pci_iounmap(dev, priv->dma_io); pci_iounmap(dev, priv->io); ... } priv is netdev private data, but it is used after free_netdev(). It can cause use-after-free when accessing priv pointer. So, fix it by moving free_netdev() after pci_iounmap() calls.

Scores

CVSS v3 7.8
EPSS 0.0023
EPSS Percentile 13.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416
Status published
Products (20)
Linux/Linux < 3.15
Linux/Linux 3.15
Linux/Linux 4.14.238 - 4.14.*
Linux/Linux 4.19.196 - 4.19.*
Linux/Linux 4.4.274 - 4.4.*
Linux/Linux 4.9.274 - 4.9.*
Linux/Linux 5.10.46 - 5.10.*
Linux/Linux 5.12.13 - 5.12.*
Linux/Linux 5.13
Linux/Linux 5.4.128 - 5.4.*
... and 10 more
Published May 21, 2024
Tracked Since Feb 18, 2026