Use-after-free in Linux kernel HFSC class handling
CVE-2025-37797 is a use-after-free vulnerability in the Linux kernel's HFSC queueing discipline class-handling logic. In hfsc_change_class(), an initial check establishes that a class queue contains packets before qdisc_peek_len() is called. Certain child queueing disciplines, including codel and netem, can drop packets during that call and empty the queue. The vulnerable code nevertheless inserts the class into vttree, violating the scheduler's invariant that the tree contains only non-empty classes. Subsequent destruction of the class can result in use-after-free. The fix rechecks the queue length after qdisc_peek_len() before proceeding.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
The vulnerability can cause the HFSC scheduler to retain an improperly tracked class and subsequently access freed kernel memory when that class is destroyed. Specific exploitation outcomes, such as arbitrary code execution, privilege escalation, information disclosure, or a reliable kernel crash, are not established by the vulnerability-specific technical details.
If you can’t patch tonight, do this now.
Until the kernel can be updated, restrict untrusted users' local access and prevent untrusted workloads from obtaining the privileges needed to create or modify traffic-control qdisc hierarchies. Avoid deploying HFSC configurations that use child qdiscs capable of dropping packets during length inspection, including CoDel and netem, where operationally feasible.
Patch, then assume compromise.
Install a vendor-supported kernel update containing the additional queue-length check after qdisc_peek_len(), and reboot into the updated kernel. Applicable Red Hat updates include RHSA-2025:11855 for RHEL 10, RHSA-2025:11861 for RHEL 9, and RHSA-2025:16919 for RHEL 8. Fixed builds for specific streams include 4.18.0-553.77.1.el8_10 for RHEL 8.10 and 5.14.0-284.130.1.el9_2 for RHEL 9.2. Select the update appropriate to the installed product, architecture, and support channel.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
33 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.