🇰🇷 한글 설명
Linux 커널의 MHI EP 드라이버에서 버퍼가 완전히 기록되기 전에 읽기 포인터(rd_offset)가 먼저 업데이트되는 취약점이 발견되었습니다. 이로 인해 호스트가 초기화되지 않았거나 불완전한 데이터를 읽게 되어 데이터 오염이 발생할 수 있는 레이스 컨디션 문제가 존재합니다.
💡 쉬운 설명
데이터를 다 쓰기도 전에 '다 썼다'고 표시를 해버려서, 컴퓨터가 잘못된 데이터를 읽게 되는 문제입니다. 이로 인해 시스템 데이터가 깨지거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: ep: Update read pointer only after buffer is written
Inside mhi_ep_ring_add_element, the read pointer (rd_offset) is updated
before the buffer is written, potentially causing race conditions where
the host sees an updated read pointer before the buffer is actually
written. Updating rd_offset prematurely can lead to the host accessing
an uninitialized or incomplete element, resulting in data corruption.
Invoke the buffer write before updating rd_offset to ensure the element
is fully written before signaling its availability.
📍 영향받는 시스템
Linux kernel (MHI EP driver 사용 시스템)
⚔️ 공격 벡터
로컬 또는 원격에서 MHI 인터페이스를 통한 데이터 전송 시 레이스 컨디션을 유발하여 데이터 오염 유도
🛡️ 대응 방법
MHI EP 드라이버의 버퍼 쓰기 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인