🇰🇷 한글 설명
Linux 커널의 net/sched 구성 요소에서 pedit의 부분적 COW(Copy-on-Write) 처리 오류로 인해 페이지 캐시가 손상될 수 있는 취약점이 발견되었습니다. 특정 키 루프에서 헤더 오프셋을 정확히 계산하지 못해 쓰기 영역의 일부가 복사되지 않은 채 수정될 수 있는 문제입니다.
💡 쉬운 설명
데이터를 수정할 때 원본을 보호하기 위해 복사본을 만들어야 하는데, 이 과정에서 일부를 놓쳐 원본 데이터가 망가질 수 있는 오류입니다. 이로 인해 시스템의 메모리 데이터가 오염될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fix pedit partial COW leading to page cache corruption
tcf_pedit_act() computes the COW range for skb_ensure_writable()
once before the key loop using tcfp_off_max_hint, but the hint does
not account for the runtime header offset added by typed keys. This
can leave part of the write region un-COW'd.
Fix by moving skb_ensure_writable() inside the per-key loop where
the actual write offset is known, and add overflow checking on the
offset arithmetic. For negative offsets (e.g. Ethernet header edits
at ingress), use skb_cow() to COW the headroom instead. Guard
offset_valid() against INT_MIN, where negation is undefined.
📍 영향받는 시스템
Linux kernel (net/sched 구성 요소가 포함된 버전)
⚔️ 공격 벡터
조작된 네트워크 패킷을 통해 특정 오프셋을 가진 헤더 수정을 유도하여 메모리 오염 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인