CVE-2025-38066
- 공개
- 2025년 6월 18일
- 수정
- 2026년 11월 6일
- 조회
- 0
- 상태
- Analyzed
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
dm cache: prevent BUG_ON by blocking retries on failed device resumes
A cache device failing to resume due to mapping errors should not be retried, as the failure leaves a partially initialized policy object. Repeating the resume operation risks triggering BUG_ON when reloading cache mappings into the incomplete policy object.
Reproduce steps:
1. create a cache metadata consisting of 512 or more cache blocks, with some mappings stored in the first array block of the mapping array. Here we use cache_restore v1.0 to build the metadata.
cat <<EOF >> cmeta.xml <superblock uuid="" block_size="128" nr_cache_blocks="512" \ policy="smq" hint_width="4"> <mappings> <mapping cache_block="0" origin_block="0" dirty="false"/> </mappings> </superblock> EOF dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" cache_restore -i cmeta.xml -o /dev/mapper/cmeta --metadata-version=2 dmsetup remove cmeta
2. wipe the second array block of the mapping array to simulate data degradations.
mapping_root=$(dd if=/dev/sdc bs=1c count=8 skip=192 \ 2>/dev/null | hexdump -e '1/8 "%u\n"') ablock=$(dd if=/dev/sdc bs=1c count=8 skip=$((4096*mapping_root+2056)) \ 2>/dev/null | hexdump -e '1/8 "%u\n"') dd if=/dev/zero of=/dev/sdc bs=4k count=1 seek=$ablock
3. try bringing up the cache device. The resume is expected to fail due to the broken array block.
dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" dmsetup create cdata --table "0 65536 linear /dev/sdc 8192" dmsetup create corig --table "0 524288 linear /dev/sdc 262144" dmsetup create cache --notable dmsetup load cache --table "0 524288 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0" dmsetup resume cache
4. try resuming the cache again. An unexpected BUG_ON is triggered while loading cache mappings.
dmsetup resume cache
Kernel logs:
(snip) ------------[ cut here ]------------ kernel BUG at drivers/md/dm-cache-policy-smq.c:752! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 332 Comm: dmsetup Not tainted 6.13.4 #3 RIP: 0010:smq_load_mapping+0x3e5/0x570
Fix by disallowing resume operations for devices that failed the initial attempt.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| debian_linuxdebian | 이 버전만 | 취약 | = | 11.0 | 벤더 공지 확인 | |
| linux_kernellinux | 최초 버전 | ≤ | 취약 | < | 5.4.294 | 5.4.294이상 |
| 5.5 | ≤ | 취약 | < | 5.10.238 | 5.10.238이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.185 | 5.15.185이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.141 | 6.1.141이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.93 | 6.6.93이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.31 | 6.12.31이상 | |
| 6.13 | ≤ | 취약 | < | 6.14.9 | 6.14.9이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.2 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.2 | — | |
| 5.4.294 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.238 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.185 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.141 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.93 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.31 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.14.9 | ≤ | 영향 없음 | ≤ | 6.14.* | — | |
| 6.15 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/00586b78eeb7c626a14ca13453a1631f88a7cf36
- git.kernel.org/stable/c/025c8f477625eb39006ded650e7d027bcfb20e79
- git.kernel.org/stable/c/3986ef4a9b6a0d9c28bc325d8713beba5e67586f
- git.kernel.org/stable/c/5da692e2262b8f81993baa9592f57d12c2703dea
- git.kernel.org/stable/c/c5356a5e80442131e2714d0d26bb110590e4e568