CVE-2025-37797 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net_sched: hfsc: Fix a UAF vulnerability in class handling This patch fixes a Use-After-Free vulnerability in the HFSC qdisc class handling. The issue occurs due to a time-of-check/time-of-use condition in hfsc_change_class() when working with certain child qdiscs like netem or codel. The vulnerability works as follows: 1. hfsc_change_class() checks if a class has packets (q.qlen != 0) 2. It then calls qdisc_peek_len(), which for certain qdiscs (e.g., codel, netem) might drop packets and empty the queue 3. The code continues assuming the queue is still non-empty, adding the class to vttree 4. This breaks HFSC scheduler assumptions that only non-empty classes are in vttree 5. Later, when the class is destroyed, this can lead to a Use-After-Free The fix adds a second queue length check after qdisc_peek_len() to verify the queue wasn't emptied.
A Use-After-Free vulnerability has been identified in the Linux kernel's Hierarchical Fair Service Curve (HFSC) queuing discipline (qdisc) class handling. This issue arises from a time-of-check/time-of-use condition in the 'hfsc_change_class()' function, particularly when interacting with certain child qdiscs like 'netem' or 'codel'. The vulnerability exploitation process involves 'hfsc_change_class()' first checking if a class has packets in its queue. It then calls 'qdisc_peek_len()', which can drop packets for specific qdiscs, potentially emptying the queue. The function continues under the assumption that the queue still contains packets, adding the class to the virtual tree. This assumption breach can lead to a Use-After-Free condition when the class is later destroyed.
Users should upgrade to the latest version of the Linux kernel where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/20d584a33e480ae80d105f43e0e7b56784da41b9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/28b09a067831f7317c3841812276022d6c940677 | kernel.org | Patch |
| https://git.kernel.org/stable/c/39b9095dd3b55d9b2743df038c32138efa34a9de | kernel.org | Patch |
| https://git.kernel.org/stable/c/3aa852e3605000d5c47035c3fc3a986d14ccfa9f | kernel.org | Patch |
| https://git.kernel.org/stable/c/3df275ef0a6ae181e8428a6589ef5d5231e58b5c | kernel.org | Patch |
| https://git.kernel.org/stable/c/86cd4641c713455a4f1c8e54c370c598c2b1cee0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/bb583c88d23b72d8d16453d24856c99bd93dadf5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fcc8ede663569c704fb00a702973bd6c00373283 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html | CVE | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.14.1, < 5.4.293 >= 5.5, < 5.10.237 >= 5.11, < 5.15.181 >= 5.16, < 6.1.136 >= 6.2, < 6.6.89 >= 6.7, < 6.12.26 >= 6.13, < 6.14.5 4.14 - 4.14 rc2 4.14 rc3 4.14 rc4 4.14 rc5 4.14 rc6 4.14 rc7 4.14 rc8 6.15 rc1 6.15 rc2 6.15 rc3 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 6, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| May 2, 2025 | New CVE Received | kernel.org |