(CVE-2025-37798) Linux Kernel fq_codel_dequeue qlen Mismatch Leading to Use-After-Free and Local Privilege Escalation
A queue-length mismatch in the Linux kernel's fq_codel dequeue path means dropped packets are not reported to the parent qdisc, which can lead to a use-after-free. A local unprivileged attacker may exploit this to escalate privileges.
starlabs.sg
Published on starlabs.sg
A use-after-free vulnerability in the Linux Kernel net scheduler subsystem can be exploited to achieve local privilege escalation. By manipulating the network interface’s maximum transmission unit, it is possible to drop packets in fqcodeldequeue without notifying a parent qdisc.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing or incorrect queue-length update when packets are dropped in fq_codel dequeue, so the parent qdisc's accounting diverges and a freed object is still referenced.
Impact
A local unprivileged attacker may achieve local privilege escalation with high confidentiality, integrity and availability impact.
What the attacker needed
Local unprivileged access to the system
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The Linux kernel manages network traffic queues. A bookkeeping error in one queue type (fq_codel) meant that when packets were dropped, the parent queue was not told, so memory could be freed while still in use. A local user on the machine could then abuse this to gain higher privileges.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.