🇰🇷 한글 설명
Linux 커널의 BPF 구성 요소에서 conntrack 옵션 처리 시 발생하는 취약점입니다. 검증기(verifier)가 확인하는 메모리 범위보다 더 큰 영역에 오류 정보를 기록함으로써, 허용되지 않은 메모리 영역에 쓰기 작업이 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 메모리의 안전한 구역만 사용하도록 감시하는데, 오류가 발생했을 때 감시 범위를 벗어난 엉뚱한 곳에 기록을 남기는 문제입니다. 이로 인해 시스템의 중요한 데이터가 잘못 수정될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: Guard conntrack opts error writes
The conntrack lookup and allocation kfuncs take an opts pointer
together with an opts__sz argument. The verifier checks only the memory
range described by opts__sz, but the wrappers unconditionally write
opts->error whenever the internal lookup or allocation helper returns an
error.
For an invalid size smaller than the end of opts->error, that write can
land outside the verifier-checked range. Keep returning NULL for invalid
arguments, but only report the error through opts->error when the
supplied size includes the field.
This preserves error reporting for the supported 12-byte and 16-byte
layouts, and for other invalid sizes that still include opts->error.
📍 영향받는 시스템
Linux Kernel (BPF conntrack 관련 기능 사용 시)
⚔️ 공격 벡터
조작된 크기의 opts 인자를 전달하여 검증 범위를 벗어난 메모리 쓰기 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인