CVE-2025-38502
bpf: Fix oob access in cgroup local storage
No known exploitation. EPSS puts it in the 10th percentile. Fixed versions are out.
No public exploit knownFix5 products5 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.119301
What to do
Find your product and version, then upgrade to the build on the right.
- LinuxAffected: ≥ 7d9c3427894fe70d1347b4820476bf37736d2ff0, < c1c74584b9b4043c52e41fec415226e582d266a3Upgrade to: c1c74584b9b4043c52e41fec415226e582d266a3Affected: ≥ 7d9c3427894fe70d1347b4820476bf37736d2ff0, < 66da7cee78590259b400e51a70622ccd41da7bb2Upgrade to: 66da7cee78590259b400e51a70622ccd41da7bb2Affected: ≥ 7d9c3427894fe70d1347b4820476bf37736d2ff0, < 7acfa07c585e3d7a64654d38f0a5c762877d0b9bUpgrade to: 7acfa07c585e3d7a64654d38f0a5c762877d0b9bAffected: ≥ 7d9c3427894fe70d1347b4820476bf37736d2ff0, < 41688d1fc5d163a6c2c0e95c0419e2cb31a44648Upgrade to: 41688d1fc5d163a6c2c0e95c0419e2cb31a44648 + 2 more branchesStated by: CVE record
- Siemens Simatic Cn 4100 FirmwareAffected: < 5.0Upgrade to: 5.0Stated by: NVD
- Red Hat Inc. Red Hat Enterprise LinuxAffected: 8Upgrade to: not statedStated by: BDU
- Canonical Ltd. UbuntuAffected: 22.04 LTSUpgrade to: not statedStated by: BDU
- ООО «РусБИТех-Астра» Astra Linux Special EditionAffected: 1.8Upgrade to: not statedStated by: BDU
Versions as the sources state them. 4 more products have version data. Full version matrix after sign-in
What it is
From the CVE record
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix oob access in cgroup local storage Lonial reported that an out-of-bounds access in cgroup local storage can be crafted via tail calls. Given two programs each utilizing a cgroup local storage with a different value size, and one program doing a tail call into the other. The verifier will validate each of the indivial programs just fine. However, in the runtime context the bpf_cg_run_ctx holds an bpf_prog_array_item which contains the BPF program as well as any cgroup local storage flavor the program uses. Helpers such as bpf_get_local_storage() pick this up from the runtime context: ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); storage = ctx->prog_item->cgroup_storage[stype]; if (stype == BPF_CGROUP_STORAGE_SHARED) ptr = &READ_ONCE(storage->buf)->data[0]; else ptr = this_cpu_ptr(storage->percpu_buf); For the second program which was called from the originally attached one, this means bpf_get_local_storage() will pick up the former program's map, not its own. With mismatching sizes, this can result in an unintended out-of-bounds access. To fix this issue, we need to extend bpf_map_owner with an array of storage_cookie[] to match on i) the exact maps from the original program if the second program was using bpf_get_local_storage(), or ii) allow the tail call combination if the second program was not using any of the cgroup local storage maps.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.2% chance of exploitation activity in the next 30 days, which ranks it in the 10th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
10 events over 425 days, from the signal feeds we watch.
- Patch availablerecord updated
- Patch availablerecord updated
- OpenVAS check added
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
And 6 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored 7.8 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Linux, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI