Skip to main content
Vulnerability Database/CVE-2026-98797

CVE-2026-98797: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98797 is a privilege escalation flaw in the Linux kernel affecting network queue mapping that allows local attackers to exploit tx queue handling. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98797 Overview

CVE-2026-98797 is a Linux kernel vulnerability in the networking subsystem. The flaw involves improper handling of skb->queue_mapping and the per-CPU skip_txqueue flag during traffic control (tc) egress processing. A nested transmit path, such as a mirred redirect or mirror after skbedit, can leave the flag set so that an outer __dev_queue_xmit() consumes a stale mapping. When the forwarded packet reaches a device with fewer TX queues, taprio_enqueue() indexes the q->qdiscs[] child array past its allocation and dereferences out-of-bounds memory.

Critical Impact

A local user with CAP_NET_ADMIN inside a network namespace can trigger a slab-out-of-bounds access in taprio_enqueue, leading to kernel memory corruption or denial of service.

Affected Products

  • Linux kernel versions containing the pre-patch __dev_queue_xmit() and skbedit egress logic
  • Systems built with CONFIG_NET_SCH_TAPRIO, CONFIG_NET_ACT_SKBEDIT, CONFIG_NET_ACT_MIRRED, CONFIG_NET_CLS_MATCHALL, and CONFIG_NET_SCH_PRIO
  • Any Linux distribution shipping the vulnerable kernel until stable patches are backported

Discovery Timeline

  • 2026-10-18 - CVE-2026-98797 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98797

Vulnerability Analysis

The vulnerability stems from how the Linux networking stack scoped the skip_txqueue per-CPU flag. The skbedit tc action can set skb->queue_mapping and raise skip_txqueue so that __dev_queue_xmit() honors the chosen queue. The pre-patch __dev_queue_xmit() cleared the flag before sch_handle_egress() and only read it afterward, so a nested xmit occurring during the egress hook could set the flag for a packet that never passed through skbedit.

A forwarded packet retains the ingress NIC's rx_queue + 1 in skb->queue_mapping. When the outer device indexes its TX queue state with that stale value, taprio_enqueue() reads past the allocated size of its child q->qdiscs[] array. The result is dereferenced as a struct Qdisc *, producing a slab-out-of-bounds access flagged by KASAN as slab-out-of-bounds in taprio_enqueue.

Root Cause

The root cause is improper scoping of the skip_txqueue flag across nested egress transmits combined with missing capping of skb->queue_mapping on the skip_txqueue path. The flag was not confined to the single xmit that set it, and the mapping was not validated against the current device's queue count before use.

Attack Vector

A local user with CAP_NET_ADMIN inside a user namespace can reproduce the issue without eBPF. The attacker creates dummy devices with differing TX queue counts, attaches taprio and clsact qdiscs, and chains skbedit and mirred actions so a packet is redirected from a device with more queues to one with fewer. The nested skbedit on the inner device sets skip_txqueue while the outer device's xmit is still in flight, causing the outer xmit to consume the flag and index TX state with the stale mapping.

See the upstream fix in the Kernel Git Commit 2f58181 for the authoritative description.

Detection Methods for CVE-2026-98797

Indicators of Compromise

  • KASAN reports containing slab-out-of-bounds in taprio_enqueue in kernel logs
  • Unexpected kernel oops or panic traces referencing __dev_queue_xmit, sch_handle_egress, or taprio_enqueue
  • Creation of unusual tc action chains combining skbedit queue_mapping, mirred egress redirect, and mirred egress mirror across devices with mismatched queue counts

Detection Strategies

  • Enable KASAN on test and canary kernels to surface the out-of-bounds read during traffic generation
  • Audit tc filter and action configurations across namespaces for skbedit queue_mapping combined with cross-device mirred redirects
  • Monitor syscall and netlink activity for processes with CAP_NET_ADMIN manipulating qdiscs inside unprivileged user namespaces

Monitoring Recommendations

  • Forward dmesg and /var/log/kern.log into a centralized analytics pipeline and alert on KASAN or qdisc-related stack traces
  • Track creation of dummy network devices and qdisc changes via audit rules on tc, ip link, and netlink RTM_NEWQDISC events
  • Correlate kernel crash telemetry with container and namespace creation events to identify local privilege abuse patterns

How to Mitigate CVE-2026-98797

Immediate Actions Required

  • Apply the upstream Linux kernel patches that introduce the nf_skip_egress-based scoping and cap skb->queue_mapping via netdev_cap_txqueue()
  • Rebuild and redeploy kernels on hosts that run untrusted workloads, containers, or multi-tenant namespaces
  • Restrict CAP_NET_ADMIN inside unprivileged user namespaces where strict tc configuration is not required

Patch Information

The fix is delivered through the following upstream commits:

The fix arms skip_txqueue only from the egress classifier that runs inside sch_handle_egress(), saves and restores the flag around that call, and stores the capped value from netdev_cap_txqueue() back into skb->queue_mapping.

Workarounds

  • Disable or unload the sch_taprio, act_skbedit, and act_mirred modules on hosts that do not require them
  • Set kernel.unprivileged_userns_clone=0 (or the distribution-equivalent sysctl) to prevent unprivileged users from obtaining CAP_NET_ADMIN inside new network namespaces
  • Constrain container runtimes to drop CAP_NET_ADMIN from workloads that do not require tc configuration

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.