CVE-2026-143266: netfilter: x_tables: check target name before accessing verdict
In the Linux kernel, the following vulnerability has been resolved:
netfilter: xtables: check target name before accessing verdict
Non-standard targets may contain only struct xtentrytarget. marksourcechains() nevertheless reads the target as an xtstandardtarget before checking its name, potentially reading four bytes beyond a header-only target.
Check that the target is standard before reading its verdict. Non-standard targets remain handled as fallthrough rules.
See the following KASAN trace:
BUG: KASAN: slab-out-of-bounds in translatetable+0x1660/0x1a40 [ip6tables] Read of size 4 at addr ffff88800ed56ff8 by task rep/432
Call Trace: kasanreport+0xfa/0x120 translatetable+0x1660/0x1a40 [ip6tables] doip6tsetctl+0x667/0xa76 [ip6tables] nfsetsockopt+0x77/0xd0 dosocksetsockopt+0x118/0x490 syssetsockopt+0xe4/0x160 x64syssetsockopt+0xbd/0x190 dosyscall64+0xde/0x4f0 entrySYSCALL64afterhwframe+0x77/0x7f
Allocated by task 432: kasansavestack+0x2f/0x50 kasankmalloc+0x7f/0x90 kvmallocnodenoprof+0x1b1/0x5c0 xtalloctableinfo+0x3c/0xa0 doip6tsetctl+0x5ee/0xa76 [ip6tables] nfsetsockopt+0x77/0xd0 dosocksetsockopt+0x118/0x490 syssetsockopt+0xe4/0x160 x64syssetsockopt+0xbd/0x190 dosyscall64+0xde/0x4f0 entrySYSCALL64afterhwframe+0x77/0x7f
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In mark_source_chains(), check that the target is standard before reading its verdict; handle non-standard targets as fallthrough rules.
Event History
Frequently Asked Questions
Which firewall configuration path is implicated?
The reported trace occurs while processing IPv6 ip6_tables configuration through setsockopt, reaching do_ip6t_set_ctl and translate_table. The affected logic is in x_tables source-chain marking.
What rule format triggers the out-of-bounds read?
A non-standard target containing only a struct xt_entry_target can trigger the issue because the kernel reads it as an xt_standard_target before validating the target name. Such non-standard targets are intended to be handled as fallthrough rules.
How can an affected system be identified?
A KASAN-enabled kernel may report a slab-out-of-bounds read of four bytes in translate_table in the ip6_tables module. The trace can include do_ip6t_set_ctl, nf_setsockopt, and do_sock_setsockopt.