🇰🇷 한글 설명
Linux 커널의 tw9903 미디어 드라이버에서 에러 경로 실행 시 v4l2_ctrl_handler_free()를 호출하지 않아 메모리가 누수되는 취약점입니다. v4l2_ctrl_handler_init()과 v4l2_ctrl_new_std()에서 할당한 메모리가 해제되지 않습니다.
💡 쉬운 설명
웹캠 드라이버가 오류 발생 시 사용한 메모리를 제대로 정리하지 않아, 반복적으로 드라이버가 실패할 때마다 메모리가 계속 쌓입니다. 오랜 시간에 걸쳐 메모리 부족으로 시스템 동작이 느려질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: i2c/tw9903: Fix potential memory leak in tw9903_probe()
In one of the error paths in tw9903_probe(), the memory allocated in
v4l2_ctrl_handler_init() and v4l2_ctrl_new_std() is not freed. Fix that
by calling v4l2_ctrl_handler_free() on the handler in that error path.
📍 영향받는 시스템
Linux kernel tw9903 미디어 드라이버 (I2C 카메라 모듈), 특히 patch 적용 전 모든 버전
⚔️ 공격 벡터
로컬 - tw9903 드라이버 프로브 단계에서 에러 발생 시 메모리 누수
🛡️ 대응 방법
Linux kernel을 최신 버전으로 업데이트하여 v4l2_ctrl_handler_free() 호출 패치 적용
🔧 검증 코드
커널 버전 확인 및 tw9903 드라이버 로드 상태 확인. 드라이버가 로드되지 않거나 최신 패치가 적용된 커널 버전이면 영향 없음
uname -r | grep -q '^' && echo 'Current kernel:' $(uname -r) || grep -i tw9903 /proc/modules 2>/dev/null || echo 'Driver not loaded'