Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143368

netfilter: nft_reject: prevent unbounded recursion in output hooks

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_reject: prevent unbounded recursion in output hooks nftables payload-mangling rules can rewrite packet contents (such as TCP flags) before they are evaluated by reject targets. This defeats the content-based loop guards, allowing unbounded hook recursion that leads to kernel stack exhaustion and panics. Fix this by extracting the per-CPU xmit recursion limit previously used by the netdev duplication/forwarding paths into a shared header, and apply it to the inet and inet6 reject transmit functions. It disables BH while transmitting the skb to address a possible migration to different CPU leading to imbalanced decrementation of the recursion counters. Note that the dev_queue_xmit() path used when CONFIG_BRIDGE_NETFILTER is enabled does not require this recursion guard. In that scenario, the generated reset packet is transmitted directly at Layer 2. Because the packet egresses from a different hook, it cannot synchronously loop. In addition nf_send_unreach() and nf_send_unreach6() are safe as the ICMP transmit functions are protected against recursion by the icmp_xmit_lock() and icmpv6_xmit_lock() guards.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • bee11dc78fc8a41299be5ce04b1c76b0057af450 to < 380edcd3213277c566a82c822b6c97fadeacb45faffected
  • bee11dc78fc8a41299be5ce04b1c76b0057af450 to < f5802700d0764d44be8a805e882c518c18138005affected
  • bee11dc78fc8a41299be5ce04b1c76b0057af450 to < de55924b1ed4225331131ace2ece42da8a58ff34affected
  • bee11dc78fc8a41299be5ce04b1c76b0057af450 to < d6c18cadfc6c7a88e9e07e0a1b5ead37c0ddf866affected

Linux Linux

Default version status: affected

  • 3.14affected
  • 0 to < 3.14unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References