{"id":"CVE-2026-143368","state":"PUBLISHED","title":"netfilter: nft_reject: prevent unbounded recursion in output hooks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_reject: prevent unbounded recursion in output hooks\n\nnftables payload-mangling rules can rewrite packet contents (such as TCP\nflags) before they are evaluated by reject targets. This defeats the\ncontent-based loop guards, allowing unbounded hook recursion that leads\nto kernel stack exhaustion and panics.\n\nFix this by extracting the per-CPU xmit recursion limit previously used\nby the netdev duplication/forwarding paths into a shared header, and\napply it to the inet and inet6 reject transmit functions. It disables BH\nwhile transmitting the skb to address a possible migration to different\nCPU leading to imbalanced decrementation of the recursion counters.\n\nNote that the dev_queue_xmit() path used when CONFIG_BRIDGE_NETFILTER is\nenabled does not require this recursion guard. In that scenario, the\ngenerated reset packet is transmitted directly at Layer 2. Because the\npacket egresses from a different hook, it cannot synchronously loop. In\naddition nf_send_unreach() and nf_send_unreach6() are safe as the ICMP\ntransmit functions are protected against recursion by the\nicmp_xmit_lock() and icmpv6_xmit_lock() guards.","publishedAt":"2026-12-03T09:22:19.394Z","updatedAt":"2026-12-03T09:22:19.394Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"380edcd3213277c566a82c822b6c97fadeacb45f","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"f5802700d0764d44be8a805e882c518c18138005","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"de55924b1ed4225331131ace2ece42da8a58ff34","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"d6c18cadfc6c7a88e9e07e0a1b5ead37c0ddf866","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice_xmit.h","include/net/netfilter/nf_dup_netdev.h","include/net/netfilter/nf_recursion.h","net/ipv4/netfilter/nf_reject_ipv4.c","net/ipv6/netfilter/nf_reject_ipv6.c","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice_xmit.h","include/net/netfilter/nf_dup_netdev.h","include/net/netfilter/nf_recursion.h","net/ipv4/netfilter/nf_reject_ipv4.c","net/ipv6/netfilter/nf_reject_ipv6.c","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]}],"references":["https://git.kernel.org/stable/c/380edcd3213277c566a82c822b6c97fadeacb45f","https://git.kernel.org/stable/c/f5802700d0764d44be8a805e882c518c18138005","https://git.kernel.org/stable/c/de55924b1ed4225331131ace2ece42da8a58ff34","https://git.kernel.org/stable/c/d6c18cadfc6c7a88e9e07e0a1b5ead37c0ddf866"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143368.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143368","state":"PUBLISHED","datePublished":"2026-12-03T09:22:19.394Z","dateUpdated":"2026-12-03T09:22:19.394Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.371Z"},"containers":{"cna":{"title":"netfilter: nft_reject: prevent unbounded recursion in output hooks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_reject: prevent unbounded recursion in output hooks\n\nnftables payload-mangling rules can rewrite packet contents (such as TCP\nflags) before they are evaluated by reject targets. This defeats the\ncontent-based loop guards, allowing unbounded hook recursion that leads\nto kernel stack exhaustion and panics.\n\nFix this by extracting the per-CPU xmit recursion limit previously used\nby the netdev duplication/forwarding paths into a shared header, and\napply it to the inet and inet6 reject transmit functions. It disables BH\nwhile transmitting the skb to address a possible migration to different\nCPU leading to imbalanced decrementation of the recursion counters.\n\nNote that the dev_queue_xmit() path used when CONFIG_BRIDGE_NETFILTER is\nenabled does not require this recursion guard. In that scenario, the\ngenerated reset packet is transmitted directly at Layer 2. Because the\npacket egresses from a different hook, it cannot synchronously loop. In\naddition nf_send_unreach() and nf_send_unreach6() are safe as the ICMP\ntransmit functions are protected against recursion by the\nicmp_xmit_lock() and icmpv6_xmit_lock() guards."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"380edcd3213277c566a82c822b6c97fadeacb45f","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"f5802700d0764d44be8a805e882c518c18138005","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"de55924b1ed4225331131ace2ece42da8a58ff34","versionType":"git"},{"version":"bee11dc78fc8a41299be5ce04b1c76b0057af450","status":"affected","lessThan":"d6c18cadfc6c7a88e9e07e0a1b5ead37c0ddf866","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice_xmit.h","include/net/netfilter/nf_dup_netdev.h","include/net/netfilter/nf_recursion.h","net/ipv4/netfilter/nf_reject_ipv4.c","net/ipv6/netfilter/nf_reject_ipv6.c","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice_xmit.h","include/net/netfilter/nf_dup_netdev.h","include/net/netfilter/nf_recursion.h","net/ipv4/netfilter/nf_reject_ipv4.c","net/ipv6/netfilter/nf_reject_ipv6.c","net/netfilter/nf_dup_netdev.c","net/netfilter/nft_fwd_netdev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/380edcd3213277c566a82c822b6c97fadeacb45f"},{"url":"https://git.kernel.org/stable/c/f5802700d0764d44be8a805e882c518c18138005"},{"url":"https://git.kernel.org/stable/c/de55924b1ed4225331131ace2ece42da8a58ff34"},{"url":"https://git.kernel.org/stable/c/d6c18cadfc6c7a88e9e07e0a1b5ead37c0ddf866"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:19.394Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.14","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}