netfilter: nf_reject: initialize IPCB at inet ingress
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_reject: initialize IPCB at inet ingress
The inet ingress hook runs before ip_rcv_core() and ip6_rcv_core(), so neither IPCB nor IP6CB has been initialized when nft_reject_inet passes a packet to nf_send_unreach() or nf_send_unreach6(). skb->cb can therefore retain metadata from an earlier protocol layer.
For IPv4, icmp_send() treats IPCB(skb)->opt as parsed IPv4 options. Stale option offsets can make __ip_options_echo() 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 __ip_options_echo() Write of size 255
For IPv6, icmpv6_send() 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 NF_INET_INGRESS, clear the address-family-specific control block and restore its input interface before constructing the ICMP error. This matches similar initialization normally performed by ip_rcv_core() and ip6_rcv_core().
| Product | Versions |
|---|---|
| Linux Linux | 97540d9e879f62894350d7e10e538e02e21df08d to before f632c1de908d7a1fbb38eb03d2d6e1d66acf67f3 Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before 1510864608ef10479b668d8ab25d1b304e3cc655 Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before 67b669e40106676dd86b694ab5a91851f3aac892 Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before bbc829f4f9886218f1c42672a36f3ddd7dc78fdd Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before a042722d9f6a3c21599cba1e5d7a24e61a90439b Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before 306a7db6aaa192e6ff1bd235bae4613d855af87f Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before b5ed456d3b474204e3152b36abe2e8035025f026 Affected117ca1f8920cf4087bf82f44bd2a51b49d6aae63 to before 73a73d442f9986353fe284bd1b504d0313d0f153 Affected5.10.241 to before 5.10.275 Affected |
| Linux Linux | 5.11 Affectedbefore 5.11 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/f632c1de908d7a1fbb38eb03d2d6e1d66acf67f3
- https://git.kernel.org/stable/c/1510864608ef10479b668d8ab25d1b304e3cc655
- https://git.kernel.org/stable/c/67b669e40106676dd86b694ab5a91851f3aac892
- https://git.kernel.org/stable/c/bbc829f4f9886218f1c42672a36f3ddd7dc78fdd
- https://git.kernel.org/stable/c/a042722d9f6a3c21599cba1e5d7a24e61a90439b
- https://git.kernel.org/stable/c/306a7db6aaa192e6ff1bd235bae4613d855af87f
- https://git.kernel.org/stable/c/b5ed456d3b474204e3152b36abe2e8035025f026
- https://git.kernel.org/stable/c/73a73d442f9986353fe284bd1b504d0313d0f153
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.