CVE-2026-52920: netfilter: xt_policy: fix strict mode inbound policy matching
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: xt_policy: fix strict mode inbound policy matching
match_policy_in() walks sec_path entries from the last transform to the first one, but strict policy matching needs to consume info->pol[] in the same forward order as the rule layout.
Derive the strict-match policy position from the number of transforms already consumed so that multi-element inbound rules are matched consistently.
The Linux kernel CVE team has assigned CVE-2026-52920 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 5.10.258 with commit eb323f7b82d2e2f638de0cc2a177803eb20e0707 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 5.15.209 with commit fc1c518bb1f054831ecabb32da9b8e1dff9699c6 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 6.1.175 with commit f98b7f85e04b40e28b08c461ded0cc79f14f5509 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 6.6.141 with commit 82664d0f1ba25e4f9a71994954abae24c60f4067 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 6.12.91 with commit b130a6eefa02bd4d475f2f059da8bcfb3e7d18d9 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 6.18.33 with commit 938867e870fb5471bb16f442aeac81326e05bf65 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 7.0.10 with commit 392cc1d8408b5665215c1e9290bbf0f92339b043 Issue introduced in 2.6.17 with commit c4b885139203d37f76662c37ae645fe8e0f4e4e5 and fixed in 7.1 with commit 4b2b4d7d4e203c92db8966b163edfacb1f0e1e29
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-52920
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/xt_policy.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/eb323f7b82d2e2f638de0cc2a177803eb20e0707 https://git.kernel.org/stable/c/fc1c518bb1f054831ecabb32da9b8e1dff9699c6 https://git.kernel.org/stable/c/f98b7f85e04b40e28b08c461ded0cc79f14f5509 https://git.kernel.org/stable/c/82664d0f1ba25e4f9a71994954abae24c60f4067 https://git.kernel.org/stable/c/b130a6eefa02bd4d475f2f059da8bcfb3e7d18d9 https://git.kernel.org/stable/c/938867e870fb5471bb16f442aeac81326e05bf65 https://git.kernel.org/stable/c/392cc1d8408b5665215c1e9290bbf0f92339b043 https://git.kernel.org/stable/c/4b2b4d7d4e203c92db8966b163edfacb1f0e1e29