CVE-2026-68127: ila: reload IPv6 header after pskb_may_pull in checksum adjust
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ila: reload IPv6 header after pskb_may_pull in checksum adjust
ila_csum_adjust_transport() caches ip6h = ipv6_hdr(skb) before calling pskb_may_pull(). On a non-linear skb whose transport header sits in a page fragment, pskb_may_pull() can call __pskb_pull_tail() / pskb_expand_head() and free the old skb head, leaving ip6h dangling; the following get_csum_diff(ip6h, p) then reads freed memory. ila_update_ipv6_locator() uses ip6h (and the iaddr derived from it) again after the csum-adjust call and additionally writes the new locator through that pointer.
Impact: a remote IPv6 packet routed through a configured ILA csum-adjust-transport route or receive-side mapping triggers a slab-use-after-free in ila_update_ipv6_locator() (KASAN). The route or mapping requires CAP_NET_ADMIN to configure, but trigger packets are unauthenticated once it exists.
Reload ip6h after each pskb_may_pull() in ila_csum_adjust_transport() before the csum-diff read. In ila_update_ipv6_locator() only the ILA_CSUM_ADJUST_TRANSPORT case pulls the skb, so reload ip6h and iaddr in that case alone before the destination-address write; the neutral-map modes never pull and keep their cached pointers.
The Linux kernel CVE team has assigned CVE-2026-68127 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.5 with commit 33f11d16142b06588eedfc1dd8cf93790979a712 and fixed in 6.6.148 with commit 896a9512d0d83c2a4b357e5585b7b62a8e3f95c1 Issue introduced in 4.5 with commit 33f11d16142b06588eedfc1dd8cf93790979a712 and fixed in 6.12.101 with commit 7097a0280b178237265681be66d1bef11d15894b Issue introduced in 4.5 with commit 33f11d16142b06588eedfc1dd8cf93790979a712 and fixed in 6.18.42 with commit 472aba2603ca74c4f7722cb0c0296942b0776b8d Issue introduced in 4.5 with commit 33f11d16142b06588eedfc1dd8cf93790979a712 and fixed in 7.1.6 with commit c6a13ae00dab3a1a8c7cf2f843f0fc9e8d4b0ccc Issue introduced in 4.5 with commit 33f11d16142b06588eedfc1dd8cf93790979a712 and fixed in 7.2-rc5 with commit 92d3817649df2b0b6a008a686c8275c88d7ef594
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-68127
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ipv6/ila/ila_common.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/896a9512d0d83c2a4b357e5585b7b62a8e3f95c1 https://git.kernel.org/stable/c/7097a0280b178237265681be66d1bef11d15894b https://git.kernel.org/stable/c/472aba2603ca74c4f7722cb0c0296942b0776b8d https://git.kernel.org/stable/c/c6a13ae00dab3a1a8c7cf2f843f0fc9e8d4b0ccc https://git.kernel.org/stable/c/92d3817649df2b0b6a008a686c8275c88d7ef594