🔍 CVE-2026-99050

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

🇰🇷 한글 설명

Linux 커널의 GPIO MPSSE 드라이버에서 IRQ 폴링 워커를 등록하고 예약하는 순서 문제로 인해 race condition이 발생합니다. 장치 분리(disconnect) 과정에서 워커를 놓치면 mpsse_priv 구조체가 해제된 후에도 워커가 접근하여 use-after-free가 발생할 수 있습니다. 패치는 워커 등록과 예약을 하나의 spinlock 임계 구간에서 처리하고, dying 플래그를 도입해 해제 방식을 안전하게 분기합니다.

💡 쉬운 설명

USB로 연결된 GPIO 장치를 뽑는 순간 백그라운드 작업이 이미 해제된 메모리에 접근할 수 있는 타이밍 문제입니다. 이로 인해 시스템이 불안정해지거나 비정상 동작이 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gpio: mpsse: fix race when arming the IRQ poll worker gpio_mpsse_irq_enable() arms the poll worker before publishing it: schedule_work() runs before the worker is added to priv->workers. If gpio_mpsse_disconnect() walks the list in that window it misses the worker, and once disconnect returns, the USB core frees mpsse_priv while the orphaned gpio_mpsse_poll() work keeps accessing it, causing a use-after-free. Fix this by publishing and arming the worker in one irq_spin critical section. Teardown walks the same list under irq_spin, so a worker found on the list is guaranteed to be armed, and cancel_work_sync() handles it whether it is queued or running. A worker armed after the disconnect walk would still be missed, so also set a new priv->dying flag under irq_spin before the teardown walk, and check it in the same critical section, freeing it via kfree_rcu() instead when the device is going away, since kfree() would be called with the IRQ core's raw spinlock held and may sleep on PREEMPT_RT. schedule_work() is safe to call with irq_spin held, and the next probe gets a fresh mpsse_priv, so the flag never needs to be cleared. This issue was found by an in-house static analysis tool.

📍 영향받는 시스템

패치 이전의 Linux 커널 (gpio: mpsse 드라이버를 사용하는 USB-MPSSE 기반 GPIO 장치 환경)

⚔️ 공격 벡터

물리적으로 USB MPSSE 장치를 연결 해제하는 타이밍을 이용하는 로컬 상황으로, 주로 안정성(크래시) 문제이며 원격 공격 경로는 명확하지 않습니다.

🛡️ 대응 방법

사용 중인 배포판의 최신 커널로 업데이트하거나 배포사가 제공하는 해당 패치가 포함된 보안 업데이트를 적용하세요.

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지 또는 upstream 커널의 해당 수정 커밋 포함 여부와 비교하여, 패치가 반영된 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel