net/sched: sch_qfq: Fix race condition on qfq_aggregate
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 462dbc9101acd38e92eda93c0726857517a24bbd · < a6d735100f602c830c16d69fb6d780eebd8c9ae1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: sch_qfq: Fix race condition on qfq_aggregate
A race condition can occur when 'agg' is modified in qfq_change_agg (called during qfq_enqueue) while other threads access it concurrently. For example, qfq_dump_class may trigger a NULL dereference, and qfq_delete_class may cause a use-after-free.
This patch addresses the issue by:
1. Moved qfq_destroy_class into the critical section.
2. Added sch_tree_lock protection to qfq_dump_class and qfq_dump_class_stats.
From the CVE record · Linux
A race condition in the Linux kernel’s sch_qfq scheduler allows qfq_aggregate to be modified while other threads access it. Concurrent class operations can trigger a NULL dereference or use-after-free. The input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check whether their version includes the sch_qfq fix; affected versions are not specified.