In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_qfq: prevent...
🔗 CVE IDs covered (1)
📋 Description
In the Linux kernel, the following vulnerability has been resolved:
net/sched: sch_qfq: prevent aggregate self-replacement
qfq_change_class() snapshots the current aggregate settings while holding the qdisc tree lock, but drops the lock before selecting the destination aggregate. During that gap, qfq_enqueue() can move the class to an aggregate matching the requested settings.
When qfq_change_class() resumes, qfq_find_agg() then returns cl->agg. If it is a singleton, qfq_deact_rm_from_agg() frees the aggregate before qfq_add_to_agg() 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.
🔗 References (6)
- https://nvd.nist.gov/vuln/detail/CVE-2026-99688
- https://git.kernel.org/stable/c/11c4ba0c976415176a6d82d6051457455d5b7e40
- https://git.kernel.org/stable/c/2e54b3e187300893688c2c7517894f5d96732e05
- https://git.kernel.org/stable/c/374ea8200331708ead0ba524b5c8cd9640515fd5
- https://git.kernel.org/stable/c/519f327c7fd1b67327de2e1cff6fbe85a02a151b
- https://github.com/advisories/GHSA-q3m9-g924-cj23