CVE-2026-143266
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: x_tables: check target name before accessing verdict
Non-standard targets may contain only struct xt_entry_target. mark_source_chains() nevertheless reads the target as an xt_standard_target 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 translate_table+0x1660/0x1a40 [ip6_tables] Read of size 4 at addr ffff88800ed56ff8 by task rep/432
Call Trace: kasan_report+0xfa/0x120 translate_table+0x1660/0x1a40 [ip6_tables] do_ip6t_set_ctl+0x667/0xa76 [ip6_tables] nf_setsockopt+0x77/0xd0 do_sock_setsockopt+0x118/0x490 __sys_setsockopt+0xe4/0x160 __x64_sys_setsockopt+0xbd/0x190 do_syscall_64+0xde/0x4f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Allocated by task 432: kasan_save_stack+0x2f/0x50 __kasan_kmalloc+0x7f/0x90 __kvmalloc_node_noprof+0x1b1/0x5c0 xt_alloc_table_info+0x3c/0xa0 do_ip6t_set_ctl+0x5ee/0xa76 [ip6_tables] nf_setsockopt+0x77/0xd0 do_sock_setsockopt+0x118/0x490 __sys_setsockopt+0xe4/0x160 __x64_sys_setsockopt+0xbd/0x190 do_syscall_64+0xde/0x4f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Affected products
1Patches
Vulnerability mechanics
References
6- git.kernel.org/stable/c/364b200285bb2cc518e3c5efe6591951c05b8e01nvd
- git.kernel.org/stable/c/b0576f2c406237170fb1e6878ecd3d701703f55bnvd
- git.kernel.org/stable/c/bf18b0ec873c80e921d7955dc9ebcfa463264cfbnvd
- git.kernel.org/stable/c/dc52bbdaa3de8a6e5c377ada07039d88cc4e967envd
- git.kernel.org/stable/c/f430dfe58e8c2d3eb26763f0b6147319e5f3387fnvd
- git.kernel.org/stable/c/f865566da51a39ff4ead49ded3f79c03f32376a5nvd
News mentions
0No linked articles in our index yet.