🔍 CVE-2026-99005

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-30 13:21
✅ 완료

🇰🇷 한글 설명

Linux 커널 i915 그래픽 드라이버의 RPS(Render Power State) 관리 로직에서 발생하는 경쟁 조건(race condition) 취약점입니다. GT가 parking된 후에도 RPS 인터럽트가 unmask되어 runtime PM wakelock 없이 하드웨어에 접근하는 문제가 있으며, 이로 인해 커널 경고와 taint가 발생할 수 있습니다. CVSS 점수는 아직 할당되지 않았습니다.

💡 쉬운 설명

그래픽 카드의 전원 관리 과정에서 타이밍 문제가 발생해, 카드가 절전 상태인데도 내부 설정을 건드리는 오류가 생깁니다. 주로 시스템 경고와 불안정을 일으키는 수준이며, 직접적인 해킹 위험은 낮은 것으로 보입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: drm/i915/gt: Unmask interrupts only when ACTIVE is true There is a small race window between intel_rps_boost() reading a stale ACTIVE state and queuing rps->work, where ACTIVE may be changed via asynchronous calls triggered by wakeref drop. This means that rps_work() could be triggered after the GT has been parked, so unmasking RPS PM interrupts would happen without holding PM wakelock. This sequence of events may be observed during live_rc6_ctx_wa() selftest: 1) live_rc6_ctx_wa() -> intel_engine_pm_put() -> wakeref_put() ASYNC1) wakeref_put() callback -> __engine_park() -> intel_gt_pm_put_async() -> intel_gt_pm_put_async_untracked() -> intel_wakeref_put_async() ASYNC2) wakeref_put_async() callback -> __gt_park() -> intel_rps_park() -> intel_rps_clear_active() [clear ACTIVE] WITH INTERRUPTS: -> rps_disable_interrupts() -> cancel_work_sync(rps->work) -> rps_reset_interrupts() [rps->pm_iir = 0] WITHOUT INTERRUPTS (TIMER mode): -> rps_stop_timer() -> cancel_work_sync(rps->work) 2) live_rc6_ctx_wa() -> intel_gt_wait_for_idle() -> intel_gt_retire_requests_timeout() -> dma_fence_wait_timeout() -> ops->wait() [i915_fence_wait()] -> i915_request_wait_timeout() -> intel_rps_boost() -> intel_rps_is_active() [check ACTIVE] [OPEN RACE WINDOW] -> queue_work(rps->work) -> retire_requests() -> i915_request_retire() -> intel_rps_dec_waiters() [from 1 to 0] If ASYNC1 and ASYNC2 would execute during [OPEN RACE WINDOW], then: 3) rps_work() executes from the workqueue and may satisfy "(!pm_iir && !client_boost)" test (in TIMER mode rps->pm_iir is zeroed by an earlier rps_work() call or never gets a new value after previous intel_rps_unpark() event), so it jumps to "out" label, bypassing intel_rps_is_active() guard and executes gen6_gt_pm_unmask_irq(); 4) GT is parked and runtime PM wakelock is dropped, so only a raw reference in __gt_park() -> intel_display_power_put_async() remains for 100ms, then the MMIO write in gen6_gt_pm_unmask_irq() detects missing wakelock via assert_rpm_wakelock_held() and emits "RPM wakelock ref not held during HW access" tainting kernel. Commit 3e7abf814193 ("drm/i915: Extract GT render power state management") dropped the "if (rps->interrupts_enabled)" guard that gen6_pm_rps_work() had around this unmask in i915_irq.c. INTEL_RPS_ACTIVE brackets the same window, since it is set in intel_rps_unpark() before rps_enable_interrupts() and rps_start_timer() and cleared in intel_rps_park() before rps_stop_timer() and rps_disable_interrupts(). Skip unmasking when RPS is no longer active (reaching unmask operation is independent of INTERRUPT mode). This does not prevent RPS operation from resuming on the next unpark. In interrupt mode, intel_rps_unpark() calls rps_enable_interrupts(), which enables and unmasks the PM interrupts. In timer mode, it calls rps_start_timer(), restarting periodic engine-busyness evaluation. The timer generates software RPS events and queues rps_work() directly, independently of PM interrupt delivery. Neither mode requires the late worker to unmask interrupts while the GT is parked (cherry picked from commit ca4a6deadad15b91ee083afe445fa6bdbfb68206)

📍 영향받는 시스템

Intel 그래픽(i915 드라이버)을 사용하는 Linux 커널 (수정 커밋 ca4a6deadad15b91ee083afe445fa6bdbfb68206 이전 버전)

⚔️ 공격 벡터

로컬 시스템에서 그래픽 작업 부하를 유발하는 방식으로 타이밍 경쟁을 유도할 수 있으나, 공개된 정보상 악용 사례나 권한 상승 경로는 확인되지 않음

🛡️ 대응 방법

커널 버전을 해당 수정 커밋이 포함된 최신 안정 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지 또는 Linux 커널 git 로그와 대조하여 수정 패치(ca4a6deadad15b91ee083afe445fa6bdbfb68206 또는 해당 백포트)가 포함되었는지 확인하며, 해당되지 않으면 업데이트가 필요합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel