{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99688",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.429Z",
        "datePublished": "2026-11-20T05:50:33.387Z",
        "dateUpdated": "2026-11-23T08:06:02.576Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:06:02.576Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_qfq: prevent aggregate self-replacement\n\nqfq_change_class() snapshots the current aggregate settings while\nholding the qdisc tree lock, but drops the lock before selecting the\ndestination aggregate. During that gap, qfq_enqueue() can move the\nclass to an aggregate matching the requested settings.\n\nWhen qfq_change_class() resumes, qfq_find_agg() then returns cl->agg.\nIf it is a singleton, qfq_deact_rm_from_agg() frees the aggregate\nbefore qfq_add_to_agg() immediately accesses the same pointer, causing\na use-after-free.\n\nWhile holding the tree lock, skip the replacement when the destination\nis already the current aggregate. Any estimator replacement has already\ncompleted, so the class change can finish normally."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - qfq_change_class(), the function the fix changes, is qfq_class_ops.change and is called from __tc_ctl_tclass() for RTM_NEWTCLASS. The other half of the race is a locally transmitted skb: __dev_xmit_skb() calls qfq_enqueue(), which calls qfq_change_agg() when qdisc_pkt_len() is greater than cl->agg->lmax.\nAC:L - The attacker creates one qfq class and sends RTM_NEWTCLASS with a larger TCA_QFQ_LMAX and the same weight. qfq_change_class() snapshots old_lmax under sch_tree_lock(), drops the lock, and the attacker's transmit runs qfq_change_agg() so the class becomes the sole member of an aggregate with that lmax and weight before qfq_find_agg() returns cl->agg. TCA_RATE also runs gen_replace_estimator() in the gap.\nPR:L - qfq_change_class() runs only from __tc_ctl_tclass() on RTM_NEWTCLASS, and rtnetlink_rcv_msg() accepts that message only when netlink_net_capable() sees CAP_NET_ADMIN in the network namespace's user namespace. Creating that namespace with unshare gives an unprivileged process the capability.\nUI:N - The same attacker sends RTM_NEWTCLASS and transmits the skb. qfq_classify() selects the class from skb->priority, which the sender sets to the class id.\nS:U - qfq_destroy_agg() kfree()s a qfq_aggregate of the caller's qdisc and qfq_add_to_agg() corrupts that same kernel heap. The impacted component is the kernel that handled the netlink message.\nC:H - When num_classes is 1, qfq_rm_from_agg() kfree()s the aggregate and qfq_add_to_agg() leaves the freed address in cl->agg. qfq_dump_class() copies agg->class_weight and agg->lmax to the netlink reply, and qfq_enqueue() reads agg->lmax, agg->active, and agg->grp, so reclaiming the slab slot discloses heap bytes and follows attacker-chosen pointers.\nI:H - qfq_update_agg() writes budgetmax, inv_w, and num_classes into the freed qfq_aggregate. On a later qfq_enqueue(), list_add_tail() stores cl->alist through agg->active and qfq_activate_agg() does hlist_add_head() of agg->next onto agg->grp->slots; after reclaim those are writes to attacker-chosen addresses.\nA:H - qfq_add_to_agg() and the next qfq_enqueue() or qfq_dequeue() dereference cl->agg, agg->active, and agg->grp after qfq_destroy_agg() has kfree()d that aggregate. The dangling list and group pointers oops the kernel, and the attacker can issue the class change again."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/sched/sch_qfq.c"
                    ],
                    "versions": [
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "bcfe04e5c5fe2f655859ac2e8d56e762fc090bd0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "4b3771f062438f6a9086baef5395656c2eae6d60",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "15607276081f3c1bcbabc3b2269188e4788fc8db",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "706fb83f294286f3d7ed95600a1f45153e064810",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "374ea8200331708ead0ba524b5c8cd9640515fd5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "11c4ba0c976415176a6d82d6051457455d5b7e40",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "519f327c7fd1b67327de2e1cff6fbe85a02a151b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "462dbc9101acd38e92eda93c0726857517a24bbd",
                            "lessThan": "2e54b3e187300893688c2c7517894f5d96732e05",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/sched/sch_qfq.c"
                    ],
                    "versions": [
                        {
                            "version": "3.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.118",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.64",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.5",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "6.12.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "6.18.64"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "7.3.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.8",
                                    "versionEndExcluding": "7.4-rc2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/bcfe04e5c5fe2f655859ac2e8d56e762fc090bd0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4b3771f062438f6a9086baef5395656c2eae6d60"
                },
                {
                    "url": "https://git.kernel.org/stable/c/15607276081f3c1bcbabc3b2269188e4788fc8db"
                },
                {
                    "url": "https://git.kernel.org/stable/c/706fb83f294286f3d7ed95600a1f45153e064810"
                },
                {
                    "url": "https://git.kernel.org/stable/c/374ea8200331708ead0ba524b5c8cd9640515fd5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/11c4ba0c976415176a6d82d6051457455d5b7e40"
                },
                {
                    "url": "https://git.kernel.org/stable/c/519f327c7fd1b67327de2e1cff6fbe85a02a151b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2e54b3e187300893688c2c7517894f5d96732e05"
                }
            ],
            "title": "net/sched: sch_qfq: prevent aggregate self-replacement",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}