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

CVE-2026-97966: Linux Kernel HTB Scheduler Escalation

CVE-2026-97966 is a privilege escalation vulnerability in the Linux kernel HTB scheduler affecting NIX_AF_TLxX_TOPOLOGY settings. This article covers the technical details, affected versions, security impact, and mitigation strategies.

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-97966 Overview

CVE-2026-97966 affects the Linux kernel octeontx2-pf network driver, specifically the Hierarchical Token Bucket (HTB) offload path for the Marvell OcteonTX2 Physical Function driver. The driver programs NIX_AF_TLxX_TOPOLOGY on QoS-allocated scheduler queues through otx2_qos_txschq_set_parent_topology(), but the teardown path returned those queues to the Admin Function (AF) without clearing their topology registers. The AF only restores PARENT and SCHEDULE fields on free, which allows PRIO_ANCHOR and RR_PRIO state to persist in the shared scheduler pool and influence subsequent allocations.

Critical Impact

Stale scheduler topology state can leak across HTB teardown cycles on Marvell OcteonTX2 NICs, producing incorrect traffic scheduling behavior for later queue allocations shared across the PF and VFs.

Affected Products

  • Linux kernel octeontx2-pf driver (HTB offload path)
  • Marvell OcteonTX2 network interface controllers using QoS scheduler offload
  • Distributions shipping affected stable kernels prior to the referenced fix commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97966 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97966

Vulnerability Analysis

The Marvell OcteonTX2 Physical Function driver implements HTB offload by allocating scheduler queues from the Admin Function and configuring the NIX transmit level (TL) hierarchy. During setup, otx2_qos_txschq_set_parent_topology() writes NIX_AF_TLxX_TOPOLOGY registers that encode parent linkage, round-robin priority (RR_PRIO), and the priority anchor (PRIO_ANCHOR) for each TL node.

Teardown released queues back to the shared AF pool without zeroing those TOPOLOGY registers. Because the AF free routine only resets PARENT and SCHEDULE, remnants of the previous priority configuration survive on the hardware scheduler nodes. When the same scheduler queues are later reallocated to the PF, a VF, or the default Tx hierarchy, the stale PRIO_ANCHOR and RR_PRIO values can alter scheduling decisions in ways the new owner did not request.

Root Cause

The root cause is incomplete hardware state cleanup during resource deallocation [CWE-459 Incomplete Cleanup, class-level]. The driver assumed the AF would fully reset topology registers on free, but the AF only clears a subset of fields. This mismatch between caller expectations and callee behavior left scheduler priority state persistent across queue lifecycles.

Attack Vector

This is a kernel resource management defect rather than a directly reachable remote vulnerability. Exploitation requires the ability to repeatedly set up and tear down HTB offload hierarchies on an affected OcteonTX2 interface, which typically requires CAP_NET_ADMIN or equivalent. The practical impact is traffic scheduling corruption and quality-of-service policy drift on shared scheduler nodes, which can be reached by any workload that programs HTB on the PF or an attached VF.

The fix introduces otx2_qos_reset_schq_topology() and otx2_qos_free_hw_schq() to explicitly zero TOPOLOGY for TL4 through TL2 before each schq is returned during hierarchy teardown and configuration rollback. TL1 is intentionally skipped because it is a per-tx-link queue shared by the PF, the default Tx hierarchy, and VFs, and is not freed back to the AF by nix_txschq_free_one(). See the upstream fixes: Kernel Git Commit 0aa2dd6, Kernel Git Commit 2df1864, Kernel Git Commit 621c99b, and Kernel Git Commit ef39fca.

Detection Methods for CVE-2026-97966

Indicators of Compromise

  • Unexpected traffic prioritization or starvation on OcteonTX2 interfaces after HTB tc reconfiguration cycles.
  • Divergence between the HTB class configuration requested via tc qdisc and the observed scheduling behavior across PF/VF queues.
  • Kernel log messages from octeontx2-pf relating to QoS scheduler allocation or topology programming during setup and teardown.

Detection Strategies

  • Audit running kernel versions against the fixed stable branches referenced in the upstream commits.
  • Instrument HTB test scenarios that repeatedly add and remove classes on OcteonTX2 PFs and compare measured per-class rates against configured limits.
  • Correlate NIC driver version inventory with host roles that depend on QoS scheduling, such as network function hosts and virtualization gateways.

Monitoring Recommendations

  • Collect kernel version and driver module metadata from Linux endpoints and flag hosts running pre-patch octeontx2-pf builds.
  • Monitor tc -s class show output over time on affected hardware to detect drift in enforced bandwidth versus policy.
  • Alert on repeated HTB qdisc replace or delete operations on production OcteonTX2 interfaces, which increase the window for state carryover.

How to Mitigate CVE-2026-97966

Immediate Actions Required

  • Identify Linux hosts using Marvell OcteonTX2 NICs with the octeontx2-pf driver and inventory their kernel versions.
  • Prioritize patching systems that rely on HTB offload for traffic shaping, including SR-IOV hosts exposing VFs to tenants.
  • Where patching is not immediate, avoid dynamic HTB teardown and recreation on affected interfaces to limit state reuse.

Patch Information

Apply the upstream Linux kernel fixes that add otx2_qos_reset_schq_topology() and otx2_qos_free_hw_schq() to clear TL4 through TL2 TOPOLOGY before returning scheduler queues to the AF. Reference commits: 0aa2dd6, 2df1864, 621c99b, and ef39fca. Install the stable kernel update from your Linux distribution that incorporates these commits and reboot or reload the affected driver.

Workarounds

  • Keep HTB offload configuration static where possible to prevent repeated allocation and release cycles of QoS scheduler queues.
  • Restrict CAP_NET_ADMIN on multi-tenant hosts so untrusted workloads cannot repeatedly reconfigure HTB classes on shared NICs.
  • Where QoS enforcement is non-critical, disable HTB offload and fall back to software qdiscs until the patched kernel is deployed.
bash
# Verify running kernel and octeontx2-pf driver version
uname -r
modinfo octeontx2_pf | grep -E '^(version|srcversion|filename):'

# List HTB classes on an affected interface to review current QoS state
tc -s qdisc show dev eth0
tc -s class show dev eth0

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.