🇰🇷 한글 설명
Linux 커널의 ALSA usb-audio qcom 드라이버에서 활성화되지 않은 인터페이스에 대해 스트림 비활성화를 요청할 경우 발생하는 취약점입니다. 잘못된 인덱스 참조로 인해 NULL 포인터 역참조 또는 메모리 손상(Out-of-bounds read/write)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 소리 장치를 조절하는 프로그램에서 잘못된 명령을 내렸을 때, 시스템이 엉뚱한 메모리 주소를 건드려 오류가 나거나 해킹될 수 있는 문제입니다. 공격자가 이 허점을 이용하면 시스템을 멈추게 하거나 메모리 데이터를 조작할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: qcom: reject stream disable with no active interface
handle_uaudio_stream_req() resolves an interface index with
info_idx_from_ifnum(), which returns -EINVAL when no interface matches.
The enable branch and the response: cleanup label both guard against a
negative index, but the disable branch does not: it forms
info = &uadev[pcm_card_num].info[info_idx] and dereferences it.
uadev[].info is a pointer allocated only when a stream is first enabled,
so a negative info_idx on the disable path is unsafe in two ways:
- If the card was never enabled, .info is NULL and &info[-EINVAL] is a
wild pointer; reading info->data_ep_pipe faults (kernel oops).
- If the card was enabled at least once (.info allocated) and the
disable names an interface that does not match, &info[-EINVAL] points
before the allocation; info->data_ep_pipe / info->sync_ep_pipe are an
out-of-bounds slab read and, when non-zero, an out-of-bounds 4-byte
write (both pipe fields are cleared to 0). That is memory corruption,
not just a NULL dereference.
The request is reachable from unprivileged local userspace over
AF_QIPCRTR. Reject a disable request with no resolved interface, matching
the guard the enable path already has.
📍 영향받는 시스템
Linux kernel (ALSA usb-audio qcom driver component)
⚔️ 공격 벡터
권한이 없는 로컬 사용자가 AF_QIPCRTR를 통해 잘못된 인터페이스 인덱스를 포함한 비활성화 요청을 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 해당 드라이버의 인덱스 검증 로직을 수정해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인하십시오.