🇰🇷 한글 설명
Linux 커널 USB 이미지 드라이버(mdc800)에서 타임아웃 발생 시 활성 download URB를 정리하지 않는 결함이 있습니다. 이로 인해 subsequent read() 호출 시 동일한 URB를 재제출하면서 'URB submitted while active' 경고와 함께 시스템 오류가 발생합니다. 패치는 wait_event_timeout()의 반환값을 확인하여 타임아웃 시 URB를 종료시킵니다.
💡 쉬운 설명
USB 카메라 드라이버가 응답을 기다리다 포기할 때, 내부 작업을 제대로 정리하지 않습니다. 그 다음 사용자가 다시 읽기를 시도하면 이미 진행 중인 작업을 다시 시작하려고 해서 에러가 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
usb: image: mdc800: kill download URB on timeout
mdc800_device_read() submits download_urb and waits for completion.
If the timeout fires and the device has not responded, the function
returns without killing the URB, leaving it active.
A subsequent read() resubmits the same URB while it is still
in-flight, triggering the WARN in usb_submit_urb():
"URB submitted while active"
Check the return value of wait_event_timeout() and kill the URB if
it indicates timeout, ensuring the URB is complete before its status
is inspected or the URB is resubmitted.
Similar to
- commit 372c93131998 ("USB: yurex: fix control-URB timeout handling")
- commit b98d5000c505 ("media: rc: iguanair: handle timeouts")
📍 영향받는 시스템
Linux 커널 mdc800 USB 이미지 드라이버 (version < 패치 적용 버전)
⚔️ 공격 벡터
로컬 DoS: USB 장치 타임아웃 유도 후 반복적인 read() 호출로 커널 경고 및 오작동 유발
🛡️ 대응 방법
영향받는 Linux 커널을 최신 버전으로 업데이트하거나 해당 CVE 패치가 적용된 버전으로 업그레이드
🔧 검증 코드
mdc800 모듈이 로드되어 있으면 현재 커널에 해당 드라이버가 있으며, 커널 버전으로 패치 적용 여부를 확인할 수 있습니다. 모듈이 없으면 영향받지 않습니다.
grep -i 'mdc800' /proc/modules 2>/dev/null || echo 'Not loaded'; uname -r