🔍 CVE-2026-74468

0.0
CVSS Score
UNKNOWN
2026-08-15
2026-08-19 17:21
✅ 완료

🇰🇷 한글 설명

Linux 커널의 GPIO PCH 드라이버에서 PREEMPT_RT 커널 사용 시 잘못된 잠금(lock) 유형을 사용하여 발생하는 문제입니다. irq_set_type 콜백이 잠긴 컨텍스트 내에서 잠들 수 있는(sleepable) spinlock_t를 호출하여 커널 패닉이나 버그를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 특정 장치를 제어할 때, 규칙에 맞지 않는 잠금 방식을 사용하여 시스템이 멈추거나 오류가 발생할 수 있는 결함입니다. 이를 해결하기 위해 더 안전하고 빠른 잠금 방식으로 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gpio: pch: use raw_spinlock_t for the register lock pch_irq_type() is registered as the irq_chip .irq_set_type callback and takes chip->spinlock with spin_lock_irqsave(). This callback is reached from __setup_irq() -> __irq_set_trigger() -> chip->irq_set_type() while the caller holds desc->lock, a raw_spinlock_t, with hardirqs disabled. That context is not sleepable, but on PREEMPT_RT a regular spinlock_t is an rtmutex-backed sleeping lock, so acquiring it there is invalid. This was confirmed on a PREEMPT_RT kernel with lockdep (PROVE_RAW_LOCK_NESTING and DEBUG_ATOMIC_SLEEP). A grounded PoC mirrored pch_irq_type()'s locking and drove it through the real genirq carrier irq_set_irq_type() -> __irq_set_trigger() -> chip->irq_set_type(), i.e. the same __irq_set_trigger() edge that __setup_irq() takes for a requested IRQ. With the original spin_lock_irqsave() edge lockdep reported an invalid wait context, immediately followed by: BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 95, name: insmod hardirqs last disabled at (3784): _raw_spin_lock_irqsave+0x4f/0x60 rt_spin_lock+0x3a/0x1c0 repro_irq_set_type+0x64/0xa0 [pch_repro] __irq_set_trigger+0x69/0x140 irq_set_irq_type+0x78/0xd0 Switching the mirrored lock to raw_spinlock_t made both splats go away. Convert the register lock to raw_spinlock_t. The same lock also serializes the GPIO direction/value callbacks and the suspend/resume register save/restore, but all of those critical sections only perform MMIO register accesses (ioread32()/iowrite32()) and irq_set_handler_locked(); none of them contain sleepable operations. Keeping this register lock non-sleeping is therefore appropriate for the irqchip callbacks and does not change the GPIO-side locking contract. This is the same class of issue and fix as recently addressed for other GPIO controllers, e.g. commit 286533cb14a3 ("gpio: sch: use raw_spinlock_t in the irq startup path") and commit 90f0109019e6 ("gpio: eic-sprd: use raw_spinlock_t in the irq startup path").

📍 영향받는 시스템

PREEMPT_RT 패치가 적용된 Linux 커널 (GPIO PCH 드라이버 사용 환경)

⚔️ 공격 벡터

직접적인 외부 공격보다는 특정 하드웨어 설정이나 드라이버 호출 과정에서 시스템 불안정성을 유발하는 방식입니다.

🛡️ 대응 방법

Linux 커널을 최신 버전으로 업데이트하여 PCH 드라이버의 레지스터 잠금이 raw_spinlock_t로 수정된 패치를 적용해야 합니다.

🔧 검증 코드

커널 버전과 드라이버 소스 내의 수정 사항을 확인하여 해당 패치가 적용되었는지 검토합니다.

Shell / Script
uname -a && grep -r 'pch_irq_type' /lib/modules/$(uname -r)/kernel/drivers/gpio/ 2>/dev/null

💻 영향받는 소프트웨어

NVIDIA Cloud Gaming Guest Driver for Linux