🇰🇷 한글 설명
Linux 커널의 ALSA OSS 구성 요소에서 proc write 오류 발생 시 Use-After-Free(UAF) 취약점이 발생합니다. 작업 이름 할당 실패 시 이미 연결된 항목을 해제하지만, 리스트에는 해제된 메모리 주소가 남아 있어 이후 OSS 장치 오픈 시 잘못된 메모리 참조를 유발합니다.
💡 쉬운 설명
컴퓨터가 메모리를 사용한 후 제대로 정리하지 않아 발생하는 오류입니다. 해제된 메모리 주소를 다시 사용하려고 시도할 때 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Fix setup list UAF on proc write error
snd_pcm_oss_proc_write() links a newly allocated setup entry into the
OSS setup list before duplicating the task name. If the task-name
allocation fails, the error path frees the already linked entry and
leaves setup_list pointing at freed memory.
A later OSS device open can then walk the stale list entry in
snd_pcm_oss_look_for_setup() and dereference freed memory.
Allocate the task name and initialize the setup entry before publishing
the entry on setup_list. Also fetch the initial proc read iterator only
after taking setup_mutex, so all setup_list traversal follows the same
list lifetime rules.
📍 영향받는 시스템
Linux Kernel (ALSA OSS 관련 모듈 포함 버전)
⚔️ 공격 벡터
로컬 사용자가 proc 파일 시스템에 쓰기 작업을 수행하여 메모리 할당 오류를 유도한 뒤, OSS 장치를 열어 해제된 메모리를 참조하도록 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.