CVE-2025-38502
- 공개
- 2025년 8월 16일
- 수정
- 2026년 10월 16일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
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.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| debian_linuxdebian | 이 버전만 | 취약 | = | 11.0 | 벤더 공지 확인 | |
| linux_kernellinux | 5.9 | ≤ | 취약 | < | 5.15.192 | 5.15.192이상 |
| 5.16 | ≤ | 취약 | < | 6.1.151 | 6.1.151이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.105 | 6.6.105이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.46 | 6.12.46이상 | |
| 6.13 | ≤ | 취약 | < | 6.16.1 | 6.16.1이상 | |
| simatic_cn_4100_firmwaresiemens | 최초 버전 | ≤ | 취약 | < | 5.0 | 5.0이상 |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 8줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 5.9 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 5.9 | — | |
| 5.15.192 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.151 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.105 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.46 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.16.1 | ≤ | 영향 없음 | ≤ | 6.16.* | — | |
| 6.17 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치6
- git.kernel.org/stable/c/19341d5c59e8c7e8528e40f8663e99d67810473c
- git.kernel.org/stable/c/41688d1fc5d163a6c2c0e95c0419e2cb31a44648
- git.kernel.org/stable/c/66da7cee78590259b400e51a70622ccd41da7bb2
- git.kernel.org/stable/c/7acfa07c585e3d7a64654d38f0a5c762877d0b9b
- git.kernel.org/stable/c/abad3d0bad72a52137e0c350c59542d75ae4f513