# CVE-2026-89563: ip6_tunnel: use skb_cow_head() in ip6_tnl_xmit()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-09-11T19:44:34.375Z
- Modified: 2026-10-19T09:17:52.040Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ip6_tunnel: use skb_cow_head() in ip6_tnl_xmit()

ip6_tnl_xmit() may need to expand headroom before it can push the
outer IPv6 and optional encap headers. It currently does that with
skb_realloc_headroom(), copies skb->sk ownership, consumes the original
skb, and then continues processing with the replacement skb kept only in
its local variable.

That is safe only if the helper cannot fail afterwards. But this helper
still has post-reallocation error exits. collect_md tunnels reject
non-NONE encap after the replacement, and ip6_tnl_encap() can also fail
later. In those cases the helper returns an error to its callers while
the caller still only has the original skb pointer.

Both ip6_tnl_start_xmit() and the IPv6 GRE paths free the caller skb on
error, so they can end up freeing an skb that ip6_tnl_xmit() already
consumed.

Use skb_cow_head() instead. It provides the required headroom and
writability without privately replacing the caller-owned skb, so later
error returns cannot leave callers with a stale pointer.

The Ethernet users, ip6gretap and ip6erspan, clear IFF_TX_SKB_SHARING
and already call skb_cow_head() before entering ip6_tnl_xmit(). They do
not rely on the removed skb_shared() reallocation. This also makes the
IPv6 tunnel path consistent with ip_tunnel_xmit().

(As written by CVE List.)

## Affected

- Linux Linux: from 058214a4d1dfefed9f01a277fadd3590acb5f990 before 6e8eff8ed13b14708bc39f170144eacde494aac6; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before dc1a319a4815c074914e2812e0e9cd0164ca682b; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before 629d5557e635cdbc109a14ed913ba5a540e3f79a; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before defa0adeff132cc90ed66915b9a104d9393e1e54; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before 37df5bc6b5ccad88c2faa0f5466f150178882b74; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before b36dfd6e8cff00cea81c11cc0af88d1564763461; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before 8fc56ca49fc0ee1725b55c67bb43ab0dd01f3f52; from 058214a4d1dfefed9f01a277fadd3590acb5f990 before 87f21b59ddc618eff9670c174842964ad65fdade; 4.7 (not affected: before 4.7; from 5.10.270 up to 5.10.*; from 5.15.221 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.109 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/6e8eff8ed13b14708bc39f170144eacde494aac6>
- <https://git.kernel.org/stable/c/dc1a319a4815c074914e2812e0e9cd0164ca682b>
- <https://git.kernel.org/stable/c/629d5557e635cdbc109a14ed913ba5a540e3f79a>
- <https://git.kernel.org/stable/c/defa0adeff132cc90ed66915b9a104d9393e1e54>
- <https://git.kernel.org/stable/c/37df5bc6b5ccad88c2faa0f5466f150178882b74>
- <https://git.kernel.org/stable/c/b36dfd6e8cff00cea81c11cc0af88d1564763461>
- <https://git.kernel.org/stable/c/8fc56ca49fc0ee1725b55c67bb43ab0dd01f3f52>
- <https://git.kernel.org/stable/c/87f21b59ddc618eff9670c174842964ad65fdade>

## Sources

- CVE List: [CVE-2026-89563](https://www.cve.org/CVERecord?id=CVE-2026-89563), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89563](https://nvd.nist.gov/vuln/detail/CVE-2026-89563), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89563 · Whole record: https://cve.day/CVE-2026-89563.json · Rebuilt by cve.day 2026-11-25T22:59:38.067Z
