Kernel compromise via stale BPF deallocator call
Published Jul 12, 2024 · Updated Aug 5, 2026
Use-after-free in Linux 6.6.26 through 6.6.34 and 6.8.5 through 6.9.5 allows local users to compromise the kernel via BPF links. bpf_link_free follows dealloc_deferred after it can free the link, then reads link->ops->dealloc from that freed object and can call through recycled memory. Reaching the path requires BPF and performance-monitoring privileges; successful reuse grants kernel memory access and control-flow hijacking, while an unweaponized trigger can panic the kernel.
Summary
What happened
Use-after-free in Linux 6.6.26 through 6.6.34 and 6.8.5 through 6.9.5 allows local users to compromise the kernel via BPF links. bpf_link_free follows dealloc_deferred after it can free the link, then reads link->ops->dealloc from that freed object and can call through recycled memory. Reaching the path requires BPF and performance-monitoring privileges; successful reuse grants kernel memory access and control-flow hijacking, while an unweaponized trigger can panic the kernel.
The record
- CVE
- CVE-2024-40909
- Published
- Jul 12, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 12, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 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=1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce <2884dc7d08d98a89d8d65121524bb7533183a63a
- Affected versionversion=1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce <fa97b8fed9896f1e89cb657513e483a152d4c382
- Affected versionversion=5d8d447777564b35f67000e7838e7ccb64d525c8
- Affected versionversion=6.6.26 <6.6.35
- Affected versionversion=6.8.5 <6.9
- Affected versionversion=6.9
- Affected versionversion=876941f533e7b47fc69977fc4551c02f2d18af97 <91cff53136daeff50816b0baeafd38a6976f6209
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.
Weakness, pattern, technique
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