🇰🇷 한글 설명
Linux 커널의 ALSA 시퀀서에서 compat port-info ioctl 호출 시 뮤텍스(mutex)를 획득하지 않아 발생하는 동시성 문제입니다. 이로 인해 포트 개수 확인 절차를 우회하여 잘못된 인덱스에 접근하거나 이미 해제된 메모리에 접근할 수 있는 취약점이 존재합니다.
💡 쉬운 설명
여러 명령이 동시에 들어올 때 시스템이 순서를 제대로 제어하지 못해 발생하는 오류입니다. 이를 통해 공격자가 시스템의 잘못된 메모리 영역을 건드려 오류를 일으키거나 보안을 무너뜨릴 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ALSA: seq: Serialize compat port-info ioctls
The native sequencer ioctl path serializes handler calls with
client->ioctl_mutex, but the translated port-info compat path invokes the
same handlers through snd_seq_kernel_client_ctl() without taking that
mutex.
This lets concurrent compat CREATE_PORT requests pass the port-count
check before any request reaches the serialized insertion. The computed
integer port index can then exceed the address field range and wrap to an
existing index. Subsequent subscriber teardown can resolve the duplicate
address to the wrong port and access a freed subscriber.
Take ioctl_mutex while dispatching converted port-info requests, matching
the native ioctl path. All translated port-info commands share this
helper, so their accesses to the client port state are serialized as
well.
📍 영향받는 시스템
Linux Kernel (ALSA sequencer component)
⚔️ 공격 벡터
동시에 여러 개의 compat CREATE_PORT ioctl 요청을 보내 포트 인덱스 범위를 초과하도록 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ioctl 처리 시 뮤텍스를 사용하도록 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 이후의 버전인지 확인