CVE-2025-38001: Use-after-free and infinite loop in Linux kernel HFSC scheduling
- Vendors
- Debian ProjectLinux
CVE-2025-38001 is a Linux kernel HFSC traffic-control vulnerability in which reentrant enqueue operations can insert the same class into the eligible tree (eltree) twice. An earlier protection checks cl->cl_nactive, which is incremented only by init_vf. HFSC_RSC processing instead invokes init_ed, bypassing that protection when NETEM is an HFSC child queueing discipline. Duplicate insertion can cause an infinite loop in hfsc_dequeue. Configuring a very-low-rate TBF root queueing discipline can prevent dequeueing, allowing subsequent tree insertions to trigger a use-after-free.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can disrupt packet scheduling through an infinite loop in hfsc_dequeue and can trigger a kernel use-after-free when packet dequeueing is suppressed. These conditions threaten system availability and kernel memory safety. Code execution, privilege escalation, and information disclosure are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific workaround is established. Until patching is possible, limit untrusted access to affected systems and kernel attack surfaces. These exposure-reduction measures do not replace the corrected HFSC implementation.
Remediation
Patch, then assume compromise.
Install a vendor kernel update containing the fix that explicitly checks in hfsc_enqueue whether a class is already in the eltree whenever HFSC_RSC is set. Fixed releases include RHEL 9.2 kernel 5.14.0-284.128.1.el9_2, RHEL 9.2 real-time kernel 5.14.0-284.128.1.rt14.413.el9_2, RHEL 8.8 kernel 4.18.0-477.107.1.el8_8, and RHEL 8.6 kernel 4.18.0-372.158.1.el8_6. Apply the update appropriate to the deployed distribution and support stream, and reboot to activate the updated kernel. The earlier cl->cl_nactive-based fix alone is insufficient.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-38001 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-38001?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-38001, the earliest disclosed Jul 11, 2025.
- Is there a patch for CVE-2025-38001?
- Install a vendor kernel update containing the fix that explicitly checks in hfsc_enqueue whether a class is already in the eltree whenever HFSC_RSC is set. Fixed releases include RHEL 9.2 kernel 5.14.0-284.128.1.el9_2, RHEL 9.2 real-time kernel 5.14.0-284.128.1.rt14.413.el9_2, RHEL 8.8 kernel 4.18.0-477.107.1.el8_8, and RHEL 8.6 kernel 4.18.0-372.158.1.el8_6.
- What products are affected by CVE-2025-38001?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2025-38001?
- CVE-2025-38001 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.38% (24th percentile) as of Oct 16, 2026.
Recent activity
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.