🔍 CVE-2026-46048

5.5
CVSS Score
MEDIUM
2026-05-27
2026-06-16 15:03
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ALSA caiaq 드라이버에서 USB 장치 초기화 실패 시 참조 횟수(refcount)가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. 초기화 과정 중 오류가 발생하면 usb_device 구조체와 관련 할당 메모리가 해제되지 않고 시스템에 남게 됩니다.

💡 쉬운 설명

USB 사운드 장치를 연결할 때 오류가 발생하면, 컴퓨터가 사용했던 메모리를 제대로 돌려받지 못하고 계속 쌓아두는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 부족해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ALSA: caiaq: fix usb_dev refcount leak on probe failure create_card() takes a reference on the USB device with usb_get_dev() and stores the matching usb_put_dev() in card_free(), which is installed as the snd_card's ->private_free destructor. However, ->private_free is only assigned near the end of init_card(), after several failure points (usb_set_interface(), EP type checks, usb_submit_urb(), the EP1_CMD_GET_DEVICE_INFO exchange, and its timeout). When any of those fail, init_card() returns an error to snd_probe(), which calls snd_card_free(card). Because ->private_free is still NULL, card_free() never runs, the usb_get_dev() reference is not dropped, and the struct usb_device leaks along with its descriptor allocations and device_private. syzbot reproduces this with a malformed UAC3 device whose only valid altsetting is 0; init_card()'s usb_set_interface(usb_dev, 0, 1) call fails with -EIO and triggers the leak. Move the ->private_free assignment into create_card(), immediately after usb_get_dev(), so that every error path reaching snd_card_free() balances the reference. card_free()'s callees (snd_usb_caiaq_input_free, free_urbs, kfree) already tolerate the partially-initialized state because the chip private area is zero-initialized by snd_card_new().

📍 영향받는 시스템

Linux kernel (ALSA caiaq driver module)

⚔️ 공격 벡터

조작된(Malformed) USB UAC3 장치를 연결하여 초기화 과정에서 의도적인 오류를 유도함

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 usb_get_dev()와 usb_put_dev()의 참조 균형을 맞춤

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전 이상인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel