9.8critical
ip6_tunnel: clear skb2->cb[] in ip4ip6_err()
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.71% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before ea9f65b27c8404e164848ebff1443310fd187629, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before d6621f60192fe10c047a4487be42a6f4c150707f, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before 2cc6e3b0fe0f0242d1f530a93a4924f48ab85ba5, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before a0c4ce9900a108eaf55d0f3b399cb55999647d39, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before 1063515ce15ff31065c4e7f8265f4c2fd3c54876, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before 590f622669b97eaf7b57a1de7b0a6e68c5d8b2c3, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before 4a622658f384b03560834cbe8ffcfe69a278f7c8, from c4d3efafcc933fd2ffd169d7dc4f980393a13796 before 2edfa31769a4add828a7e604b21cb82aaaa05925 and 1 more Not affected: before 2.6.22, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.134 up to 6.6.*, from 6.12.81 up to 6.12.* | CVE List |
| kernel | Not specified Not affected: from 0:6.12.0-212.10.el10nv before *, from 0:6.12.0-231.12.el10nv before *, from 0:6.12.0-211.22.1.el10_2 before *, from 0:6.12.0-55.77.1.el10_0 before *, from 0:2.6.32-754.61.1.el6 before *, from 0:3.10.0-1160.153.1.el7 before * | CVE List |
| kpatch-patch | Not specified | CVE List |
| kernel-rt | Not specified Not affected: from 0:3.10.0-1160.155.1.rt56.1307.el7 before *, from 0:4.18.0-553.132.1.rt7.473.el8_10 before *, from 0:5.14.0-284.174.1.rt14.459.el9_2 before * | CVE List |
| rhcos | Not specified Not affected: from 412.86.202606140301-0 before *, from 413.92.202606160406-0 before *, from 414.92.202606231112-0 before *, from 415.92.202606200237-0 before *, from 416.94.202606051757-0 before *, from 417.94.202606250942-0 before * | CVE List |
| libkrun | Not specified | CVE List |
| linux linux_kernel | from 2.6.22 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.134, from 6.7 before 6.12.81, from 6.13 before 6.18.22, from 6.19 before 6.19.12, 7.0 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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).
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ip6_tunnel: limpiar skb2 -> cb[] en ip4ip6_err() Oskar Kjos informó el siguiente problema. ip4ip6_err() llama a icmp_send() en un skb clonado cuyo cb[] fue escrito por la ruta de recepción de IPv6 como struct inet6_skb_parm. icmp_send() pasa IPCB(skb2) a __ip_options_echo(), que interpreta esa región cb[] como struct inet_skb_parm (IPv4). Las estructuras difieren: inet6_skb_parm.nhoff en el desplazamiento 14 se superpone con inet_skb_parm.opt.rr, produciendo un valor rr distinto de cero. __ip_options_echo() luego lee optlen de datos de paquete controlados por el atacante en sptr[rr+1] y copia esa cantidad de bytes en dopt -> __data, un búfer de pila fijo de 40 bytes (IP_OPTIONS_DATA_FIXED_SIZE). Para solucionar esto, limpiamos skb2 -> cb[], como sugirió Oskar Kjos. También se añade validación mínima del encabezado IPv4 (version == 4, ihl mayor o igual que 5).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43037 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-43037 changed 2026-11-11 | Public domain |