🇰🇷 한글 설명
Linux 커널의 ALSA OSS PCM 드라이버에서 SNDCTL_DSP_SYNC ioctl 호출 시 발생하는 레이스 컨디션 취약점입니다. snd_pcm_oss_sync() 함수가 뮤텍스 잠금을 획득하기 전에 스트림 설정이 변경될 수 있어, NULL 포인터 역참조와 같은 예기치 않은 동작을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 소리 관련 기능을 처리하는 과정에서 두 가지 작업이 동시에 일어나 충돌이 발생하는 문제입니다. 이 충돌로 인해 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC
There is a small race window at snd_pcm_oss_sync() that is called from
OSS PCM SNDCTL_DSP_SYNC ioctl; namely the function calls
snd_pcm_oss_make_ready() at first, then takes the params_lock mutex
for the rest. When the stream is set up again by another thread
between them, it leads to inconsistency, and may result in unexpected
results such as NULL dereference of OSS buffer as a fuzzer spotted
recently.
The fix is simply to cover snd_pcm_oss_make_ready() call into the same
params_lock mutex with snd_pcm_oss_make_ready_locked() variant.
📍 영향받는 시스템
ALSA OSS PCM 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 특수하게 조작된 ioctl 호출을 통해 레이스 컨디션을 유발하여 시스템 오류를 일으킴
🛡️ 대응 방법
snd_pcm_oss_make_ready() 호출을 params_lock 뮤텍스 범위 내로 포함하도록 커널을 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 수정된 최신 보안 패치 버전인지 확인합니다.