🇰🇷 한글 설명
Linux 커널의 usb gadget f_rndis 구성 요소에서 bind/unbind 사이클 이후 rndis->notify_req가 유효하지 않은 상태로 남는 취약점이 발견되었습니다. 이후 bind 과정에서 오류가 발생할 경우, 잘못된 요청을 해제하려 시도하면서 NULL 포인터 역참조가 발생하여 시스템이 충돌할 수 있습니다.
💡 쉬운 설명
USB 연결 설정 과정에서 오류가 발생할 때, 컴퓨터가 이미 사라진 정보를 다시 지우려고 시도하다가 시스템이 멈추거나 오류가 발생하는 문제입니다. 이는 잘못된 메모리 접근으로 인해 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_rndis: Refactor bind path to use __free()
After an bind/unbind cycle, the rndis->notify_req is left stale. If a
subsequent bind fails, the unified error label attempts to free this
stale request, leading to a NULL pointer dereference when accessing
ep->ops->free_request.
Refactor the error handling in the bind path to use the __free()
automatic cleanup mechanism.
📍 영향받는 시스템
Linux Kernel (usb gadget f_rndis 모듈 사용 시스템)
⚔️ 공격 벡터
USB Gadget 장치를 통한 특정 bind/unbind 시퀀스 유도 및 오류 발생 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 __free() 자동 정리 메커니즘을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.