CVE-2026-43025: netfilter: ctnetlink: ignore explicit helper on new expectations
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ctnetlink: ignore explicit helper on new expectations
Use the existing master conntrack helper, anything else is not really supported and it just makes validation more complicated, so just ignore what helper userspace suggests for this expectation.
This was uncovered when validating CTA_EXPECT_CLASS via different helper provided by userspace than the existing master conntrack helper:
BUG: KASAN: slab-out-of-bounds in nf_ct_expect_related_report+0x2479/0x27c0 Read of size 4 at addr ffff8880043fe408 by task poc/102 Call Trace: nf_ct_expect_related_report+0x2479/0x27c0 ctnetlink_create_expect+0x22b/0x3b0 ctnetlink_new_expect+0x4bd/0x5c0 nfnetlink_rcv_msg+0x67a/0x950 netlink_rcv_skb+0x120/0x350
Allowing to read kernel memory bytes off the expectation boundary.
CTA_EXPECT_HELP_NAME is still used to offer the helper name to userspace via netlink dump.
The Linux kernel CVE team has assigned CVE-2026-43025 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 6.1.168 with commit e135f8e8212cbed12a03ab8dec77fa1247139897 Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 6.6.134 with commit 2ea0f35f235f70c133ad61fe05ba013753b978c6 Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 6.12.81 with commit 0f6c33697ccfac6499d0b7a4dbdec5d3a3a566cd Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 6.18.22 with commit 187b6ec5229ea93cb04c4f6d3b52efc80f513d0d Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 6.19.12 with commit 21a04c31db4057deec85fcd6cc63d720b38819c3 Issue introduced in 3.12 with commit bd0779370588386e4a67ba5d0b176cfded8e6a53 and fixed in 7.0 with commit 917b61fa2042f11e2af4c428e43f08199586633a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43025
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/netfilter/nf_conntrack_netlink.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e135f8e8212cbed12a03ab8dec77fa1247139897 https://git.kernel.org/stable/c/2ea0f35f235f70c133ad61fe05ba013753b978c6 https://git.kernel.org/stable/c/0f6c33697ccfac6499d0b7a4dbdec5d3a3a566cd https://git.kernel.org/stable/c/187b6ec5229ea93cb04c4f6d3b52efc80f513d0d https://git.kernel.org/stable/c/21a04c31db4057deec85fcd6cc63d720b38819c3 https://git.kernel.org/stable/c/917b61fa2042f11e2af4c428e43f08199586633a