Local privilege escalation via stale BPF packet pointer
Published May 5, 2025 · Updated Aug 5, 2026
Use-after-free in the Linux kernel BPF verifier allows local users to escalate privileges through a crafted extension program. bpf_check_attach_btf_id accepts an extension whose changes_pkt_data behavior differs from the replaced global subprogram, leaving the caller's packet pointer stale after data reallocation. The attack requires CAP_BPF and CAP_NET_ADMIN or delegated BPF-token access; stale-pointer reads expose kernel heap, while writes enable control-flow hijacking or a kernel panic.
Summary
What happened
Use-after-free in the Linux kernel BPF verifier allows local users to escalate privileges through a crafted extension program. bpf_check_attach_btf_id accepts an extension whose changes_pkt_data behavior differs from the replaced global subprogram, leaving the caller's packet pointer stale after data reallocation. The attack requires CAP_BPF and CAP_NET_ADMIN or delegated BPF-token access; stale-pointer reads expose kernel heap, while writes enable control-flow hijacking or a kernel panic.
The record
- CVE
- CVE-2024-58100
- Published
- May 5, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 5, 2025CVE 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=5.6
- Affected versionversion=be8704ff07d2374bcc5c675526f95e70c6459683 <3846e2bea565ee1c5195dcc625fda9868fb0e3b3
- Affected versionversion=be8704ff07d2374bcc5c675526f95e70c6459683 <7197fc4acdf238ec8ad06de5a8235df0c1f9c7d7
- Affected versionversion=be8704ff07d2374bcc5c675526f95e70c6459683 <81f6d0530ba031b5f038a091619bf2ff29568852
What conditions does exploitation require?
What is affected?
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