# CVE-2026-99688: net/sched: sch_qfq: prevent aggregate self-replacement

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:33.387Z
- Modified: 2026-11-23T08:18:09.623Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 462dbc9101acd38e92eda93c0726857517a24bbd before bcfe04e5c5fe2f655859ac2e8d56e762fc090bd0; from 462dbc9101acd38e92eda93c0726857517a24bbd before 4b3771f062438f6a9086baef5395656c2eae6d60; from 462dbc9101acd38e92eda93c0726857517a24bbd before 15607276081f3c1bcbabc3b2269188e4788fc8db; from 462dbc9101acd38e92eda93c0726857517a24bbd before 706fb83f294286f3d7ed95600a1f45153e064810; from 462dbc9101acd38e92eda93c0726857517a24bbd before 374ea8200331708ead0ba524b5c8cd9640515fd5; from 462dbc9101acd38e92eda93c0726857517a24bbd before 11c4ba0c976415176a6d82d6051457455d5b7e40; from 462dbc9101acd38e92eda93c0726857517a24bbd before 519f327c7fd1b67327de2e1cff6fbe85a02a151b; from 462dbc9101acd38e92eda93c0726857517a24bbd before 2e54b3e187300893688c2c7517894f5d96732e05; 3.8 (not affected: before 3.8; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/bcfe04e5c5fe2f655859ac2e8d56e762fc090bd0>
- <https://git.kernel.org/stable/c/4b3771f062438f6a9086baef5395656c2eae6d60>
- <https://git.kernel.org/stable/c/15607276081f3c1bcbabc3b2269188e4788fc8db>
- <https://git.kernel.org/stable/c/706fb83f294286f3d7ed95600a1f45153e064810>
- <https://git.kernel.org/stable/c/374ea8200331708ead0ba524b5c8cd9640515fd5>
- <https://git.kernel.org/stable/c/11c4ba0c976415176a6d82d6051457455d5b7e40>
- <https://git.kernel.org/stable/c/519f327c7fd1b67327de2e1cff6fbe85a02a151b>
- <https://git.kernel.org/stable/c/2e54b3e187300893688c2c7517894f5d96732e05>

## Sources

- CVE List: [CVE-2026-99688](https://www.cve.org/CVERecord?id=CVE-2026-99688), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99688](https://nvd.nist.gov/vuln/detail/CVE-2026-99688), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99688 · Whole record: https://cve.day/CVE-2026-99688.json · Rebuilt by cve.day 2026-11-25T22:59:52.308Z
