CVE-2026-90053: net/sched: sch_htb: limit htb_classify inner-class filter hops

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net/sched: schhtb: limit htbclassify inner-class filter hops

htbclassify() follows each filter-selected inner class by switching to cl->filterlist, but never bounds the number of hops. A filter on an inner class can point back to itself or to another inner class that points back, creating an infinite loop in the packet classification path with the qdisc lock held and BH disabled — a soft lockup / panic from a single packet.

Bound the traversal with a hop counter and drop the packet with a rate-limited warning once the bound is exceeded. The counter is incremented at the point the inner filter chain is picked up, after the TCACT switch has consumed the classifier verdict, so a terminal TCACTQUEUED/STOLEN/TRAP on the last permitted chain still sets qerr to NETXMITSTOLEN and the packet is not charged as a drop by this qdisc or its parent.

The bound is TCHTBMAXDEPTH, taken from HTB's own parameters rather than from the qdisc hierarchy depth limit. Class levels run from 0 to TCHTBMAXDEPTH - 1, so a traversal that strictly descends in level can take at most TCHTBMAXDEPTH hops. That descent is what a sane configuration does, but it is assumed here rather than enforced: htbfind() resolves a classid against every class in the qdisc, so a filter may equally select a sibling or an ancestor. The normal root -> inner -> leaf path takes a single hop, so the bound does not affect legitimate classification.

htbclassify() can now return NULL irrespective of CONFIGNETCLSACT, whereas previously every NULL return sat inside that ifdef. The NULL handler in htbenqueue() therefore cannot stay conditional either, so drop the ifdef around it. This matches hfscenqueue(), which has always handled a NULL class unconditionally. Without it, a kernel built without actions would dereference a NULL class instead of dropping.

Conditions to recreate the bug: - CONFIGNETSCHED, CONFIGNETSCHHTB, CONFIGNETCLSU32, CONFIGLOCKUPDETECTOR. - Create an HTB qdisc on a device (e.g. lo), add an inner class 1:1 with a leaf child 1:10, install a root u32 filter selecting 1:1, and an inner-class u32 filter on 1:1 also selecting 1:1. - Send one packet (ping). On the unfixed kernel the classify loop spins with the qdisc lock held; with softlockuppanic=1 it panics. - Reachable from unprivileged user via unshare -Urn (CAPNETADMIN).

Affected Software

1 affected component
Linux Kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:05 PM
Data Sourced
via MITRE·04:05 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203