Kernel memory corruption via mismatched BPF storage
Published Aug 16, 2025 · Updated Aug 5, 2026
Out-of-bounds access in the Linux kernel allows local users to read or corrupt kernel memory through crafted BPF tail calls. After a tail call between programs with different cgroup storage sizes, bpf_get_local_storage() retains the first program's map rather than selecting the callee's map. An unprivileged local user can disclose data, escalate privileges, or panic the kernel when unprivileged BPF is enabled.
Summary
What happened
Out-of-bounds access in the Linux kernel allows local users to read or corrupt kernel memory through crafted BPF tail calls. After a tail call between programs with different cgroup storage sizes, bpf_get_local_storage() retains the first program's map rather than selecting the callee's map. An unprivileged local user can disclose data, escalate privileges, or panic the kernel when unprivileged BPF is enabled.
The record
- CVE
- CVE-2025-38502
- Published
- Aug 16, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 16, 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.9
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <19341d5c59e8c7e8528e40f8663e99d67810473c
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <41688d1fc5d163a6c2c0e95c0419e2cb31a44648
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <66da7cee78590259b400e51a70622ccd41da7bb2
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <7acfa07c585e3d7a64654d38f0a5c762877d0b9b
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <abad3d0bad72a52137e0c350c59542d75ae4f513
- Affected versionversion=7d9c3427894fe70d1347b4820476bf37736d2ff0 <c1c74584b9b4043c52e41fec415226e582d266a3
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.
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