HomeDefectsLIN1025-3235
Acknowledged

LIN1025-3235 : Security Advisory - linux - CVE-2025-38502

Created: Aug 17, 2025    Updated: Jan 12, 2026
Resolved Date: Sep 15, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]bpf: Fix oob access in cgroup local storage[EOL][EOL]Lonial reported that an out-of-bounds access in cgroup local storage[EOL]can be crafted via tail calls. Given two programs each utilizing a[EOL]cgroup local storage with a different value size, and one program[EOL]doing a tail call into the other. The verifier will validate each of[EOL]the indivial programs just fine. However, in the runtime context[EOL]the bpf_cg_run_ctx holds an bpf_prog_array_item which contains the[EOL]BPF program as well as any cgroup local storage flavor the program[EOL]uses. Helpers such as bpf_get_local_storage() pick this up from the[EOL]runtime context:[EOL][EOL]  ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx);[EOL]  storage = ctx->prog_item->cgroup_storage[stype];[EOL][EOL]  if (stype == BPF_CGROUP_STORAGE_SHARED)[EOL]    ptr = &READ_ONCE(storage->buf)->data[0];[EOL]  else[EOL]    ptr = this_cpu_ptr(storage->percpu_buf);[EOL][EOL]For the second program which was called from the originally attached[EOL]one, this means bpf_get_local_storage() will pick up the former[EOL]program's map, not its own. With mismatching sizes, this can result[EOL]in an unintended out-of-bounds access.[EOL][EOL]To fix this issue, we need to extend bpf_map_owner with an array of[EOL]storage_cookie[] to match on i) the exact maps from the original[EOL]program if the second program was using bpf_get_local_storage(), or[EOL]ii) allow the tail call combination if the second program was not[EOL]using any of the cgroup local storage maps.

CREATE(Triage):(User=pbi-cn) [CVE-2025-38502 (https://nvd.nist.gov/vuln/detail/CVE-2025-38502)