CVE-2026-43037: ip6_tunnel: clear skb2->cb[] in ip4ip6_err()
In the Linux kernel, the following vulnerability has been resolved:
ip6tunnel: clear skb2->cb[] in ip4ip6err()
Oskar Kjos reported the following problem.
ip4ip6err() calls icmpsend() on a cloned skb whose cb[] was written by the IPv6 receive path as struct inet6skbparm. icmpsend() passes IPCB(skb2) to ipoptionsecho(), which interprets that cb[] region as struct inetskbparm (IPv4). The layouts differ: inet6skbparm.nhoff at offset 14 overlaps inetskbparm.opt.rr, producing a non-zero rr value. ipoptionsecho() 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 (IPOPTIONSDATAFIXEDSIZE).
To fix this we clear skb2->cb[], as suggested by Oskar Kjos.
Also add minimal IPv4 header validation (version == 4, ihl >= 5).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.8-1Fixed in 7.1.8-2 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.180-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-43037?
The severity of CVE-2026-43037 is classified as medium due to potential impact on the Linux kernel's handling of network packets.
How do I fix CVE-2026-43037?
To fix CVE-2026-43037, update your Linux kernel to the latest version where the vulnerability has been patched.
What impact does CVE-2026-43037 have on systems?
CVE-2026-43037 can lead to potential information leakage or denial-of-service conditions in affected systems running the Linux kernel.
Which versions of the Linux kernel are affected by CVE-2026-43037?
CVE-2026-43037 affects unspecified versions of the Linux kernel prior to the patch release.
Who reported CVE-2026-43037?
CVE-2026-43037 was reported by Oskar Kjos, highlighting an issue with the ip4ip6_err() function in the Linux kernel.