{"id":"CVE-2026-64132","published":"2026-07-19T15:40:27Z","modified":"2026-08-05T12:39:34Z","title":"ipv6: ioam: refresh hdr pointer before ioam6_event()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: ioam: refresh hdr pointer before ioam6_event()\n\nReported by Sashiko:\n\nIn ipv6_hop_ioam(), the hdr pointer is initialized to point into the\nskb's linear data buffer. Later, the code calls skb_ensure_writable(),\nwhich might reallocate the buffer:\n\n\tif (skb_ensure_writable(skb, optoff + 2 + hdr->opt_len))\n\t\tgoto drop;\n\n\t/* Trace pointer may have changed */\n\ttrace = (struct ioam6_trace_hdr *)(skb_network_header(skb)\n\t\t\t\t\t   + optoff + sizeof(*hdr));\n\n\tioam6_fill_trace_data(skb, ns, trace, true);\n\n\tioam6_event(IOAM6_EVENT_TRACE, dev_net(skb->dev),\n\t\t    GFP_ATOMIC, (void *)trace, hdr->opt_len - 2);\n\nIf the skb is cloned or lacks sufficient linear headroom,\nskb_ensure_writable() will invoke pskb_expand_head(), which reallocates\nthe skb's data buffer and frees the old one, invalidating pointers to\nit. While the code recalculates the trace pointer immediately after the\ncall to skb_ensure_writable(), it fails to recalculate the hdr pointer.\n\nThis patch fixes the above by recalculating the hdr pointer before\npassing hdr->opt_len to ioam6_event(), so that we avoid any UaF.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00671,"percentile":0.47052,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/769723124b7c3b2bfea4cf68ad292698b87c8d01","tags":[]},{"url":"https://git.kernel.org/stable/c/24de676da63c1122d2c13b0d546238b66d1b4e62","tags":[]},{"url":"https://git.kernel.org/stable/c/5af905aa8e91ff8d94572a1e089558f21dcf24ed","tags":[]},{"url":"https://git.kernel.org/stable/c/e46e6bc97fb1f339730ff1ba74267fbf48e7a422","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":9.41},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f655c78d6225f585ef60a9d93ffb79d507ff3ad3, < 769723124b7c3b2bfea4cf68ad292698b87c8d01",">= f655c78d6225f585ef60a9d93ffb79d507ff3ad3, < 24de676da63c1122d2c13b0d546238b66d1b4e62",">= f655c78d6225f585ef60a9d93ffb79d507ff3ad3, < 5af905aa8e91ff8d94572a1e089558f21dcf24ed",">= f655c78d6225f585ef60a9d93ffb79d507ff3ad3, < e46e6bc97fb1f339730ff1ba74267fbf48e7a422"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"euvd":{"id":"EUVD-2026-45817","exploited":false,"provenance":"source"}}