🇰🇷 한글 설명
Linux 커널의 MHI 호스트 드라이버에서 unprepare 과정과 queue_buf 호출 사이의 레이스 컨디션 취약점이 발견되었습니다. 채널이 해제된 후 mhi_gen_tre()가 실행될 경우 유효하지 않은 메모리 참조로 인해 시스템 패닉(Page Fault)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제어하는 소프트웨어가 종료되는 과정에서 데이터 처리 순서가 꼬여 시스템이 갑자기 멈추거나 꺼질 수 있는 문제입니다. 데이터가 들어오는 통로가 이미 닫혔는데 데이터를 보내려고 시도할 때 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: host: Fix race between unprepare and queue_buf
A client driver may use mhi_unprepare_from_transfer() to quiesce
incoming data during the client driver's tear down. The client driver
might also be processing data at the same time, resulting in a call to
mhi_queue_buf() which will invoke mhi_gen_tre(). If mhi_gen_tre() runs
after mhi_unprepare_from_transfer() has torn down the channel, a panic
will occur due to an invalid dereference leading to a page fault.
This occurs because mhi_gen_tre() does not verify the channel state
after locking it. Fix this by having mhi_gen_tre() confirm the channel
state is valid, or return error to avoid accessing deinitialized data.
[mani: added stable tag]
📍 영향받는 시스템
Linux kernel (MHI host driver 관련 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 드라이버 동작을 유도하여 시스템 패닉(DoS)을 일으킬 수 있음
🛡️ 대응 방법
MHI 드라이버의 채널 상태 확인 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 안정화 버전인지 확인