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

CVE-2026-98610: Linux Kernel HFSC Scheduler DOS Vulnerability

CVE-2026-98610 is a denial of service flaw in the Linux kernel HFSC scheduler causing soft lockups through unbounded filter classification loops. 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-98610 Overview

CVE-2026-98610 is a Linux kernel denial-of-service vulnerability in the Hierarchical Fair Service Curve (HFSC) packet scheduler (net/sched/sch_hfsc). The hfsc_classify() function fails to re-validate filter bindings after hfsc_adjust_levels() raises a class's level, allowing two interior HFSC classes to point at each other. A single packet triggers an infinite classify loop while holding the qdisc lock with bottom-halves disabled, producing a CPU soft lockup. The flaw is reachable from an unprivileged user namespace via unshare -Urn (CAP_NET_ADMIN inside the namespace).

Critical Impact

An unprivileged local user can trigger a kernel soft lockup, hanging the CPU and potentially panicking the system when softlockup_panic=1 is set.

Affected Products

  • Linux kernel builds with CONFIG_NET_SCHED, CONFIG_NET_SCH_HFSC, and CONFIG_NET_CLS_U32 enabled
  • Mainline kernel versions prior to the patch landing in commits 0fa25ba, 1301a12, 2bd2024, 30d7fea, 8a60ade, d4fd251, e8f9979, and f476fb6
  • Downstream distributions shipping unpatched stable kernels with HFSC support

Discovery Timeline

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

Technical Details for CVE-2026-98610

Vulnerability Analysis

The HFSC qdisc organizes classes in a tree where filters classify packets by walking from the root downward. hfsc_classify() enforces a "filter may only point downwards" level check, but only when the filter result carries no bound class. A filter created with an explicit flowid has res.class set once at bind time, so the downward check is skipped during classification.

hfsc_adjust_levels() can later raise the level of a class without revalidating existing bindings. Two bindings that were each legal at bind time can end up referencing each other after a level drift. The classifier walk then bounces between two interior classes indefinitely. Because the qdisc lock is held and bottom-halves are disabled during this walk, the CPU is pinned until the soft lockup watchdog fires, with stack traces showing u32_classify → tcf_classify → hfsc_enqueue. This is a classic infinite-loop denial-of-service [CWE-835] in kernel packet-scheduling code.

Root Cause

The root cause is missing revalidation of filter-to-class bindings when class levels are mutated. The one-time level check at bind time becomes stale after hfsc_adjust_levels() modifies the tree, allowing a cycle to form between two interior classes without any safeguard in the classification path.

Attack Vector

An attacker constructs an HFSC class hierarchy using tc with two legal flowid filters that reference sibling classes. After adding a child that forces hfsc_adjust_levels() to raise a sibling's level, the two filters form a cycle. Sending a single packet (for example, ping on the device) causes hfsc_classify() to spin forever. The entire operation is possible inside a new user and network namespace created with unshare -Urn, so no host-level privileges are required.

See the patch series for the full fix, which bounds the classify traversal with a cumulative budget of non-descending hops and drops the packet with a rate-limited warning when the budget is exhausted. The approach mirrors the earlier HTB fix in commit 729c4896ab82.

Detection Methods for CVE-2026-98610

Indicators of Compromise

  • Kernel log entries containing watchdog: BUG: soft lockup - CPU#N stuck for Ns! with a call trace including u32_classify, tcf_classify, and hfsc_enqueue
  • Unexpected kernel panics on hosts where kernel.softlockup_panic=1 is configured
  • tc qdisc or tc class modifications originating from unprivileged processes inside user namespaces

Detection Strategies

  • Monitor dmesg and journald for soft lockup messages that reference HFSC or u32_classify call paths and alert on first occurrence.
  • Audit tc invocations and netlink RTM_NEWQDISC, RTM_NEWTCLASS, and RTM_NEWTFILTER messages, correlating them with the originating UID and namespace.
  • Flag processes that call unshare(CLONE_NEWUSER|CLONE_NEWNET) and subsequently configure HFSC qdiscs, which is uncommon in production workloads.

Monitoring Recommendations

  • Enable the kernel soft lockup detector (kernel.softlockup_panic tuned per availability requirements) and forward crash telemetry to a central log store.
  • Collect auditd rules for the setns, unshare, and netlink socket syscalls to attribute qdisc changes to specific users.
  • Track CPU time anomalies on cores servicing network interrupts and correlate against qdisc configuration changes.

How to Mitigate CVE-2026-98610

Immediate Actions Required

  • Apply the stable kernel updates containing the HFSC classify budget patch as soon as vendor packages are available.
  • Where patching is delayed, disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0 (Debian/Ubuntu) or user.max_user_namespaces=0.
  • Audit production hosts for use of HFSC and remove the qdisc where it is not required.

Patch Information

The fix is distributed across stable kernel commits 0fa25ba, 1301a12, 2bd2024, 30d7fea, 8a60ade, d4fd251, e8f9979, and f476fb6. The patch introduces a cumulative budget of non-descending hops during hfsc_classify() and drops offending packets with a rate-limited warning once the budget is exhausted.

Workarounds

  • Blacklist the sch_hfsc kernel module on hosts that do not require it: add blacklist sch_hfsc to /etc/modprobe.d/.
  • Restrict CAP_NET_ADMIN inside containers and user namespaces using seccomp or a restrictive no-new-privileges policy.
  • Replace HFSC with an alternative qdisc such as fq_codel or htb where feasible until patched kernels are deployed.
bash
# Disable unprivileged user namespaces to block the attack path
sudo sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' | sudo tee /etc/sysctl.d/99-cve-2026-98610.conf

# Prevent the HFSC module from loading on hosts that do not need it
echo 'blacklist sch_hfsc' | sudo tee /etc/modprobe.d/disable-hfsc.conf
sudo rmmod sch_hfsc 2>/dev/null || true

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.