CVE-2025-21991
- 공개
- 2025년 4월 2일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
x86/microcode/AMD: Fix out-of-bounds on systems with CPU-less NUMA nodes
Currently, load_microcode_amd() iterates over all NUMA nodes, retrieves their CPU masks and unconditionally accesses per-CPU data for the first CPU of each mask.
According to Documentation/admin-guide/mm/numaperf.rst:
"Some memory may share the same node as a CPU, and others are provided as memory only nodes."
Therefore, some node CPU masks may be empty and wouldn't have a "first CPU".
On a machine with far memory (and therefore CPU-less NUMA nodes): - cpumask_of_node(nid) is 0 - cpumask_first(0) is CONFIG_NR_CPUS - cpu_data(CONFIG_NR_CPUS) accesses the cpu_info per-CPU array at an index that is 1 out of bounds
This does not have any security implications since flashing microcode is a privileged operation but I believe this has reliability implications by potentially corrupting memory while flashing a microcode update.
When booting with CONFIG_UBSAN_BOUNDS=y on an AMD machine that flashes a microcode update. I get the following splat:
UBSAN: array-index-out-of-bounds in arch/x86/kernel/cpu/microcode/amd.c:X:Y index 512 is out of range for type 'unsigned long[512]' [...] Call Trace: dump_stack __ubsan_handle_out_of_bounds load_microcode_amd request_microcode_amd reload_store kernfs_fop_write_iter vfs_write ksys_write do_syscall_64 entry_SYSCALL_64_after_hwframe
Change the loop to go over only NUMA nodes which have CPUs before determining whether the first CPU on the respective node needs microcode update.
[ bp: Massage commit message, fix typo. ]
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.14.308 | ≤ | 취약 | < | 4.15 | 4.15이상 |
| 4.19.276 | ≤ | 취약 | < | 4.20 | 4.20이상 | |
| 5.4.235 | ≤ | 취약 | < | 5.5 | 5.5이상 | |
| 5.10.173 | ≤ | 취약 | < | 5.11 | 5.11이상 | |
| 5.15.99 | ≤ | 취약 | < | 5.16 | 5.16이상 | |
| 6.1.16 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 | |
| 6.2.3 | ≤ | 취약 | < | 6.6.84 | 6.6.84이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.20 | 6.12.20이상 | |
| 6.13 | ≤ | 취약 | < | 6.13.8 | 6.13.8이상 | |
| 이 버전만 | 취약 | = | 6.14 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc6 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 17줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.4.235 | ≤ | 취약 | < | 5.4.292 | 5.4.292이상 |
| 5.10.173 | ≤ | 취약 | < | 5.10.236 | 5.10.236이상 | |
| 5.15.99 | ≤ | 취약 | < | 5.15.180 | 5.15.180이상 | |
| 6.1.16 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 | |
| 4.14.308 | ≤ | 취약 | < | 4.15 | 4.15이상 | |
| 4.19.276 | ≤ | 취약 | < | 4.20 | 4.20이상 | |
| 6.2.3 | ≤ | 취약 | < | 6.3 | 6.3이상 | |
| 이 버전만 | 취약 | = | 6.3 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.3 | — | |
| 5.4.292 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.236 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.180 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.132 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.84 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.20 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13.8 | ≤ | 영향 없음 | ≤ | 6.13.* | — | |
| 6.14 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/18b5d857c6496b78ead2fd10001b81ae32d30cac
- git.kernel.org/stable/c/488ffc0cac38f203979f83634236ee53251ce593
- git.kernel.org/stable/c/5ac295dfccb5b015493f86694fa13a0dde4d3665
- git.kernel.org/stable/c/985a536e04bbfffb1770df43c6470f635a6b1073
- git.kernel.org/stable/c/d509c4731090ebd9bbdb72c70a2d70003ae81f4f