🇰🇷 한글 설명
Linux 커널의 ALSA UMP 구성 요소에서 발생하는 취약점으로, legacy_rmidi 장치가 생성되기 전에 이를 참조하여 발생하는 NULL 포인터 역참조 오류입니다. snd_ump_parse_endpoint 함수가 오류 발생 시에도 parsed 상태를 설정하여, 장치가 준비되지 않은 상태에서 UMP 패킷이 수신될 경우 시스템 충돌을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 소리 관련 장치가 완전히 준비되지 않은 상태에서 잘못된 명령이 들어오면 시스템이 멈추거나 오류가 발생하는 문제입니다. 장치가 준비되었는지 확인하는 절차가 누락되어 발생한 오류입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ump: do not touch legacy_rmidi before it exists
snd_ump_parse_endpoint() sets ump->parsed on every exit, including
error, before the caller attaches the legacy rawmidi device.
ump_handle_ep_name_msg() then treats parsed as "legacy_rmidi is live"
and calls ump_legacy_set_rawmidi_name(), which snprintf()s into
ump->legacy_rmidi->name. If a UMP packet arrives in that window
(IRQ path from snd_ump_receive), legacy_rmidi is still NULL
(KASAN null-ptr-deref in snprintf).
Guard the legacy helpers. parsed only means endpoint info was
parsed, not that legacy_rmidi exists.
📍 영향받는 시스템
Linux Kernel (ALSA UMP 관련 모듈 포함 버전)
⚔️ 공격 벡터
특수하게 조작된 UMP(Universal MIDI Packet)를 전송하여 커널의 NULL 포인터 역참조 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인