🇰🇷 한글 설명
리눅스 커널의 RDS(Reliable Datagram Sockets) 구성 요소에서 sysctl 설정 시 현재 프로세스의 nsproxy를 참조하는 과정에서 발생하는 취약점입니다. 프로세스가 종료되는 과정에서 nsproxy가 NULL이 될 경우 null-pointer dereference로 인한 커널 Oops(시스템 오류)가 발생할 수 있습니다.
💡 쉬운 설명
리눅스 운영체제의 특정 네트워크 기능을 사용할 때, 프로그램이 종료되는 찰나의 순간에 시스템이 잘못된 메모리 주소를 참조하여 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 비정상적으로 동작할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy
As mentioned in a previous commit of this series, using the 'net'
structure via 'current' is not recommended for different reasons:
- Inconsistency: getting info from the reader's/writer's netns vs only
from the opener's netns.
- current->nsproxy can be NULL in some cases, resulting in an 'Oops'
(null-ptr-deref), e.g. when the current task is exiting, as spotted by
syzbot [1] using acct(2).
The per-netns structure can be obtained from the table->data using
container_of(), then the 'net' one can be retrieved from the listen
socket (if available).
📍 영향받는 시스템
RDS(Reliable Datagram Sockets) 기능을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
프로세스 종료 시점(acct(2) 호출 등)을 이용한 로컬 시스템의 커널 패닉 유도
🛡️ 대응 방법
RDS 관련 커널 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전 이후인지 확인합니다.