🇰🇷 한글 설명
Linux 커널의 netfilter 구성 요소인 ip6t_hbh에서 옵션 목록의 크기를 적절히 검증하지 않아 발생하는 취약점입니다. 사용자 공간에서 제공된 옵션 개수가 고정된 배열 크기를 초과할 경우, 배열 범위를 벗어난 메모리 접근(off-by-one)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 저장할 때 정해진 칸보다 더 많은 데이터를 넣으려고 시도하여 발생하는 오류입니다. 이로 인해 시스템의 메모리가 잘못된 위치를 참조하게 되어 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ip6t_hbh: reject oversized option lists
struct ip6t_opts stores at most IP6T_OPTS_OPTSNR option descriptors,
but hbh_mt6_check() does not reject larger optsnr values supplied from
userspace.
Validate optsnr in the rule setup path so only match data that fits the
fixed-size opts array can be installed. This follows the existing xtables
pattern of rejecting invalid user-provided counts in checkentry() and
keeps the packet matching path unchanged.
`struct ip6t_opts` has a fixed `opts[IP6T_OPTS_OPTSNR]` array,
where `IP6T_OPTS_OPTSNR` is 16, then off-by-one array access is possible:
[ 137.924693][ T8692] UBSAN: array-index-out-of-bounds in ../net/ipv6/netfilter/ip6t_hbh.c:110:29
[ 137.926167][ T8692] index 16 is out of range for type '__u16 [16]'
📍 영향받는 시스템
ip6t_hbh 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
사용자 공간(userspace)에서 조작된 크기의 IP6 옵션 목록을 포함한 규칙을 설정하여 발생
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 보안 업데이트 버전인지 확인