🇰🇷 한글 설명
Linux 커널의 ALSA scarlett2 드라이버에서 알림 엔드포인트용 URB를 공유하여 발생하는 취약점입니다. 잘못된 URB 관리로 인해 초기화 과정에서 명령 완료 대기 중 커널 패닉(Crash)이 발생할 수 있습니다.
💡 쉬운 설명
사운드 카드 드라이버가 내부 통신 통로를 잘못 사용하여 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있는 오류입니다. 특정 장치를 연결하거나 초기화할 때 시스템이 충돌할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: scarlett2: Use a private URB for the notification endpoint
scarlett2_init_notify() used mixer->urb, which
snd_usb_mixer_status_create() allocates for the UAC2 status interrupt
endpoint and mixer.c manages. On a device with that endpoint, the
"already in use" check fires on the status URB and returns 0 for
success without doing anything. No notification URB is submitted, and
cmd_done is left zeroed because it is initialised past that check and
nowhere else. scarlett2_usb_init() then issues SCARLETT2_USB_INIT_1
and wait_for_completion_timeout() would crash adding to the zeroed
wait.head.
Use a separate URB in scarlett2_data, as done for FCP, and initialise
cmd_done in scarlett2_init_private(). mixer.c was also freeing the URB
in snd_usb_mixer_free() and resubmitting it in
snd_usb_mixer_activate(), so scarlett2 must now do both: add
scarlett2_cleanup_urb(), called from private_free and private_suspend,
and a private_resume callback to re-establish the URB after resume.
scarlett2_init_notify() is reached from there, and the URB kill path
in scarlett2_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.
Also free the URB if the transfer buffer allocation fails, and both if
usb_submit_urb() fails. Move scarlett2_init_notify() up next to
scarlett2_cleanup_urb() so scarlett2_init_private() can reference it
without a forward declaration.
📍 영향받는 시스템
Linux Kernel (ALSA scarlett2 driver 포함 버전)
⚔️ 공격 벡터
취약한 드라이버가 포함된 시스템에 특정 USB 오디오 장치(scarlett2 시리즈)를 연결하여 시스템 충돌 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 이후 버전인지 확인하십시오.