🇰🇷 한글 설명
Linux 커널의 net/x25 구성 요소에서 skb(socket buffer) 구조체가 중복 해제되는 Double Free 취약점이 발견되었습니다. x25_queue_rx_frame 함수에서 메모리 할당 실패 시 skb를 해제한 후, 호출 스택을 거쳐 x25_backlog_rcv에서 동일한 skb를 다시 해제하면서 발생합니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리 공간을 실수로 두 번 삭제하려고 시도하여 시스템이 충돌하거나 해킹에 이용될 수 있는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 통제가 무너질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/x25: Fix potential double free of skb
When alloc_skb fails in x25_queue_rx_frame it calls kfree_skb(skb) at
line 48 and returns 1 (error).
This error propagates back through the call chain:
x25_queue_rx_frame returns 1
|
v
x25_state3_machine receives the return value 1 and takes the else
branch at line 278, setting queued=0 and returning 0
|
v
x25_process_rx_frame returns queued=0
|
v
x25_backlog_rcv at line 452 sees queued=0 and calls kfree_skb(skb)
again
This would free the same skb twice. Looking at x25_backlog_rcv:
net/x25/x25_in.c:x25_backlog_rcv() {
...
queued = x25_process_rx_frame(sk, skb);
...
if (!queued)
kfree_skb(skb);
}
📍 영향받는 시스템
X.25 프로토콜을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
네트워크를 통해 조작된 X.25 프레임을 전송하여 메모리 할당 실패를 유도함으로써 발생
🛡️ 대응 방법
X.25 관련 메모리 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인