{"id":"CVE-2026-52997","aliases":["CVE-2026-52997"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: sch_dualpi2: drain both C-queue and L-queue in dualpi2_change()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_dualpi2: drain both C-queue and L-queue in dualpi2_change()\n\nFix dualpi2_change() to correctly enforce updated limit and memlimit\nvalues after a configuration change of the dualpi2 qdisc.\n\nBefore this patch, dualpi2_change() always attempted to dequeue packets\nvia the root qdisc (C-queue) when reducing backlog or memory usage, and\nunconditionally assumed that a valid skb will be returned. When traffic\nclassification results in packets being queued in the L-queue while the\nC-queue is empty, this leads to a NULL skb dereference during limit or\nmemlimit enforcement.\n\nThis is fixed by first dequeuing from the C-queue path if it is\nnon-empty. Once the C-queue is empty, packets are dequeued directly from\nthe L-queue. Return values from qdisc_dequeue_internal() are checked for\nboth queues. When dequeuing from the L-queue, the parent qdisc qlen and\nbacklog counters are updated explicitly to keep overall qdisc statistics\nconsistent.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_dualpi2: drain both C-queue and L-queue in dualpi2_change()\n\nFix dualpi2_change() to correctly enforce updated limit and memlimit\nvalues after a configuration change of the dualpi2 qdisc.\n\nBefore this patch, dualpi2_change() always attempted to dequeue packets\nvia the root qdisc (C-queue) when reducing backlog or memory usage, and\nunconditionally assumed that a valid skb will be returned. When traffic\nclassification results in packets being queued in the L-queue while the\nC-queue is empty, this leads to a NULL skb dereference during limit or\nmemlimit enforcement.\n\nThis is fixed by first dequeuing from the C-queue path if it is\nnon-empty. Once the C-queue is empty, packets are dequeued directly from\nthe L-queue. Return values from qdisc_dequeue_internal() are checked for\nboth queues. When dequeuing from the L-queue, the parent qdisc qlen and\nbacklog counters are updated explicitly to keep overall qdisc statistics\nconsistent.","source":"cvelist"}],"published":"2026-06-24T16:29:09.997Z","modified":"2026-07-15T12:56:38.053Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"320d031ad6e4d67e8e1ab08ac71efda02bc85683","fixed":"86cf2eba2056bcf9c41fba260e599bd95bf9943b","status":"affected"},{"type":"git","introduced":"320d031ad6e4d67e8e1ab08ac71efda02bc85683","fixed":"3042add80c2c50bd127d570b83319af612efde65","status":"affected"},{"type":"git","introduced":"320d031ad6e4d67e8e1ab08ac71efda02bc85683","fixed":"478ed6b7d2577439c610f91fa8759a4c878a4264","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.17","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/86cf2eba2056bcf9c41fba260e599bd95bf9943b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3042add80c2c50bd127d570b83319af612efde65","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/478ed6b7d2577439c610f91fa8759a4c878a4264","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52997","url":"https://www.cve.org/CVERecord?id=CVE-2026-52997","licence":"CVE Terms of Use","modified":"2026-06-24T16:29:09.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52997","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52997","licence":"Public domain","modified":"2026-07-15T12:56:38.053Z"}],"updatedAt":"2026-11-25T22:59:25.648Z","epss":{"score":0.00126,"percentile":0.02485,"date":"2026-12-01T12:00:22.000Z"}}