🇰🇷 한글 설명
Linux 커널의 mcp251x 드라이버에서 mcp251x_open() 함수의 에러 경로 처리 중 데드락(Deadlock)이 발생하는 취약점입니다. 에러 발생 시 뮤텍스 락을 보유한 상태에서 인터럽트를 해제하려고 시도하여, 인터럽트 핸들러와 서로를 기다리는 교착 상태가 발생할 수 있습니다.
💡 쉬운 설명
장치를 실행하다가 오류가 났을 때, 시스템이 스스로 멈춰버리는 현상이 발생할 수 있습니다. 장치를 제어하는 권한을 서로 잡고 놓지 않아 컴퓨터의 특정 기능이 마비되는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
can: mcp251x: fix deadlock in error path of mcp251x_open
The mcp251x_open() function call free_irq() in its error path with the
mpc_lock mutex held. But if an interrupt already occurred the
interrupt handler will be waiting for the mpc_lock and free_irq() will
deadlock waiting for the handler to finish.
This issue is similar to the one fixed in commit 7dd9c26bd6cf ("can:
mcp251x: fix deadlock if an interrupt occurs during mcp251x_open") but
for the error path.
To solve this issue move the call to free_irq() after the lock is
released. Setting `priv->force_quit = 1` beforehand ensure that the IRQ
handler will exit right away once it acquired the lock.
📍 영향받는 시스템
mcp251x 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 인터럽트를 유도하여 에러 경로를 실행시킴으로써 시스템 중단 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인