sch_hfsc: make hfsc_qlen_notify() idempotent
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 959466588aa7f84ccf79ae36a1d89542eaf9aaec · < d06476714d2819b550e0cc39222347e2c8941c9d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s HFSC queue scheduler has a non-idempotent notification function that can be called by queueing-discipline code. Repeated calls can incorrectly update active-class state or remove a tree node again. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the HFSC queue scheduler should check their kernel; affected versions are not specified.