🇰🇷 한글 설명
Linux 커널의 iowarrior USB 드라이버에서 연결 해제 시 발생하는 레이스 컨디션으로 인해 Use-After-Free 취약점이 존재합니다. mutex_unlock() 호출 시 뮤텍스 구조체에 접근하는 과정에서 객체의 수명 관리가 적절히 이루어지지 않아 발생합니다. 이를 해결하기 위해 kref를 사용하여 드라이버 데이터의 해제 시점을 안전하게 관리하도록 수정되었습니다.
💡 쉬운 설명
USB 장치를 뽑는 순간 프로그램이 장치 정보를 잘못된 시점에 삭제하려고 시도하여 시스템 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
USB: iowarrior: fix use-after-free on disconnect race
mutex_unlock() may access the mutex structure after releasing the lock
and therefore cannot be used to manage lifetime of objects directly
(unlike spinlocks and refcounts). [1][2]
Use a kref to release the driver data to avoid use-after-free in
mutex_unlock() when release() races with disconnect().
[1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic")
[2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most
other sleeping locks, can still use the lock object
after it's unlocked")
📍 영향받는 시스템
iowarrior 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
USB 장치의 연결 및 해제 과정을 정밀하게 조작하여 특정 타이밍에 레이스 컨디션을 유도함
🛡️ 대응 방법
iowarrior 드라이버의 수명 관리에 kref를 적용한 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 버전인지 배포판 보안 공지를 통해 확인