VDB

CVE-2021-47235

CVE-2021-47235 PUBLISHED

net: ethernet: fix potential use-after-free in ec_bhf_remove

Reported by linux · Published May 21, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux5.12.13, 5.10.46, 5.4.128, 4.19.196, 4.14.238, 4.9.274, 4.4.274

Affected products

VendorProductVersions
LinuxLinux6af55ff52b02d492d45db88df3e461fa51a6f753, 6af55ff52b02d492d45db88df3e461fa51a6f753, 6af55ff52b02d492d45db88df3e461fa51a6f753
LinuxLinux3.15, 0, 4.4.274
linuxlinux_kernel3.15, 3.15, 3.15
LinuxLinux6af55ff52b02d492d45db88df3e461fa51a6f753, 6af55ff52b02d492d45db88df3e461fa51a6f753, 6af55ff52b02d492d45db88df3e461fa51a6f753

Timeline

  • May 21, 2024 CVE Published
  • May 22, 2024 EPSS Score (30 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (12 in total, the first dated here)
  • Apr 29, 2026 Security Advisory (13 in total, the first dated here)
  • Jul 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-47235
vulnetix vdb fixes CVE-2021-47235

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-47235/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›