CVE-2026-99688: net/sched: sch_qfq: prevent aggregate self-replacement
In the Linux kernel, the following vulnerability has been resolved:
net/sched: schqfq: prevent aggregate self-replacement
qfqchangeclass() snapshots the current aggregate settings while holding the qdisc tree lock, but drops the lock before selecting the destination aggregate. During that gap, qfqenqueue() can move the class to an aggregate matching the requested settings.
When qfqchangeclass() resumes, qfqfindagg() then returns cl->agg. If it is a singleton, qfqdeactrmfromagg() frees the aggregate before qfqaddtoagg() immediately accesses the same pointer, causing a use-after-free.
While holding the tree lock, skip the replacement when the destination is already the current aggregate. Any estimator replacement has already completed, so the class change can finish normally.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.5-1 - Compensating control
In qfq_change_class(), while holding the qdisc tree lock, skip aggregate replacement when the destination aggregate is already the class’s current aggregate.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The race requires qfq_change_class() to drop the qdisc tree lock before choosing a destination aggregate, while qfq_enqueue() moves the same class into an aggregate with the requested settings. The resulting self-replacement becomes unsafe when that aggregate is a singleton, because it can be freed and then immediately accessed.
Which systems are exposed?
Systems using the Linux kernel QFQ traffic-control scheduler are relevant. The provided information does not state whether QFQ is enabled or configured by default.
What does the fix change?
The fix checks under the qdisc tree lock whether the selected destination aggregate is already the class's current aggregate. If so, it skips aggregate replacement, while allowing the class change to complete because estimator replacement has already finished.