Kernel warning via oversized BPF write length
Published Jul 12, 2024 · Updated May 23, 2026
Improper BPF packet-length handling in Linux allows local users to trigger a kernel warning via crafted BPF programs. __bpf_try_make_writable passes an unsigned write_len above INT_MAX into skb_ensure_writable, causing pskb_may_pull_reason to emit a WARN backtrace instead of rejecting it first. The trigger requires local low-privileged access and CONFIG_DEBUG_NET; nondebug builds reject the oversized pull without a backtrace.
Summary
What happened
Improper BPF packet-length handling in Linux allows local users to trigger a kernel warning via crafted BPF programs. __bpf_try_make_writable passes an unsigned write_len above INT_MAX into skb_ensure_writable, causing pskb_may_pull_reason to emit a WARN backtrace instead of rejecting it first. The trigger requires local low-privileged access and CONFIG_DEBUG_NET; nondebug builds reject the oversized pull without a backtrace.
The record
- CVE
- CVE-2024-40996
- Published
- Jul 12, 2024
- Updated
- May 23, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- Unavailable
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 12, 2024CVE publishedPublication date reported by the CVE source.
- May 23, 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=1b2b26595bb09febf14c5444c873ac4ec90a5a77 <7f9644782c559635bd676c12c59389a34ed7c866
- Affected versionversion=219eee9c0d16f1b754a8b85275854ab17df0850a <2bbe3e5a2f4ef69d13be54f1cf895b4658287080
- Affected versionversion=219eee9c0d16f1b754a8b85275854ab17df0850a <5e90258303a358e88737afb5048bee9113beea3a
- Affected versionversion=6.1.86 <6.1.96
- Affected versionversion=6.6.27 <6.6.36
- Affected versionversion=6.8.6 <6.9
- Affected versionversion=6.9
- Affected versionversion=8af60bb2b215f478b886f1d6d302fefa7f0b917d <dacc15e9cb248d19e5fc63c54bef0b9b55007761
- Affected versionversion=fff05b2b004d9a8a2416d08647f3dc9068e357c8
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
No sourced classifications are available.
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