🇰🇷 한글 설명
Linux 커널의 ALSA FCP 드라이버에서 URB(USB Request Block) 관리 오류로 인해 발생하는 취약점입니다. 특정 USB 장치 연결 시 알림용 URB를 혼용하여 사용함으로써, 초기화 과정에서 명령 완료 대기 상태가 비정상적으로 처리되어 시스템 충돌(Crash)을 유발할 수 있습니다.
💡 쉬운 설명
USB 오디오 장치를 연결할 때 컴퓨터 내부의 통신 통로를 잘못 사용하여 시스템이 멈추거나 꺼질 수 있는 문제입니다. 장치와 컴퓨터가 서로 신호를 주고받는 과정에서 혼선이 생겨 발생하는 오류입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: FCP: Use a private URB for the notification endpoint
fcp_init_notify() used mixer->urb, which snd_usb_mixer_status_create()
allocates for the optional UAC2 status interrupt endpoint and mixer.c
kills, resubmits and frees. On a device with that endpoint,
fcp_init_notify()'s "already set up" early return fires on the status
URB and returns success without doing anything. No FCP notification
URB is submitted, and cmd_done is left zeroed because it is
initialised past that early return and nowhere else. fcp_init() then
issues init1_opcode and wait_for_completion_timeout() would crash
adding to the zeroed wait.head. fcp_cleanup_urb() would also kill and
free mixer.c's status URB.
Use a separate URB in fcp_data, and initialise cmd_done in
fcp_init_private() where fcp_data is allocated. fcp_init_notify() is
reached again after suspend via fcp_reinit(), and the URB kill path in
fcp_notify() completes cmd_done, leaving a stale count that would
satisfy the next command's wait before the device ACKs. Use
reinit_completion() to clear it.
📍 영향받는 시스템
Linux Kernel (ALSA FCP driver 관련 버전)
⚔️ 공격 벡터
취약한 드라이버가 포함된 Linux 시스템에 특정 USB 오디오 장치를 연결하여 시스템 충돌 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ALSA FCP 드라이버 수정 사항 반영
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인