CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2026-43037

Critical · CVSS 9.8

Linux Kernel — Out-of-bounds write / type confusion stack buffer overflow in ip6_tunnel ICMPv4 error handling (CWE-787, CWE-843)

CVSS
9.8
nvd
EPSS
0.56%
44th pct
KEV
No
Class
oss containerizable
CWE-787, CWE-843

Description

In the Linux kernel, the following vulnerability has been resolved: ip6_tunnel: clear skb2->cb[] in ip4ip6_err() Oskar Kjos reported the following problem. ip4ip6_err() calls icmp_send() on a cloned skb whose cb[] was written by the IPv6 receive path as struct inet6_skb_parm. icmp_send() passes IPCB(skb2) to __ip_options_echo(), which interprets that cb[] region as struct inet_skb_parm (IPv4). The layouts differ: inet6_skb_parm.nhoff at offset 14 overlaps inet_skb_parm.opt.rr, producing a non-zero rr value. __ip_options_echo() then reads optlen from attacker-controlled packet data at sptr[rr+1] and copies that many bytes into dopt->__data, a fixed 40-byte stack buffer (IP_OPTIONS_DATA_FIXED_SIZE). To fix this we clear skb2->cb[], as suggested by Oskar Kjos. Also add minimal IPv4 header validation (version == 4, ihl >= 5).

Search profile — drives PoC discovery

Symbols ip4ip6_erricmp_sendIPCB__ip_options_echoinet6_skb_parminet_skb_parminet6_skb_parm.nhoffinet_skb_parm.opt.rrIP_OPTIONS_DATA_FIXED_SIZEskb2->cbip6_tunneldopt->__data
Keywords CVE-2026-43037ip4ip6_errip6_tunnelskb cb clearinet6_skb_parm inet_skb_parm type confusion__ip_options_echo stack buffer overflowLinux kernel ip6_tunnel ICMPv4 errorip4ip6_err icmp_send cb overlapLinux kernel out-of-bounds write tunnel
Versions: Linux kernel versions prior to stable commits: 1063515ce15f, 2cc6e3b0fe0f, 2edfa31769a4, 4a622658f384, 590f622669b9

Affected packages

Linux Kernel 2.6.22 → 5.10.253
Linux Kernel 5.11.0 → 5.15.203
Linux Kernel 5.16.0 → 6.1.168
Linux Kernel 6.13.0 → 6.18.22
Linux Kernel 6.19.0 → 6.19.12
Linux Kernel 6.2.0 → 6.6.134
Linux Kernel 6.7.0 → 6.12.81

References

Status: enriched · ingested 2026-07-10T18:00:26.000Z · profiled 2026-07-10T18:30:26.000Z