netfilter: nft_fwd_netdev: use recursion counter in neigh egress path

State
Published
Severity
Not Scored
Published
Nov 16, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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 ]

ProductVersions
Linux Linuxf87b9464d152f7705f1e37288dc48f5af6a2fc0c to before b444aafa80361cb931a6ccbaf4a3891d6c0487bb Affectedf87b9464d152f7705f1e37288dc48f5af6a2fc0c to before fcacd948b10a351aa128acd3c2c4cee62d1ea677 Affectedf87b9464d152f7705f1e37288dc48f5af6a2fc0c to before 1d47b55b36d2ec73fe6901212c8b28a593c3b27c Affected
Linux Linux5.17 Affectedbefore 5.17 Not Affected6.12.120 through 6.12.* Not Affected6.18.57 through 6.18.* Not Affected7.1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.