CVE-2026-52997

Source
https://cve.org/CVERecord?id=CVE-2026-52997
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52997.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-52997
Downstream
Published
2026-06-24T16:29:09.997Z
Modified
2026-07-08T08:05:24.659499453Z
Summary
net/sched: sch_dualpi2: drain both C-queue and L-queue in dualpi2_change()
Details

In the Linux kernel, the following vulnerability has been resolved:

net/sched: schdualpi2: drain both C-queue and L-queue in dualpi2change()

Fix dualpi2_change() to correctly enforce updated limit and memlimit values after a configuration change of the dualpi2 qdisc.

Before this patch, dualpi2_change() always attempted to dequeue packets via the root qdisc (C-queue) when reducing backlog or memory usage, and unconditionally assumed that a valid skb will be returned. When traffic classification results in packets being queued in the L-queue while the C-queue is empty, this leads to a NULL skb dereference during limit or memlimit enforcement.

This is fixed by first dequeuing from the C-queue path if it is non-empty. Once the C-queue is empty, packets are dequeued directly from the L-queue. Return values from qdiscdequeueinternal() are checked for both queues. When dequeuing from the L-queue, the parent qdisc qlen and backlog counters are updated explicitly to keep overall qdisc statistics consistent.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52997.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
320d031ad6e4d67e8e1ab08ac71efda02bc85683
Fixed
86cf2eba2056bcf9c41fba260e599bd95bf9943b
Fixed
3042add80c2c50bd127d570b83319af612efde65
Fixed
478ed6b7d2577439c610f91fa8759a4c878a4264

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52997.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.33
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52997.json"