In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_ct: bail out on template ct in get eval I noticed this
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
별도 긴급 패치 불필요 — 정기 시스템 업그레이드 주기에 맞춰 조치
CVSS 벡터 · 메트릭
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H약점 (CWE)
- CWE-674
제어되지 않는 재귀 — 무한/과도 재귀로 자원 고갈(DoS).
상세 설명
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_ct: bail out on template ct in get eval
I noticed this issue while looking at a historic syzbot report 1.
A rule like the one below is enough to trigger the bug:
1table ip t { 2 chain pre { 3 type filter hook prerouting priority raw; 4 ct zone set 1 5 ct original saddr 1.2.3.4 accept 6 } 7}The first expression attaches a per-cpu template ct via
nft_ct_set_zone_eval() (nf_ct_tmpl_alloc -> kzalloc, tuple is all
zero, nf_ct_l3num(ct) == 0). The next expression then calls
nft_ct_get_eval() on the same skb, treats the template as a real ct
and hits the 16-byte memcpy path. With dreg at NFT_REG32_15 this
overflows past struct nft_regs on the kernel stack; with smaller
dreg values it silently clobbers adjacent registers.
Reject template ct at the eval entry and in nft_ct_get_fast_eval(),
mirroring the check nft_ct_set_eval() already has. Additionally,
bound the address copy in NFT_CT_SRC / NFT_CT_DST by priv->len
instead of by nf_ct_l3num(ct): nf_ct_get_tuple() zeroes the tuple
before pkt_to_tuple() fills in only the protocol-relevant leading
bytes, so the trailing bytes of tuple->{src,dst}.u3.all are
well-defined zero. priv->len is validated at rule load, so the
copy size is now bounded by the destination register rather than
by an untrusted field on the conntrack.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
영향받는 제품·버전
- linux linux_kernel4.1 - 6.6.143linux
- linux linux_kernel6.7 - 6.12.94linux
- linux linux_kernel6.13 - 6.18.36linux
- linux linux_kernel6.19 - 7.0.13linux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
영향받는 구성 (CPE) 7
- linux linux_kernel≥ 4.1 < 6.6.143cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
- linux linux_kernel 7.1cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
참고 자료 5
링크 내용 불러오는 중…