Skip to contentSkip to conversation

CVE-2026-31496: netfilter: nf_conntrack_expect: skip expectations in other netns via proc

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_conntrack_expect: skip expectations in other netns via proc

Skip expectations that do not reside in this netns.

Similar to e77e6ff502ea ("netfilter: conntrack: do not dump other netns's conntrack entries via proc").

The Linux kernel CVE team has assigned CVE-2026-31496 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 6.1.168 with commit 2028405ea6987b4448784e439413202cfe19f43f
	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 6.6.131 with commit 168145c87444619e3e649322bbe7719ecd00d411
	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 6.12.80 with commit dcfcd95b3ae7683e8ae55c92284b3430ce614bc7
	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 6.18.21 with commit 9ca8c7452493d915f9bbf2f39331e6c583d07a23
	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 6.19.11 with commit 3265ad619987cb551edaf797ed056d80ac450225
	Issue introduced in 2.6.28 with commit 9b03f38d0487f3908696242286d934c9b38f9d2a and fixed in 7.0 with commit 3db5647984de03d9cae0dcddb509b058351f0ee4

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-31496

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_expect.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/2028405ea6987b4448784e439413202cfe19f43f
	https://git.kernel.org/stable/c/168145c87444619e3e649322bbe7719ecd00d411
	https://git.kernel.org/stable/c/dcfcd95b3ae7683e8ae55c92284b3430ce614bc7
	https://git.kernel.org/stable/c/9ca8c7452493d915f9bbf2f39331e6c583d07a23
	https://git.kernel.org/stable/c/3265ad619987cb551edaf797ed056d80ac450225
	https://git.kernel.org/stable/c/3db5647984de03d9cae0dcddb509b058351f0ee4