Local privilege escalation via BPF pointer overflow
Published Jun 18, 2025 · Updated Aug 5, 2026
Integer overflow in Linux kernel BPF ARRAY maps allows local users to corrupt kernel memory through a map larger than 4 GB. Pointer calculations in kernel/bpf/arraymap.c multiply 32-bit index and element-size values without first widening them, producing a wrapped element address. Unprivileged BPF exposes the basic path, while the CAP_BPF timer path can yield arbitrary kernel reads or writes, control-flow hijacking, or a panic.
Summary
What happened
Integer overflow in Linux kernel BPF ARRAY maps allows local users to corrupt kernel memory through a map larger than 4 GB. Pointer calculations in kernel/bpf/arraymap.c multiply 32-bit index and element-size values without first widening them, producing a wrapped element address. Unprivileged BPF exposes the basic path, while the CAP_BPF timer path can yield arbitrary kernel reads or writes, control-flow hijacking, or a panic.
The record
- CVE
- CVE-2022-50167
- Published
- Jun 18, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 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.3
- Affected versionversion=c85d69135a9175c50a823d04d62d932312d037b3 <063e092534d4c6785228e5b1eb6e9329f66ccbe4
- Affected versionversion=c85d69135a9175c50a823d04d62d932312d037b3 <3c7256b880b3a5aa1895fd169a34aa4224a11862
- Affected versionversion=c85d69135a9175c50a823d04d62d932312d037b3 <87ac0d600943994444e24382a87aa19acc4cd3d4
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