🇰🇷 한글 설명
리눅스 커널의 tty_port에서 활성화 실패 시 TTY_IO_ERROR 플래그를 복구하지 않는 취약점이 해결되었습니다. 이로 인해 전원이 꺼지거나 등록 해제된 포트에 접근할 때 커널 패닉이나 NULL 포인터 역참조가 발생할 수 있습니다.
💡 쉬운 설명
장치가 꺼지거나 연결이 끊겼을 때 시스템이 이를 제대로 인지하지 못해 컴퓨터가 갑자기 멈추거나 오류가 발생할 수 있는 문제입니다. 장치 연결 상태를 확인하는 과정에서 발생하는 충돌을 방지하는 패치가 적용되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tty: tty_port: restore TTY_IO_ERROR on activation failure
Make sure to restore the TTY_IO_ERROR flag if activation fails to
prevent I/O attempts on a port that is gone or powered down.
This specifically avoids issues like kernel panic due to unclocked
accesses or NULL-pointer dereferences when accessing powered down or
deregistered ports when a TTY ioctl races with hangup and open.
Note that the flag is set again in tty_port_close() but not restoring it
on activation failure leaves a window where drivers fail to handle the
ioctl-hangup race.
📍 영향받는 시스템
Linux Kernel (tty_port 관련 모듈을 사용하는 모든 버전)
⚔️ 공격 벡터
장치 연결 해제(hangup)와 입출력 요청(ioctl)이 동시에 발생하는 레이스 컨디션 상황을 이용한 로컬 공격
🛡️ 대응 방법
최신 보안 패치가 적용된 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인