7.8high
sch_hfsc: make hfsc_qlen_notify() idempotent
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: make hfsc_qlen_notify() idempotent hfsc_qlen_notify() is not idempotent either and not friendly to its callers, like fq_codel_dequeue(). Let's make it idempotent to ease qdisc_tree_reduce_backlog() callers' life: 1. update_vf() decreases cl->cl_nactive, so we can check whether it is non-zero before calling it. 2. eltree_remove() always removes RB node cl->el_node, but we can use RB_EMPTY_NODE() + RB_CLEAR_NODE() to make it safe.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before a5efc95a33bd4fcb879250852828cc58c7862970, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before 9030a91235ae4845ec71902c3e0cecfc9ed1f2df, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before d06476714d2819b550e0cc39222347e2c8941c9d, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before c1175c4ad01dbc9c979d099861fa90a754f72059, from 959466588aa7f84ccf79ae36a1d89542eaf9aaec before 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb and 1 more Not affected: before 4.14, from 5.4.297 up to 5.4.*, from 5.10.241 up to 5.10.*, from 5.15.190 up to 5.15.*, from 6.1.138 up to 6.1.*, from 6.6.90 up to 6.6.* | CVE List |
| linux linux_kernel | before 5.4.297, from 5.5 before 5.10.241, from 5.11 before 5.15.190, from 5.16 before 6.1.138, from 6.2 before 6.6.90, from 6.7 before 6.12.28, from 6.13 before 6.14.6, 6.15 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: make hfsc_qlen_notify() idempotent hfsc_qlen_notify() is not idempotent either and not friendly to its callers, like fq_codel_dequeue(). Let's make it idempotent to ease qdisc_tree_reduce_backlog() callers' life: 1. update_vf() decreases cl->cl_nactive, so we can check whether it is non-zero before calling it. 2. eltree_remove() always removes RB node cl->el_node, but we can use RB_EMPTY_NODE() + RB_CLEAR_NODE() to make it safe.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sch_hfsc: hace que hfsc_qlen_notify() sea idempotente. hfsc_qlen_notify() tampoco es idempotente y no es compatible con quienes lo llaman, como fq_codel_dequeue(). Vamos a convertirlo en idempotente para simplificar la tarea de quienes llaman a qdisc_tree_reduce_backlog(): 1. update_vf() reduce cl->cl_nactive, lo que permite comprobar si es distinto de cero antes de llamarlo. 2. eltree_remove() siempre elimina el nodo RB cl->el_node, pero podemos usar RB_EMPTY_NODE() + RB_CLEAR_NODE() para hacerlo seguro.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38177 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-38177 changed 2026-07-30 | Public domain |