CVE-2026-80681: vxlan: re-fetch eth header after route_shortcircuit()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vxlan: re-fetch eth header after route_shortcircuit()
Before route_shortcircuit(), the eth header pointer is cached from eth_hdr(skb).
Inside route_shortcircuit(), pskb_may_pull() can be called, which may reallocate skb->head.
In this case, returning to vxlan_xmit() leaves the cached eth pointer pointing to freed memory, leading to a use-after-free when dereferencing eth->h_dest.
Fix this by updating eth = eth_hdr(skb) after calling route_shortcircuit().
The Linux kernel CVE team has assigned CVE-2026-80681 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 5.10.265 with commit 6375093eb45cd7d89f1945f939eeae3b29d79f56 Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 5.15.216 with commit 1b7f7b653e3557690047c62f03b80a24ea5a58a5 Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 6.1.183 with commit bf045341dfb3e767f0ff94cf240ce3c371973bd4 Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 6.6.151 with commit 2355c8c26d2aa1b4385b369e67202e47d460d555 Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 6.12.103 with commit 1511631b7cfc4152b10a0a9d04c7a0bf2ddf4585 Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 6.18.44 with commit 1235e017aa11cf01e91b613c4c5ed6aa28934fff Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 7.1.8 with commit c9dceac9e1c7c772c43c732fc0d325e72835801a Issue introduced in 3.10 with commit ae8840825605f36f98f247323edc150e761cb64e and fixed in 7.2 with commit 1395a676ec15a0a02a2a6d86602324f2d5fd41d5
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-80681
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:
drivers/net/vxlan/vxlan_core.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/6375093eb45cd7d89f1945f939eeae3b29d79f56 https://git.kernel.org/stable/c/1b7f7b653e3557690047c62f03b80a24ea5a58a5 https://git.kernel.org/stable/c/bf045341dfb3e767f0ff94cf240ce3c371973bd4 https://git.kernel.org/stable/c/2355c8c26d2aa1b4385b369e67202e47d460d555 https://git.kernel.org/stable/c/1511631b7cfc4152b10a0a9d04c7a0bf2ddf4585 https://git.kernel.org/stable/c/1235e017aa11cf01e91b613c4c5ed6aa28934fff https://git.kernel.org/stable/c/c9dceac9e1c7c772c43c732fc0d325e72835801a https://git.kernel.org/stable/c/1395a676ec15a0a02a2a6d86602324f2d5fd41d5