🔍 CVE-2025-21876

8.8
CVSS Score
HIGH
2025-03-27
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 iommu/vt-d 구성 요소에서 RCU(Read-Copy-Update) 사용 방식의 오류로 인해 발생하는 취약점입니다. drhd 리스트를 순회할 때 dmar_global_lock을 보유하지 않아 발생하는 부적절한 RCU 사용 문제를 수정하여 시스템 안정성을 확보합니다.

💡 쉬운 설명

컴퓨터의 핵심 부품을 관리하는 소프트웨어에서 데이터 처리 규칙을 어겨 시스템이 불안정해질 수 있는 문제입니다. 이 오류를 방치하면 시스템이 예기치 않게 멈추거나 경고가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Fix suspicious RCU usage Commit <d74169ceb0d2> ("iommu/vt-d: Allocate DMAR fault interrupts locally") moved the call to enable_drhd_fault_handling() to a code path that does not hold any lock while traversing the drhd list. Fix it by ensuring the dmar_global_lock lock is held when traversing the drhd list. Without this fix, the following warning is triggered: ============================= WARNING: suspicious RCU usage 6.14.0-rc3 #55 Not tainted ----------------------------- drivers/iommu/intel/dmar.c:2046 RCU-list traversed in non-reader section!! other info that might help us debug this: rcu_scheduler_active = 1, debug_locks = 1 2 locks held by cpuhp/1/23: #0: ffffffff84a67c50 (cpu_hotplug_lock){++++}-{0:0}, at: cpuhp_thread_fun+0x87/0x2c0 #1: ffffffff84a6a380 (cpuhp_state-up){+.+.}-{0:0}, at: cpuhp_thread_fun+0x87/0x2c0 stack backtrace: CPU: 1 UID: 0 PID: 23 Comm: cpuhp/1 Not tainted 6.14.0-rc3 #55 Call Trace: <TASK> dump_stack_lvl+0xb7/0xd0 lockdep_rcu_suspicious+0x159/0x1f0 ? __pfx_enable_drhd_fault_handling+0x10/0x10 enable_drhd_fault_handling+0x151/0x180 cpuhp_invoke_callback+0x1df/0x990 cpuhp_thread_fun+0x1ea/0x2c0 smpboot_thread_fn+0x1f5/0x2e0 ? __pfx_smpboot_thread_fn+0x10/0x10 kthread+0x12a/0x2d0 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x4a/0x60 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> Holding the lock in enable_drhd_fault_handling() triggers a lockdep splat about a possible deadlock between dmar_global_lock and cpu_hotplug_lock. This is avoided by not holding dmar_global_lock when calling iommu_device_register(), which initiates the device probe process.

📍 영향받는 시스템

Linux kernel (특히 6.14.0-rc3 이전 버전 및 vt-d를 사용하는 시스템)

⚔️ 공격 벡터

로컬 시스템에서 커널 내부의 동기화 오류를 유발하여 시스템 불안정성을 초래하는 방식

🛡️ 대응 방법

커널 패치(Commit d74169ceb0d2 적용 버전)를 적용하여 최신 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 수정된 버전(d74169ceb0d2 커밋 이후 버전)인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel