🇰🇷 한글 설명
Linux 커널의 stm32: dcmi 드라이버에서 프로브(probe) 실패 시 비동기 알림(async notifier)을 해제하지 않는 취약점이 발견되었습니다. 초기화 과정 중 리셋 제어에 실패할 경우, 드라이버 코어가 제거 함수를 호출하지 않아 알림 등록이 그대로 남게 됩니다. 이를 해결하기 위해 오류 경로에서 알림을 명시적으로 해제하도록 수정되었습니다.
💡 쉬운 설명
장치를 처음 작동시킬 때 오류가 발생하면, 시스템이 장치를 완전히 정리하지 못하고 찌꺼기를 남기는 문제입니다. 이로 인해 시스템의 메모리나 자원이 제대로 관리되지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: stm32: dcmi: unregister notifier on probe failure
dcmi_graph_init() registers the async notifier before dcmi_probe() toggles
the reset line. If reset_control_assert() or reset_control_deassert()
fails afterwards, probe returns through err_cleanup and the driver core
will not call dcmi_remove().
Unregister the notifier before cleaning it up on that error path,
matching the successful remove path and the V4L2 async notifier lifetime
rules.
[hverkuil: added Fixes tag]
📍 영향받는 시스템
Linux kernel (stm32: dcmi driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 하드웨어 리셋 제어 실패를 유도하여 커널 자원 누수를 발생시킬 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인