CVE-2026-100026: netfilter: nf_reject: initialize IPCB at inet ingress
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfreject: initialize IPCB at inet ingress
The inet ingress hook runs before iprcvcore() and ip6rcvcore(), so neither IPCB nor IP6CB has been initialized when nftrejectinet passes a packet to nfsendunreach() or nfsendunreach6(). skb->cb can therefore retain metadata from an earlier protocol layer.
For IPv4, icmpsend() treats IPCB(skb)->opt as parsed IPv4 options. Stale option offsets can make ipoptionsecho() copy an attacker-controlled length into its 40-byte reply option buffer and overflow the stack. On an unpatched v7.2-rc5 kernel, the IPv4 reproducer produced:
BUG: KASAN: stack-out-of-bounds in ipoptionsecho() Write of size 255
For IPv6, icmpv6send() consumes IP6CB(skb) as parsed IPv6 metadata. It always uses iif for source selection and, when MIP6 is enabled, uses dsthao as an extension-header offset. These fields must not be stale.
For NFINETINGRESS, clear the address-family-specific control block and restore its input interface before constructing the ICMP error. This matches similar initialization normally performed by iprcvcore() and ip6rcvcore().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
At NF_INET_INGRESS, clear the address-family-specific control block (IPCB for IPv4 or IP6CB for IPv6) and restore the input interface before constructing the ICMP error.
Event History
Frequently Asked Questions
Which systems are exposed to the IPv4 stack overflow path?
Systems that process packets through an nftables reject rule at the NF_INET_INGRESS hook are exposed. The reported IPv4 failure requires stale skb control-block data to be interpreted as IPv4 options while constructing an ICMP unreachable response.
What must an attacker be able to do to trigger the issue?
An attacker must be able to supply traffic that reaches an inet ingress nftables reject path and causes an ICMP error response to be constructed. For IPv4, stale option offsets can cause attacker-controlled length data to be copied into a 40-byte reply-options buffer.
Are IPv6 configurations also affected?
Yes. On the same inet ingress reject path, IPv6 ICMP error handling can consume stale IP6CB metadata; it uses the input interface for source selection and, when MIP6 is enabled, may use a stale dsthao value as an extension-header offset.
What is the relevant mitigation if an update cannot be applied immediately?
Avoid using nftables reject processing at the NF_INET_INGRESS hook until the kernel fix is available. The vulnerable path is specifically reached when nft_reject_inet passes ingress packets to the IPv4 or IPv6 ICMP unreachable send functions.