CVE-2026-74384
- 공개
- 2026년 8월 15일
- 수정
- 2026년 10월 17일
- 조회
- 0
- 상태
- Received
개요
이 취약점이 무엇인지
Linux 커널에서 다음 취약점이 해결되었다:
nvme-multipath: struct nvme_ns_head의 플렉스 배열 크기 수정
struct nvme_ns_head는 flexible array 멤버인 current_path[]를 포함하며, 이는 NUMA 노드 ID를 사용하여 인덱싱된다: head->current_path[numa_node_id()]
이 구조체는 현재 다음과 같이 할당된다: size = sizeof(struct nvme_ns_head) + (num_possible_nodes() * sizeof(struct nvme_ns *)); head = kzalloc(size, GFP_KERNEL);
이 할당은 NUMA 노드 ID가 0부터 num_possible_nodes() - 1까지 연속적이고 밀집되어 있다고 가정한다. 이 가정은 많은 시스템에서 유효하지만, powerpc와 같은 일부 아키텍처에서는 항상 그렇지 않다.
일부 powerpc 시스템에서는 NUMA 노드 ID가 희소할 수 있다. 예를 들어: NUMA: NUMA node(s): 6 NUMA node0 CPU(s): 80-159 NUMA node8 CPU(s): 0-79 NUMA node252 CPU(s): NUMA node253 CPU(s): NUMA node254 CPU(s): NUMA node255 CPU(s):
즉, 가능한/온라인 NUMA 노드 ID는 0, 8, 252, 253, 254, 255이다. 이 경우 num_possible_nodes() = 6이다.
따라서 current_path[]에 6개의 항목만 메모리가 할당된다. 그러나 배열은 실제 NUMA 노드 ID를 사용하여 인덱싱된다. 결과적으로 다음과 같은 접근은 범위를 벗어나며, 다음과 같은 KASAN 오류가 발생한다:
head->current_path[8] 또는 head->current_path[252]
================================================================== BUG: KASAN: slab-out-of-bounds in nvme_mpath_revalidate_paths+0x22c/0x290 [nvme_core] Write of size 8 at addr c00020003bda35b8 by task kworker/u641:2/1997
CPU: 1 UID: 0 PID: 1997 Comm: kworker/u641:2 Not tainted 7.1.0-rc5-dirty #14 PREEMPT(lazy) Hardware name: 8335-GTH POWER9 0x4e1202 opal:skiboot-v6.5.3-35-g1851b2a06 PowerNV Workqueue: async async_run_entry_fn Call Trace: [c000200037fa7510] [c0000000021c23d4] dump_stack_lvl+0x88/0xdc (unreliable) [c000200037fa7540] [c0000000009fda90] print_report+0x22c/0x67c [c000200037fa7630] [c0000000009fd508] kasan_report+0x108/0x220 [c000200037fa7740] [c0000000009fff48] __asan_store8+0xe8/0x120 [c000200037fa7760] [c008000018e76474] nvme_mpath_revalidate_paths+0x22c/0x290 [nvme_core] [c000200037fa7800] [c008000018e6556c] nvme_update_ns_info+0x4a4/0x5e0 [nvme_core] [c000200037fa7a50] [c008000018e66270] nvme_alloc_ns+0x6d8/0x1a70 [nvme_core] [c000200037fa7c20] [c008000018e679fc] nvme_scan_ns+0x3f4/0x630 [nvme_core] [c000200037fa7d10] [c00000000031f22c] async_run_entry_fn+0x9c/0x3a0 [c000200037fa7db0] [c0000000002fa544] process_one_work+0x414/0xa10 [c000200037fa7ec0] [c0000000002fbf00] worker_thread+0x320/0x640 [c000200037fa7f80] [c00000000030d0f8] kthread+0x278/0x290 [c000200037fa7fe0] [c00000000000ded8] start_kernel_thread+0x14/0x18
Allocated by task 1997 on cpu 1 at 35.928317s:
The buggy address belongs to the object at c00020003bda3000 which belongs to the cache kmalloc-rnd-15-2k of size 2048 The buggy address is located 16 bytes to the right of allocated 1448-byte region [c00020003bda3000, c00020003bda35a8)
The buggy address belongs to the physical page:
Memory state around the buggy address: c00020003bda3480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c00020003bda3500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >c00020003bda3580: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ^ c00020003bda3600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc c00020003bda3680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================
이 문제는 플렉스 배열을 num_possible_nodes() 대신 nr_node_ids를 사용하여 할당함으로써 수정되었다. nr_node_ids는 가능한 최대 NUMA 노드 ID를 나타내므로, numa_node_id()를 사용한 current_path[] 인덱싱이 희소 노드 ID가 있는 시스템에서도 안전해진다.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.20 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.20 | — | |
| 5.10.261 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.212 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.178 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.145 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.97 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.40 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 7.1.5 | ≤ | 영향 없음 | ≤ | 7.1.* | — | |
| 7.2 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
기타8
- git.kernel.org/stable/c/001e57554de81aa79c25c18fd53911d8a415c304
- git.kernel.org/stable/c/140d6fff4ed266592492a23444043842b4af7a62
- git.kernel.org/stable/c/1d4131b5c9823c7d2c86389898ad1b466af7df5e
- git.kernel.org/stable/c/316b5f1168264844aa125959de1d6da2b1905795
- git.kernel.org/stable/c/7173a741fed73de6247384056fe92e582ba12507