🇰🇷 한글 설명
Linux 커널의 usbnet 드라이버에서 장치 등록 과정 중 kevent 작업이 완료되기 전에 장치가 해제될 경우 발생하는 'free active object' 오류입니다. 장치가 활성화되지 않은 상태에서 연결이 끊기면 kevent 취소 절차가 생략되어 메모리 관리 오류가 발생할 수 있습니다.
💡 쉬운 설명
USB 네트워크 장치를 연결하거나 해제할 때, 컴퓨터가 장치를 정리하는 과정에서 아직 끝나지 않은 작업이 남아 있어 발생하는 오류입니다. 이로 인해 시스템의 메모리 관리 체계에 혼란이 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
usbnet: Prevents free active kevent
The root cause of this issue are:
1. When probing the usbnet device, executing usbnet_link_change(dev, 0, 0);
put the kevent work in global workqueue. However, the kevent has not yet
been scheduled when the usbnet device is unregistered. Therefore, executing
free_netdev() results in the "free active object (kevent)" error reported
here.
2. Another factor is that when calling usbnet_disconnect()->unregister_netdev(),
if the usbnet device is up, ndo_stop() is executed to cancel the kevent.
However, because the device is not up, ndo_stop() is not executed.
The solution to this problem is to cancel the kevent before executing
free_netdev().
📍 영향받는 시스템
usbnet 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 USB 네트워크 장치의 연결 및 해제를 반복하여 커널 메모리 오류를 유도할 수 있음
🛡️ 대응 방법
usbnet 드라이버에서 free_netdev() 호출 전 kevent를 취소하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인