🇰🇷 한글 설명
Linux 커널의 fsl-imx8mq-usb 드라이버에서 프로브(probe) 오류 발생 시 typec 스위치 자원이 해제되지 않는 메모리 누수 취약점이 발견되었습니다. 기존에는 드라이버 제거 시에만 자원이 해제되었으나, 프로브 실패 시에도 자원이 정상적으로 정리되도록 수정되었습니다.
💡 쉬운 설명
장치를 처음 연결할 때 오류가 발생하면 시스템의 특정 자원이 사용 중인 상태로 남아 계속 낭비되는 문제가 있었습니다. 이 패치를 통해 오류가 발생하더라도 사용하던 자원을 즉시 반환하여 시스템 안정성을 높였습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
phy: fsl-imx8mq-usb: fix typec switch leak on probe error path
If probe fails after imx95_usb_phy_get_tca() succeeds, the typec
switch leaks because the only cleanup path was in .remove(), which
never runs on probe failure.
Use devm_add_action_or_reset() so the switch is cleaned up on both
probe failure and driver removal. The imx95_usb_phy_put_tca() is no
longer needed, it will be removed in .remove() too.
📍 영향받는 시스템
Linux kernel (fsl-imx8mq-usb driver components)
⚔️ 공격 벡터
로컬 시스템에서 드라이버 프로브 실패를 유도하여 점진적인 자원 고갈(Resource Exhaustion) 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인