🇰🇷 한글 설명
리눅스 커널의 PPP(Point-to-Point Protocol) 구성 요소 내 ppp_fill_forward_path 함수에서 두 가지 레이스 컨디션 취약점이 발견되었습니다. 이 취약점은 채널 삭제 과정에서 잠금 메커니즘 부재로 인해 발생하며, 시스템 패닉이나 잘못된 메모리 접근을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 통신 채널을 정리하는 과정에서 데이터가 동시에 바뀌어 발생하는 충돌 문제입니다. 이 충돌이 발생하면 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ppp: fix race conditions in ppp_fill_forward_path
ppp_fill_forward_path() has two race conditions:
1. The ppp->channels list can change between list_empty() and
list_first_entry(), as ppp_lock() is not held. If the only channel
is deleted in ppp_disconnect_channel(), list_first_entry() may
access an empty head or a freed entry, and trigger a panic.
2. pch->chan can be NULL. When ppp_unregister_channel() is called,
pch->chan is set to NULL before pch is removed from ppp->channels.
Fix these by using a lockless RCU approach:
- Use list_first_or_null_rcu() to safely test and access the first list
entry.
- Convert list modifications on ppp->channels to their RCU variants and
add synchronize_net() after removal.
- Check for a NULL pch->chan before dereferencing it.
📍 영향받는 시스템
PPP 기능을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 통해 채널 연결 및 해제를 반복하여 레이스 컨디션 유도
🛡️ 대응 방법
RCU(Read-Copy-Update) 방식이 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 수정된 최신 패치 버전인지 확인합니다.