Local privilege escalation via mispatched BPF branch
Published Jul 29, 2024 · Updated Aug 5, 2026
Memory corruption in the BPF verifier in Linux 6.9 through 6.9.7 allows local users to gain kernel privileges via a crafted BPF program. In kernel/bpf/verifier.c, negative may_goto offsets are patched with the wrong control-flow adjustment, and equal-depth states are pruned despite representing an infinite loop. Unprivileged BPF must be enabled, or the user must hold a delegated BPF token or CAP_BPF; exploitation permits kernel-memory reads or writes, while a self-loop can lock the host.
Summary
What happened
Memory corruption in the BPF verifier in Linux 6.9 through 6.9.7 allows local users to gain kernel privileges via a crafted BPF program. In kernel/bpf/verifier.c, negative may_goto offsets are patched with the wrong control-flow adjustment, and equal-depth states are pruned despite representing an infinite loop. Unprivileged BPF must be enabled, or the user must hold a delegated BPF token or CAP_BPF; exploitation permits kernel-memory reads or writes, while a self-loop can lock the host.
The record
- CVE
- CVE-2024-42072
- Published
- Jul 29, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 29, 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=011832b97b311bb9e3c27945bc0d1089a14209c9 <175827e04f4be53f3dfb57edf12d0d49b18fd939
- Affected versionversion=011832b97b311bb9e3c27945bc0d1089a14209c9 <2b2efe1937ca9f8815884bd4dcd5b32733025103
- Affected versionversion=6.9
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
- CVE-2024-42072 BPF out-of-bounds read proof of conceptproof of concept · demonstrated
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