In the Linux kernel, the following vulnerability has been resolved: net: cap skb->queue_mapping when the tx queue is picked skbedit can set… (CVE-2026-98797)
Description
A vulnerability in the Linux kernel's network subsystem involving skb->queue_mapping and the handling of the skip_txqueue flag in packet transmission has been resolved. The flaw allowed a nested transmit operation to improperly consume a flag set by an inner transmit, leading to out-of-bounds array indexing in the taprio scheduler's child qdisc array. This could be triggered by a local user with CAP_NET_ADMIN in a network namespace redirecting packets between devices with differing numbers of TX queues. The issue is fixed by properly scoping the skip_txqueue flag to the correct transmit context and ensuring skb->queue_mapping is capped to valid values.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability involves the Linux kernel's network packet transmission path where skbedit can set skb->queue_mapping and raise a per-CPU skip_txqueue flag so __dev_queue_xmit() honors the mapping. However, __dev_queue_xmit() cleared the flag before sch_handle_egress() and only read it afterward, allowing a nested transmit (such as mirred redirect or mirror) to set the flag which the outer transmit would then consume incorrectly. This caused the outer device to index its tx queue state with a stale skb->queue_mapping value from the ingress NIC, leading to out-of-bounds access in taprio_enqueue() when indexing the taprio child qdisc array. The fix involves restricting the skip_txqueue flag to be set only within the egress classifier context inside sch_handle_egress(), saving and restoring the flag around the egress hook, and capping skb->queue_mapping to valid tx queue indices. The vulnerability can be triggered by a local user with CAP_NET_ADMIN in a network namespace redirecting packets from a device with more TX queues to one with fewer, causing a kernel slab-out-of-bounds fault under KASAN. The fix ensures the flag and queue mapping are correctly managed to prevent invalid indexing.
Potential Impact
A local user with CAP_NET_ADMIN privileges in a network namespace can cause the kernel to perform out-of-bounds memory access in the taprio scheduler's enqueue function by redirecting packets between devices with differing numbers of TX queues. This can lead to kernel memory corruption and potential system instability or crashes. Under KASAN (Kernel Address Sanitizer), this manifests as a slab-out-of-bounds fault. There is no indication of remote exploitation or active exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly scope the skip_txqueue flag and cap skb->queue_mapping values, preventing out-of-bounds access. Users should update to the fixed kernel version once available. No additional mitigation is required as the patch addresses the root cause. Since this is a kernel-level issue triggered by local privileged users, limiting CAP_NET_ADMIN privileges and network namespace access can reduce exposure until patched.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v27w-cxg4-mgv7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98797"]
Threat ID: 6ad520a92cdf04f6569938b3
Added to database: 10/18/2026, 19:40:25 UTC
Last enriched: 10/18/2026, 22:18:29 UTC
Last updated: 10/18/2026, 22:18:29 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.