(CVE-2025-37890) Linux Kernel net_sched netem Double Enqueue Leading to Use-After-Free and Local Privilege Escalation
A use-after-free flaw exists in the Linux kernel's network scheduler, where the netem queueing discipline can re-enter enqueue and free memory that is still in use. A local unprivileged attacker could exploit this to escalate privileges on the affected system.
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. In the hfscenqueue routine, if the qdisc has a netem child, it is possible for the netem’s re-entrant behaviour to doubly activate a child class.
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 re-entrant enqueue path in netem allows the HFSC scheduler to free a queue structure while it is still being processed, leaving a dangling pointer.
Impact
A local unprivileged attacker could 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 kernel is the core program that manages memory and hardware for the whole computer. A use-after-free happens when a program frees a chunk of memory but keeps using it, so an attacker can plant their own data there. Here a networking component could be tricked into doing this, and because the kernel runs with full power, a local user could 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.