Vulnerability

CVE-2021-47235

highCVSS 3.1 7.8Published 21 May 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Linux linux kernel

Weakness type

References

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning