Skip to content
OpenAdvisories
Unscored CVE-2026-99294 EUVD-2026-126200GHSA-5pmm-x662-5cgh

netfilter: nft_fwd_netdev: use recursion counter in neigh egress path

Published Nov 16, 2026 · Assigned by Linux

Description

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

netfilter: nft_fwd_netdev: use recursion counter in neigh egress path

nft_fwd_neigh can be used in egress chains (NF_NETDEV_EGRESS). When the
forwarding rule targets the same device or two devices forward to each
other, neigh_xmit() triggers dev_queue_xmit() which re-enters
nf_hook_egress(), causing infinite recursion and stack overflow.

Move the nf_get_nf_dup_skb_recursion() accessor and NF_RECURSION_LIMIT
to the shared header nf_dup_netdev.h as a static inline, so that
nft_fwd_netdev can use the recursion counter directly without exported
function call overhead. Guard neigh_xmit() with the same recursion
limit already used in nf_do_netdev_egress().

[ Updated to cache the nf_get_nf_dup_skb_recursion pointer. --pablo ]

Affected products

VendorProductAffectedFixed
Linux Linux 5.17 6.18.57

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 7.1.3-1 —
Debian 13 linux No fix yet —
Debian 12 linux No fix yet —

Advisories 1

References