HIGH Introduced in 2.6.34
llc VlanHeadroom Underflow
CVE-2026-98526
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: llc: reserve device headroom for allocated frames llc_alloc_frame() reserves link-layer headroom using the device type. This is insufficient for stacked Ethernet devices such as VLAN devices, where vlan_dev_hard_header() pushes a VLAN header before the lower device's Ethernet header. An LLC response on such a device can therefore underflow skb headroom in eth_header(). Use LL_RESERVED_SPACE() to account for the device's actual required headroom while preserving the existing LLC device-type check.
02KernelScan AI Analysis
Risk summary
A local attacker with the ability to create VLAN interfaces and send LLC frames can trigger a kernel buffer underflow, leading to memory corruption, privilege escalation, or denial of service. The vulnerability affects any system with LLC and VLAN (802.1Q) support enabled.
Vulnerability analysis
The LLC subsystem allocates socket buffers for outgoing frames but calculates the required link-layer headroom based only on the device type (Ethernet or loopback), ignoring additional encapsulation layers. On stacked devices such as VLAN interfaces, the VLAN driver pushes a 4-byte tag before the Ethernet header, so the reserved headroom is too small. When the Ethernet header is written, it underflows the buffer's headroom, corrupting adjacent memory. The fix changes the headroom calculation to use LL_RESERVED_SPACE(), which queries the device's actual needed_headroom value and correctly accounts for VLAN and other stacked encapsulations. A local user who can create a VLAN interface (requiring CAP_NET_ADMIN, obtainable in a user namespace) and transmit LLC frames can trigger the bug; no network proximity or user interaction is needed.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.34 | 5.10.271 | 018020f5a48c |
| 5.15 | 2.6.34 | 5.15.222 | 3a3f57c4061d |
| 6.1 | 2.6.34 | 6.1.189 | 7c38524b2b24 |
| 6.12 | 2.6.34 | 6.12.112 | 16ceac2daa89 |
| 6.18 | 2.6.34 | 6.18.55 | e06f8b6e27cc |
| 6.6 | 2.6.34 | 6.6.158 | 1937222c2511 |
| 7.2 | 2.6.34 | 7.2.9 | 3361c93e4173 |
| mainline | 2.6.34 | 7.3 | 72b5b9a28b99 |
| cip/4.19 | 2.6.34 | 4.19.325-cip137 | 1eec3da54d50 |
| cip/4.19-rt | 2.6.34 | 4.19.325-cip137-rt51 | 1eec3da54d50 |
| cip/4.4 | 2.6.34 | 4.4.302-cip116 | 3b0e4dc30184 |
| cip/5.10 | 2.6.34 | 5.10.271-cip78 | 018020f5a48c |
| cip/5.10-rt | 2.6.34 | 5.10.272-cip79-rt35 | 018020f5a48c |
| cip/6.1 | 2.6.34 | 6.1.189-cip61 | 7c38524b2b24 |
| cip/6.1-rt | 2.6.34 | 6.1.189-cip61-rt32 | 7c38524b2b24 |
| cip/6.12 | 2.6.34 | 6.12.112-cip33 | 16ceac2daa89 |
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 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Fixed in 4.19.325-cip137-rt51 |
| cip/4.4 | Fixed in 4.4.302-cip116 |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |