🇰🇷 한글 설명
리눅스 커널의 시리얼 코어에서 포트 등록 과정 중 메모리 할당 실패 시 콘솔이 등록된 상태로 남는 취약점이 발견되었습니다. 이로 인해 NULL 역참조 및 Use-After-Free(UAF) 오류가 발생하여 시스템 안정성이 저해될 수 있습니다.
💡 쉬운 설명
컴퓨터의 통신 장치를 설정하는 과정에서 메모리 할당에 실패했을 때, 뒷정리가 제대로 되지 않아 시스템이 충돌하거나 오류를 일으킬 수 있는 문제입니다. 장치가 완전히 준비되기 전에 사용을 시도하면 문제가 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
serial: core: do fallible allocations before the console can be registered
serial_core_add_one_port() allocates uport->tty_groups after
uart_configure_port(), which may register the console. If the allocation
fails, the driver unwinds the port while its console remains registered.
The earlier uport->name allocation has a related failure path that leaves
state->uart_port linked to a port being freed.
Failslab reproduced a NULL dereference in PL011 console output and a KASAN
use-after-free in i.MX console output after failed binds.
Allocate the name and tty_groups before linking the port and configuring
it. Reserve space for the optional driver attribute group because
config_port() may populate uport->attr_group during configuration.
📍 영향받는 시스템
Linux Kernel (serial core 관련 모듈 사용 시스템)
⚔️ 공격 벡터
메모리 할당 실패를 유도하는 특수한 상황을 통한 로컬 시스템 충돌 또는 커널 오류 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.