CVE-2026-74260: netfilter: nf_dup_netdev: add nf_dev_xmit_recursion*() helpers and use them
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_dup_netdev: add nf_dev_xmit_recursion*() helpers and use them
Update nft_dup and nft_fwd to use the nf_dev_xmit_recursion() helpers. This patch also disables BH when transmitting the skb to address a possible migration to different CPU leading to imbalanced decrementation of the recursion counters.
This is modeled after Florian Westphal's dev_xmit_recursion*() API available since commit 97cdcf37b57e ("net: place xmit recursion in softnet data") according to its current state in the tree.
The Linux kernel CVE team has assigned CVE-2026-74260 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit f37ad91270397a6d053e8623bdb3cf79859691d2 and fixed in 7.1.5 with commit edf234f71fb327792196f813048ab8f5bd3bb712 Issue introduced in 6.16 with commit f37ad91270397a6d053e8623bdb3cf79859691d2 and fixed in 7.2-rc1 with commit 2354e975932dabb06fad239f07a3b68fd1809737
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-74260
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:
include/net/netfilter/nf_dup_netdev.h
net/netfilter/nf_dup_netdev.c
net/netfilter/nft_fwd_netdev.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/edf234f71fb327792196f813048ab8f5bd3bb712 https://git.kernel.org/stable/c/2354e975932dabb06fad239f07a3b68fd1809737