CVE-2026-99805: net: limit priority VLAN untag depth
In the Linux kernel, the following vulnerability has been resolved:
net: limit priority VLAN untag depth
The priority VLAN receive path can repeatedly remove VID 0 tags and retry packet processing. Unlike the read-only VLAN protocol parser, this path has no limit on the number of nested tags it consumes.
Each skbvlanuntag() advances skb->data and resets header offsets. The offsets are stored in 16-bit fields. With enough nested tags, the network or transport offset can wrap. A later protocol handler can then derive a large pull length from the wrapped offsets and access memory outside the skb allocation.
Apply the existing VLANMAXDEPTH limit to the exceptional VID 0 retry. Count the tag already stored in skb VLAN metadata as the first level, then stop before untagging a ninth level. Keep the accounting inside this uncommon branch so the regular VLAN receive path is unaffected.
A single VID 0 priority tag before a real VLAN tag is valid. No normal deployment was found that intentionally emits multiple consecutive VID 0 tags; permitting eight levels is therefore conservative.
The issue was found while researching the Linux network receive path for Google kvmCTF, with OpenAI Codex (gpt-5.6-sol) assisting the analysis. The affected path, reproducer and fix were manually reviewed and tested.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Apply the existing VLAN_MAX_DEPTH limit to the exceptional VID 0 retry; count the tag in skb VLAN metadata as the first level and stop before untagging a ninth level.
Event History
Frequently Asked Questions
Which systems are most likely to be exposed?
Systems that receive Ethernet traffic containing attacker-controlled VLAN tags are relevant, especially where packets with repeated priority VLAN tags using VID 0 can reach the Linux network receive path.
What packet structure is needed to trigger the vulnerable path?
The packet must contain multiple consecutive VID 0 priority VLAN tags, causing the receive path to repeatedly untag and retry processing. A single VID 0 priority tag followed by a real VLAN tag is valid and is not the unusual pattern involved.
Will limiting the nesting depth disrupt ordinary VLAN traffic?
The change permits up to eight levels while treating the VLAN tag already held in skb metadata as the first level. The report states that no normal deployment was found that intentionally emits multiple consecutive VID 0 tags, so the limit is intended to affect only exceptional traffic.