CVE-2026-64132: ipv6: ioam: refresh hdr pointer before ioam6_event()
In the Linux kernel, the following vulnerability has been resolved:
ipv6: ioam: refresh hdr pointer before ioam6event()
Reported by Sashiko:
In ipv6hopioam(), the hdr pointer is initialized to point into the skb's linear data buffer. Later, the code calls skbensurewritable(), which might reallocate the buffer:
if (skbensurewritable(skb, optoff + 2 + hdr->optlen)) goto drop;
/ Trace pointer may have changed / trace = (struct ioam6tracehdr )(skbnetworkheader(skb) + optoff + sizeof(hdr));
ioam6filltracedata(skb, ns, trace, true);
ioam6event(IOAM6EVENTTRACE, devnet(skb->dev), GFPATOMIC, (void )trace, hdr->optlen - 2);
If the skb is cloned or lacks sufficient linear headroom, skbensurewritable() will invoke pskbexpandhead(), which reallocates the skb's data buffer and frees the old one, invalidating pointers to it. While the code recalculates the trace pointer immediately after the call to skbensurewritable(), it fails to recalculate the hdr pointer.
This patch fixes the above by recalculating the hdr pointer before passing hdr->optlen to ioam6event(), so that we avoid any UaF.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64132?
The severity of CVE-2026-64132 is critical with a CVSS score of 9.8.
How do I fix CVE-2026-64132?
To fix CVE-2026-64132, update your Linux kernel to the patched version that addresses this vulnerability.
What systems are affected by CVE-2026-64132?
CVE-2026-64132 affects the Linux kernel implementations that utilize IPv6 IOAM.
What are the potential impacts of CVE-2026-64132?
CVE-2026-64132 can lead to a denial of service or potential data corruption due to improper header pointer handling.
Who reported CVE-2026-64132?
CVE-2026-64132 was reported by the researcher Sashiko.