CVE-2026-43038
JSON

9.8critical

ipv6: icmp: clear skb2->cb[] in ip6_err_gen_icmpv6_unreach()

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ipv6: icmp: clear skb2->cb[] in ip6_err_gen_icmpv6_unreach() Sashiko AI-review observed: In ip6_err_gen_icmpv6_unreach(), the skb is an outer IPv4 ICMP error packet where its cb contains an IPv4 inet_skb_parm. When skb is cloned into skb2 and passed to icmp6_send(), it uses IP6CB(skb2). IP6CB interprets the IPv4 inet_skb_parm as an inet6_skb_parm. The cipso offset in inet_skb_parm.opt directly overlaps with dsthao in inet6_skb_parm at offset 18. If an attacker sends a forged ICMPv4 error with a CIPSO IP option, dsthao would be a non-zero offset. Inside icmp6_send(), mip6_addr_swap() is called and uses ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO). This would scan the inner, attacker-controlled IPv6 packet starting at that offset, potentially returning a fake TLV without checking if the remaining packet length can hold the full 18-byte struct ipv6_destopt_hao. Could mip6_addr_swap() then perform a 16-byte swap that extends past the end of the packet data into skb_shared_info? Should the cb array also be cleared in ip6_err_gen_icmpv6_unreach() and ip6ip6_err() to prevent this? This patch implements the first suggestion. I am not sure if ip6ip6_err() needs to be changed. A separate patch would be better anyway.

Affected

Product or packageVersionsReported by
Linux Linuxfrom ca15a078bd907df5fc1c009477869c5cbde3b753 before c438ba010171b70bad22fc18b1d5bdc3627476e8, from ca15a078bd907df5fc1c009477869c5cbde3b753 before 0452b6526b2f54b2413b9cb4ff1ea2ac542c99c7, from ca15a078bd907df5fc1c009477869c5cbde3b753 before a4437faf135da293d16fcc4cc607316742bd0ebb, from ca15a078bd907df5fc1c009477869c5cbde3b753 before 3d5127d998de617b130aae96b138dba22ac6a8a7, from ca15a078bd907df5fc1c009477869c5cbde3b753 before e41953e7d118e2702bcb217879c173d9d1d3cd4e, from ca15a078bd907df5fc1c009477869c5cbde3b753 before a2edbb6393972a02114b6003953a5cef3104fada, from ca15a078bd907df5fc1c009477869c5cbde3b753 before 1ceeebd5bd6d855b17a5df625109bfe29129d7cf, from ca15a078bd907df5fc1c009477869c5cbde3b753 before 86ab3e55673a7a49a841838776f1ab18d23a67b5 and 1 more
Not affected: before 3.13, 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
kernelNot specified
Not affected: from 0:6.12.0-211.28.1.el10_2 before *, from 0:6.12.0-55.77.1.el10_0 before *, from 0:4.18.0-553.132.1.el8_10 before *, from 0:4.18.0-305.194.1.el8_4 before *, from 0:4.18.0-372.195.1.el8_6 before *, from 0:4.18.0-477.145.1.el8_8 before *
CVE List
kpatch-patchNot specifiedCVE List
kernel-rtNot specified
Not affected: 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
linux linux_kernelfrom >3.13 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, 3.13 and 1 moreNVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat-SADP7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H

Classification

CWE-787CWE-843

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ipv6: icmp: clear skb2->cb[] in ip6_err_gen_icmpv6_unreach() Sashiko AI-review observed: In ip6_err_gen_icmpv6_unreach(), the skb is an outer IPv4 ICMP error packet where its cb contains an IPv4 inet_skb_parm. When skb is cloned into skb2 and passed to icmp6_send(), it uses IP6CB(skb2). IP6CB interprets the IPv4 inet_skb_parm as an inet6_skb_parm. The cipso offset in inet_skb_parm.opt directly overlaps with dsthao in inet6_skb_parm at offset 18. If an attacker sends a forged ICMPv4 error with a CIPSO IP option, dsthao would be a non-zero offset. Inside icmp6_send(), mip6_addr_swap() is called and uses ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO). This would scan the inner, attacker-controlled IPv6 packet starting at that offset, potentially returning a fake TLV without checking if the remaining packet length can hold the full 18-byte struct ipv6_destopt_hao. Could mip6_addr_swap() then perform a 16-byte swap that extends past the end of the packet data into skb_shared_info? Should the cb array also be cleared in ip6_err_gen_icmpv6_unreach() and ip6ip6_err() to prevent this? This patch implements the first suggestion. I am not sure if ip6ip6_err() needs to be changed. A separate patch would be better anyway.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ipv6: icmp: limpiar skb2 -> cb[] en ip6_err_gen_icmpv6_unreach() La revisión de IA de Sashiko observó: En ip6_err_gen_icmpv6_unreach(), el skb es un paquete de error ICMP IPv4 externo donde su cb contiene un inet_skb_parm IPv4. Cuando el skb es clonado en skb2 y pasado a icmp6_send(), utiliza IP6CB(skb2). IP6CB interpreta el inet_skb_parm IPv4 como un inet6_skb_parm. El desplazamiento cipso en inet_skb_parm.opt se superpone directamente con dsthao en inet6_skb_parm en el desplazamiento 18. Si un atacante envía un error ICMPv4 falsificado con una opción IP CIPSO, dsthao sería un desplazamiento no nulo. Dentro de icmp6_send(), se llama a mip6_addr_swap() y utiliza ipv6_find_tlv(skb, opt -> dsthao, IPV6_TLV_HAO). Esto escanearía el paquete IPv6 interno, controlado por el atacante, comenzando en ese desplazamiento, potencialmente devolviendo un TLV falso sin verificar si la longitud restante del paquete puede contener la estructura completa de 18 bytes ipv6_destopt_hao. ¿Podría mip6_addr_swap() entonces realizar un intercambio de 16 bytes que se extienda más allá del final de los datos del paquete hacia skb_shared_info? ¿Debería también limpiarse el array cb en ip6_err_gen_icmpv6_unreach() e ip6ip6_err() para evitar esto? Este parche implementa la primera sugerencia. No estoy seguro si ip6ip6_err() necesita ser cambiado. Un parche separado sería mejor de todos modos.

References

https://git.kernel.org/stable/c/c438ba010171b70bad22fc18b1d5bdc3627476e8patch
https://git.kernel.org/stable/c/0452b6526b2f54b2413b9cb4ff1ea2ac542c99c7patch
https://git.kernel.org/stable/c/a4437faf135da293d16fcc4cc607316742bd0ebbpatch
https://git.kernel.org/stable/c/3d5127d998de617b130aae96b138dba22ac6a8a7patch
https://git.kernel.org/stable/c/e41953e7d118e2702bcb217879c173d9d1d3cd4epatch
https://git.kernel.org/stable/c/a2edbb6393972a02114b6003953a5cef3104fadapatch
https://git.kernel.org/stable/c/1ceeebd5bd6d855b17a5df625109bfe29129d7cfpatch
https://git.kernel.org/stable/c/86ab3e55673a7a49a841838776f1ab18d23a67b5patch
https://access.redhat.com/security/cve/CVE-2026-43038vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2464397issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43038.json
https://access.redhat.com/errata/RHSA-2026:24343vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-43038 changed 2026-11-10CVE Terms of Use
NVDCVE-2026-43038 changed 2026-11-11Public domain