{"id":"CVE-2026-99294","state":"PUBLISHED","title":"netfilter: nft_fwd_netdev: use recursion counter in neigh egress path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_fwd_netdev: use recursion counter in neigh egress path\n\nnft_fwd_neigh can be used in egress chains (NF_NETDEV_EGRESS). When the\nforwarding rule targets the same device or two devices forward to each\nother, neigh_xmit() triggers dev_queue_xmit() which re-enters\nnf_hook_egress(), causing infinite recursion and stack overflow.\n\nMove the nf_get_nf_dup_skb_recursion() accessor and NF_RECURSION_LIMIT\nto the shared header nf_dup_netdev.h as a static inline, so that\nnft_fwd_netdev can use the recursion counter directly without exported\nfunction call overhead. Guard neigh_xmit() with the same recursion\nlimit already used in nf_do_netdev_egress().\n\n[ Updated to cache the nf_get_nf_dup_skb_recursion pointer. --pablo ]","publishedAt":"2026-11-16T09:59:22.229Z","updatedAt":"2026-11-16T09:59:22.229Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f87b9464d152f7705f1e37288dc48f5af6a2fc0c","status":"affected","lessThan":"fcacd948b10a351aa128acd3c2c4cee62d1ea677","versionType":"git"},{"version":"f87b9464d152f7705f1e37288dc48f5af6a2fc0c","status":"affected","lessThan":"1d47b55b36d2ec73fe6901212c8b28a593c3b27c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/netfilter/nf_dup_netdev.h","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/netfilter/nf_dup_netdev.h","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]}],"references":["https://git.kernel.org/stable/c/fcacd948b10a351aa128acd3c2c4cee62d1ea677","https://git.kernel.org/stable/c/1d47b55b36d2ec73fe6901212c8b28a593c3b27c"],"weaknesses":[],"ingestedAt":"2026-11-16T10:04:06.199Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99294.json","commit":"3808745d766d423d08da0288126e42c97c0f2060","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99294","state":"PUBLISHED","datePublished":"2026-11-16T09:59:22.229Z","dateUpdated":"2026-11-16T09:59:22.229Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.406Z"},"containers":{"cna":{"title":"netfilter: nft_fwd_netdev: use recursion counter in neigh egress path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_fwd_netdev: use recursion counter in neigh egress path\n\nnft_fwd_neigh can be used in egress chains (NF_NETDEV_EGRESS). When the\nforwarding rule targets the same device or two devices forward to each\nother, neigh_xmit() triggers dev_queue_xmit() which re-enters\nnf_hook_egress(), causing infinite recursion and stack overflow.\n\nMove the nf_get_nf_dup_skb_recursion() accessor and NF_RECURSION_LIMIT\nto the shared header nf_dup_netdev.h as a static inline, so that\nnft_fwd_netdev can use the recursion counter directly without exported\nfunction call overhead. Guard neigh_xmit() with the same recursion\nlimit already used in nf_do_netdev_egress().\n\n[ Updated to cache the nf_get_nf_dup_skb_recursion pointer. --pablo ]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f87b9464d152f7705f1e37288dc48f5af6a2fc0c","status":"affected","lessThan":"fcacd948b10a351aa128acd3c2c4cee62d1ea677","versionType":"git"},{"version":"f87b9464d152f7705f1e37288dc48f5af6a2fc0c","status":"affected","lessThan":"1d47b55b36d2ec73fe6901212c8b28a593c3b27c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/netfilter/nf_dup_netdev.h","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/netfilter/nf_dup_netdev.h","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fcacd948b10a351aa128acd3c2c4cee62d1ea677"},{"url":"https://git.kernel.org/stable/c/1d47b55b36d2ec73fe6901212c8b28a593c3b27c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-16T09:59:22.229Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}