CVE-2025-37932: sch_htb: make htb_qlen_notify() idempotent
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
sch_htb: make htb_qlen_notify() idempotent
htb_qlen_notify() always deactivates the HTB class and in fact could trigger a warning if it is already deactivated. Therefore, it is not idempotent and not friendly to its callers, like fq_codel_dequeue().
Let's make it idempotent to ease qdisc_tree_reduce_backlog() callers' life.
The Linux kernel CVE team has assigned CVE-2025-37932 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.138 with commit 73cf6af13153d62f9b76eff422eea79dbc70f15e Fixed in 6.6.90 with commit bbbf5e0f87078b715e7a665d662a2c0e77f044ae Fixed in 6.12.28 with commit 0a188c0e197383683fd093ab1ea6ce9a5869a6ea Fixed in 6.14.6 with commit a61f1b5921761fbaf166231418bc1db301e5bf59 Fixed in 6.15-rc2 with commit 5ba8b837b522d7051ef81bacf3d95383ff8edce5
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-37932
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/sched/sch_htb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/73cf6af13153d62f9b76eff422eea79dbc70f15e https://git.kernel.org/stable/c/bbbf5e0f87078b715e7a665d662a2c0e77f044ae https://git.kernel.org/stable/c/0a188c0e197383683fd093ab1ea6ce9a5869a6ea https://git.kernel.org/stable/c/a61f1b5921761fbaf166231418bc1db301e5bf59 https://git.kernel.org/stable/c/5ba8b837b522d7051ef81bacf3d95383ff8edce5