CVE-2026-53228: ipv6: sit: reload inner IPv6 header after GSO offloads
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipv6: sit: reload inner IPv6 header after GSO offloads
ipip6_tunnel_xmit() caches the inner IPv6 header pointer at function entry and continues using it after iptunnel_handle_offloads().
For GSO skbs, iptunnel_handle_offloads() calls skb_header_unclone(). When the skb header is cloned, skb_header_unclone() can call pskb_expand_head(), which may move the skb head. The pskb_expand_head() contract requires pointers into the skb header to be reloaded after the call.
If the later skb_realloc_headroom() branch is not taken, SIT uses the stale iph6 pointer to read the inner hop limit and DS field. That can read from a freed skb head after the old head's remaining clone is released.
Reload iph6 after the offload helper succeeds and before subsequent reads from the inner IPv6 header. Keep the existing reload after skb_realloc_headroom(), since that branch can also replace the skb.
The Linux kernel CVE team has assigned CVE-2026-53228 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 5.10.259 with commit fddd41445a0537b093e6b3f6232c9933cad1e48b Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 5.15.210 with commit 1132e5edc2866c3530be17622153a597095f0e43 Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 6.1.176 with commit 9c67b44edb3598d234efae6e44649eb993c03da5 Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 6.6.143 with commit 0bfa7bba1f41aaf5f0604dc712bb4701493e3aa0 Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 6.12.94 with commit 59f80c919713250fe5d25a4d9aea4e49580fa1d4 Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 6.18.36 with commit 2fa49b2715e1bad12ce3b0fa64e234d9582c8193 Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 7.0.13 with commit cb658c2f5f7977c2a1c77c9f239f4bc8196edb5c Issue introduced in 3.18 with commit 14909664e4e192f4c6f6fcdccd9919af7cf783ab and fixed in 7.1 with commit f0e42f0c4337b1f220de1ddd63f47197c7dee4de
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-53228
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/sit.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/fddd41445a0537b093e6b3f6232c9933cad1e48b https://git.kernel.org/stable/c/1132e5edc2866c3530be17622153a597095f0e43 https://git.kernel.org/stable/c/9c67b44edb3598d234efae6e44649eb993c03da5 https://git.kernel.org/stable/c/0bfa7bba1f41aaf5f0604dc712bb4701493e3aa0 https://git.kernel.org/stable/c/59f80c919713250fe5d25a4d9aea4e49580fa1d4 https://git.kernel.org/stable/c/2fa49b2715e1bad12ce3b0fa64e234d9582c8193 https://git.kernel.org/stable/c/cb658c2f5f7977c2a1c77c9f239f4bc8196edb5c https://git.kernel.org/stable/c/f0e42f0c4337b1f220de1ddd63f47197c7dee4de