net/sched: sch_qfq: prevent aggregate self-replacement
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 519f327c7fd1b67327de2e1cff6fbe85a02a151b, Kernel 11c4ba0c976415176a6d82d6051457455d5b7e40, Kernel 2e54b3e187300893688c2c7517894f5d96732e05 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=462dbc9101acd38e92eda93c0726857517a24bbd <519f327c7fd1b67327de2e1cff6fbe85a02a151b, >=462dbc9101acd38e92eda93c0726857517a24bbd <11c4ba0c976415176a6d82d6051457455d5b7e40, >=462dbc9101acd38e92eda93c0726857517a24bbd <2e54b3e187300893688c2c7517894f5d96732e05, >=462dbc9101acd38e92eda93c0726857517a24bbd <374ea8200331708ead0ba524b5c8cd9640515fd5, =3.8 | 519f327c7fd1b67327de2e1cff6fbe85a02a151b, 11c4ba0c976415176a6d82d6051457455d5b7e40, 2e54b3e187300893688c2c7517894f5d96732e05, 374ea8200331708ead0ba524b5c8cd9640515fd5 |
| linux-kernel: Kernel | >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=3.8.0 <6.12.118 | 6.18.64, 7.3.5, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket