🇰🇷 한글 설명
Linux 커널의 ALSA 구성 요소에서 PCM 타이머를 등록하기 전에 private_data를 설정하지 않아 발생하는 NULL 포인터 역참조 취약점입니다. 타이머가 글로벌 리스트에 등록된 직후 private_data가 설정되기 전의 짧은 시간 동안, 동시 접근이 발생하면 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 소리 관련 장치를 준비하는 과정에서, 중요한 정보가 채워지기도 전에 장치를 외부로 노출시켜 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: set timer->private_data before registering the PCM timer
snd_pcm_timer_init() calls snd_device_register() to link the new
struct snd_timer into the global timer list while it still carries
hw.c_resolution = snd_pcm_timer_resolution (and hw.start/hw.stop),
and only afterwards sets timer->private_data = substream.
Once the timer is on the list under register_mutex, a concurrent
reader can already reach it through the same mutex and invoke these
callbacks. /proc/asound/timers does this via c_resolution(), and
snd_timer_open()+snd_timer_start() reach start()/stop() the same way.
All three dereference timer->private_data, which for this brief
window is NULL, giving a NULL-pointer dereference:
substream = timer->private_data;
return substream->runtime ? ... // substream is NULL
Move the private_data/private_free assignment before
snd_device_register() so the timer is never visible on the list
without its private_data set. On the snd_device_register() failure
path, private_free() (snd_pcm_timer_free()) can now run, but it only
does substream->timer = NULL, which is already NULL at that point
since substream->timer is set to the new timer just once, after a
successful registration -- so the failure path stays safe.
📍 영향받는 시스템
Linux Kernel (ALSA 구성 요소가 포함된 버전)
⚔️ 공격 벡터
로컬 사용자가 /proc/asound/timers를 읽거나 타이머 관련 시스템 호출을 동시 실행하여 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux