HIGH Introduced in 3.14
vxlan Headroom Race
CVE-2026-98568
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: vxlan: use one headroom snapshot for neighbour replies vxlan_na_create() samples LL_RESERVED_SPACE() to size the reply skb and then samples it again to reserve headroom. A concurrent vxlan_changelink() can update needed_headroom between the two reads, creating a TOCTOU race. The second value can exceed the allocation and make the Ethernet header write out of bounds. The race is reproducible on the unpatched kernel. It occurred when vxlan_na_create() generated a neighbour reply while vxlan_changelink() changed the link headroom. KASAN caught a four-byte write two bytes beyond a 704-byte skbuff_small_head allocation. Snapshot the headroom once and use that value for both allocation and reservation.
02KernelScan AI Analysis
Risk summary
A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can race a VXLAN link configuration change against an incoming IPv6 neighbor solicitation, causing an out-of-bounds write when the kernel constructs a neighbor advertisement reply. This heap corruption can lead to kernel panic, privilege escalation, or information disclosure. The vulnerability affects systems with VXLAN tunnels carrying IPv6 traffic.
Vulnerability analysis
The vxlan_na_create() function reads the device's required LL headroom twice: once to size the reply skb allocation and again to reserve headroom before pushing the Ethernet header. A concurrent vxlan_changelink() call can increase needed_headroom between these two reads, so the reservation exceeds the allocation and the subsequent Ethernet header write corrupts memory beyond the skb buffer. The fix snapshots the headroom value once and reuses it for both allocation and reservation, eliminating the race window. An attacker needs local access with CAP_NET_ADMIN (available in a user namespace) to trigger the configuration change while inducing neighbor solicitations on the VXLAN interface, making this reachable from containers or unprivileged user namespaces where NET_ADMIN is granted.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 3.12 | 3.12.18 | 3.13 | e3e24f4c434c |
| 3.13 | 3.13.10 | 3.14 | 9ed5a548b42d |
| 5.10 | 3.14 | 5.10.273 | fcaf456092dc |
| 5.15 | 3.14 | 5.15.224 | 45a67662bf8c |
| 6.1 | 3.14 | 6.1.191 | 315d42ca39f6 |
| 6.12 | 3.14 | 6.12.112 | ff022fd9d0f0 |
| 6.18 | 3.14 | 6.18.55 | 481506a756dc |
| 6.6 | 3.14 | 6.6.158 | a3c5eb6e382d |
| 7.2 | 3.14 | 7.2.9 | — |
| mainline | 3.14 | 7.3 | — |
| cip/6.12 | 3.14 | 6.12.112-cip33 | 315d42ca39f6 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |