CVE 목록
High7.8유형: 운영체제

CVE-2025-21991

공개
2025년 4월 2일
수정
2026년 6월 17일
조회
0
상태
Modified
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
7.8High

개요

이 취약점이 무엇인지

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_kernellinux4.14.308≤취약<4.154.15이상
4.19.276≤취약<4.204.20이상
5.4.235≤취약<5.55.5이상
5.10.173≤취약<5.115.11이상
5.15.99≤취약<5.165.16이상
6.1.16≤취약<6.1.1326.1.132이상
6.2.3≤취약<6.6.846.6.84이상
6.7≤취약<6.12.206.12.20이상
6.13≤취약<6.13.86.13.8이상
이 버전만취약=6.14 rc1벤더 공지 확인
이 버전만취약=6.14 rc2벤더 공지 확인
이 버전만취약=6.14 rc3벤더 공지 확인
이 버전만취약=6.14 rc4벤더 공지 확인
이 버전만취약=6.14 rc5벤더 공지 확인
이 버전만취약=6.14 rc6벤더 공지 확인

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 17줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux5.4.235≤취약<5.4.2925.4.292이상
5.10.173≤취약<5.10.2365.10.236이상
5.15.99≤취약<5.15.1805.15.180이상
6.1.16≤취약<6.1.1326.1.132이상
4.14.308≤취약<4.154.15이상
4.19.276≤취약<4.204.20이상
6.2.3≤취약<6.36.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에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.