{"id":"CVE-2026-43186","aliases":["CVE-2026-43186"],"related":[],"kind":"vulnerability","state":"published","title":"ipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data()\n\nOn the receive path, __ioam6_fill_trace_data() uses trace->nodelen\nto decide how much data to write for each node. It trusts this field\nas-is from the incoming packet, with no consistency check against\ntrace->type (the 24-bit field that tells which data items are\npresent). A crafted packet can set nodelen=0 while setting type bits\n0-21, causing the function to write ~100 bytes past the allocated\nregion (into skb_shared_info), which corrupts adjacent heap memory\nand leads to a kernel panic.\n\nAdd a shared helper ioam6_trace_compute_nodelen() in ioam6.c to\nderive the expected nodelen from the type field, and use it:\n\n  - in ioam6_iptunnel.c (send path, existing validation) to replace\n    the open-coded computation;\n  - in exthdrs.c (receive path, ipv6_hop_ioam) to drop packets whose\n    nodelen is inconsistent with the type field, before any data is\n    written.\n\nPer RFC 9197, bits 12-21 are each short (4-octet) fields, so they\nare included in IOAM6_MASK_SHORT_FIELDS (changed from 0xff100000 to\n0xff1ffc00).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data()\n\nOn the receive path, __ioam6_fill_trace_data() uses trace->nodelen\nto decide how much data to write for each node. It trusts this field\nas-is from the incoming packet, with no consistency check against\ntrace->type (the 24-bit field that tells which data items are\npresent). A crafted packet can set nodelen=0 while setting type bits\n0-21, causing the function to write ~100 bytes past the allocated\nregion (into skb_shared_info), which corrupts adjacent heap memory\nand leads to a kernel panic.\n\nAdd a shared helper ioam6_trace_compute_nodelen() in ioam6.c to\nderive the expected nodelen from the type field, and use it:\n\n  - in ioam6_iptunnel.c (send path, existing validation) to replace\n    the open-coded computation;\n  - in exthdrs.c (receive path, ipv6_hop_ioam) to drop packets whose\n    nodelen is inconsistent with the type field, before any data is\n    written.\n\nPer RFC 9197, bits 12-21 are each short (4-octet) fields, so they\nare included in IOAM6_MASK_SHORT_FIELDS (changed from 0xff100000 to\n0xff1ffc00).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nipv6: ioam: corregir desbordamiento de búfer de pila en __ioam6_fill_trace_data()\n\nEn la ruta de recepción, __ioam6_fill_trace_data() utiliza trace  ->  nodelen para decidir cuántos datos escribir para cada nodo. Confía en este campo tal cual del paquete entrante, sin una verificación de consistencia contra trace  ->  type (el campo de 24 bits que indica qué elementos de datos están presentes). Un paquete manipulado puede establecer nodelen=0 mientras establece los bits de tipo 0-21, haciendo que la función escriba ~100 bytes más allá de la región asignada (en skb_shared_info), lo que corrompe la memoria de pila adyacente y conduce a un pánico del kernel.\n\nAñadir una función auxiliar compartida ioam6_trace_compute_nodelen() en ioam6.c para derivar el nodelen esperado del campo de tipo, y usarla:\n\n- en ioam6_iptunnel.c (ruta de envío, validación existente) para reemplazar el cálculo codificado de forma abierta;\n- en exthdrs.c (ruta de recepción, ipv6_hop_ioam) para descartar paquetes cuyo nodelen sea inconsistente con el campo de tipo, antes de que se escriba cualquier dato.\n\nSegún la RFC 9197, los bits 12-21 son cada uno campos cortos (de 4 octetos), por lo que se incluyen en IOAM6_MASK_SHORT_FIELDS (cambiado de 0x ff100000 a 0x ff1ffc00).","source":"nvd"}],"published":"2026-05-06T11:27:57.053Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"f4d9d4b8fd839719d564651671e24c62c545c23b","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"fb3c662fafebc5b9d74417ed1de8759f6bb72143","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"632d233cf2e64a46865ae2c064ae3c9df7c8864f","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"0591d6509c2ff13f09ea2998434aba0c0472e978","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"e90346a2f1e8917d5760a44a1f61c44e3b36d96b","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"ea3632aefc04205436868541638e26f4a74d5637","status":"affected"},{"type":"git","introduced":"9ee11f0fff205b4b3df9750bff5e94f97c71b6a0","fixed":"6db8b56eed62baacaf37486e83378a72635c04cc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.202","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"5.15.202"},{"status":"affected","introduced":"5.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f4d9d4b8fd839719d564651671e24c62c545c23b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb3c662fafebc5b9d74417ed1de8759f6bb72143","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/632d233cf2e64a46865ae2c064ae3c9df7c8864f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0591d6509c2ff13f09ea2998434aba0c0472e978","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e90346a2f1e8917d5760a44a1f61c44e3b36d96b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ea3632aefc04205436868541638e26f4a74d5637","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6db8b56eed62baacaf37486e83378a72635c04cc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-16T15:15:25.722Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43186","url":"https://www.cve.org/CVERecord?id=CVE-2026-43186","licence":"CVE Terms of Use","modified":"2026-10-19T19:16:23.065Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43186","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43186","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.718Z","epss":{"score":0.00642,"percentile":0.52113,"date":"2026-12-01T12:00:22.000Z"}}