Kernel compromise via premature network-device private-data release
Published May 21, 2024 · Updated May 11, 2026
Use-after-free in the ec_bhf Ethernet driver in Linux allows local users to compromise the kernel through PCI device removal. ec_bhf_remove calls free_netdev before reading priv->dma_io and priv->io for pci_iounmap, dereferencing private data owned by the freed net_device. The affected path requires the ec_bhf driver and PCI-device teardown; a successful trigger can crash or compromise the kernel.
Summary
What happened
Use-after-free in the ec_bhf Ethernet driver in Linux allows local users to compromise the kernel through PCI device removal. ec_bhf_remove calls free_netdev before reading priv->dma_io and priv->io for pci_iounmap, dereferencing private data owned by the freed net_device. The affected path requires the ec_bhf driver and PCI-device teardown; a successful trigger can crash or compromise the kernel.
The record
- CVE
- CVE-2021-47235
- Published
- May 21, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.15
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <0260916843cc74f3906acf8b6f256693e01530a2
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <19f88ca68ccf8771276a606765239b167654f84a
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <1cafc540b7bf1b6a5a77dc000205fe337ef6eba6
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <95deeb29d831e2fae608439e243e7a520611e7ea
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <9cca0c2d70149160407bda9a9446ce0c29b6e6c6
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <b1ad283755095a4b9d1431aeb357d7df1a33d3bb
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <d11d79e52ba080ee567cb7d7eb42a5ade60a8130
- Affected versionversion=6af55ff52b02d492d45db88df3e461fa51a6f753 <db2bc3cfd2bc01621014d4f17cdfc74611f339c8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo