Skip to contentSkip to conversation

CVE-2026-74746: netfilter: flowtable: publish GC-visible tuple last

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

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: flowtable: publish GC-visible tuple last

nf_flow_table_iterate() only treats original-direction tuple nodes as owning entries. Publishing the original node first lets GC observe and free a flow while flow_offload_add() is still inserting the reply node. Publish the reply node first and the original node last so GC never sees a partially installed flow.

KASAN can trigger slab-use-after-free read and write reports in the flowtable/rhashtable path (rht_deferred_worker, jhash, flow_offload_del, flow_offload_lookup, etc.).

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

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

	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 5.10.266 with commit 0a00254585827f1695aa2700114af622ea754cfa
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 5.15.217 with commit be345dcbddb4643a54252b954af974b16eda8f91
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 6.1.184 with commit 211ee5d998d92a7d548811939c65942d06c146e4
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 6.6.153 with commit d37917e7bebe078f3c17e47fd6fc1c9f6e8497b2
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 6.12.105 with commit 972fdf7c4f5c282a239c88fea614b056c33dc025
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 6.18.46 with commit d9d3050a70efe217e73a0751e55fdae6a7092620
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 7.1.10 with commit d16b71231e65cb05daea2b45701fcf09cef041e7
	Issue introduced in 4.16 with commit ac2a66665e231847cab11b8c8e844ce43207dd2e and fixed in 7.2 with commit 2014ac62df9d45bb9a004a043e85df7be09ed780

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

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_flow_table_core.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/0a00254585827f1695aa2700114af622ea754cfa
	https://git.kernel.org/stable/c/be345dcbddb4643a54252b954af974b16eda8f91
	https://git.kernel.org/stable/c/211ee5d998d92a7d548811939c65942d06c146e4
	https://git.kernel.org/stable/c/d37917e7bebe078f3c17e47fd6fc1c9f6e8497b2
	https://git.kernel.org/stable/c/972fdf7c4f5c282a239c88fea614b056c33dc025
	https://git.kernel.org/stable/c/d9d3050a70efe217e73a0751e55fdae6a7092620
	https://git.kernel.org/stable/c/d16b71231e65cb05daea2b45701fcf09cef041e7
	https://git.kernel.org/stable/c/2014ac62df9d45bb9a004a043e85df7be09ed780