{"id":"CVE-2021-47235","published":"2024-05-21T14:19:37Z","modified":"2026-05-11T13:50:34Z","title":"net: ethernet: fix potential use-after-free in ec_bhf_remove","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: fix potential use-after-free in ec_bhf_remove\n\nstatic void ec_bhf_remove(struct pci_dev *dev)\n{\n...\n\tstruct ec_bhf_priv *priv = netdev_priv(net_dev);\n\n\tunregister_netdev(net_dev);\n\tfree_netdev(net_dev);\n\n\tpci_iounmap(dev, priv->dma_io);\n\tpci_iounmap(dev, priv->io);\n...\n}\n\npriv is netdev private data, but it is used\nafter free_netdev(). It can cause use-after-free when accessing priv\npointer. So, fix it by moving free_netdev() after pci_iounmap()\ncalls.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00228,"percentile":0.13905,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/db2bc3cfd2bc01621014d4f17cdfc74611f339c8","tags":[]},{"url":"https://git.kernel.org/stable/c/1cafc540b7bf1b6a5a77dc000205fe337ef6eba6","tags":[]},{"url":"https://git.kernel.org/stable/c/b1ad283755095a4b9d1431aeb357d7df1a33d3bb","tags":[]},{"url":"https://git.kernel.org/stable/c/0260916843cc74f3906acf8b6f256693e01530a2","tags":[]},{"url":"https://git.kernel.org/stable/c/19f88ca68ccf8771276a606765239b167654f84a","tags":[]},{"url":"https://git.kernel.org/stable/c/95deeb29d831e2fae608439e243e7a520611e7ea","tags":[]},{"url":"https://git.kernel.org/stable/c/d11d79e52ba080ee567cb7d7eb42a5ade60a8130","tags":[]},{"url":"https://git.kernel.org/stable/c/9cca0c2d70149160407bda9a9446ce0c29b6e6c6","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.78}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < db2bc3cfd2bc01621014d4f17cdfc74611f339c8",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < 1cafc540b7bf1b6a5a77dc000205fe337ef6eba6",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < b1ad283755095a4b9d1431aeb357d7df1a33d3bb",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < 0260916843cc74f3906acf8b6f256693e01530a2",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < 19f88ca68ccf8771276a606765239b167654f84a",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < 95deeb29d831e2fae608439e243e7a520611e7ea",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < d11d79e52ba080ee567cb7d7eb42a5ade60a8130",">= 6af55ff52b02d492d45db88df3e461fa51a6f753, < 9cca0c2d70149160407bda9a9446ce0c29b6e6c6"]},{"vendor":"Linux","product":"Linux","versions":["3.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-17T17:38:04.934934Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33883","exploited":false,"provenance":"source"}}