CVE-2025-37797Linux Kernel
High 7.8
Follow: this CVE · Linux · Linux Kernel We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 2, 2025
- Updated
- Jul 30, 2026
- Category
- Operating system · Linux
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Linux Kernel.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linux | linux_kernel | ≥ 4.14.1 < 5.4.293 |
| linux | linux_kernel | ≥ 5.5 < 5.10.237 |
| linux | linux_kernel | ≥ 5.11 < 5.15.181 |
| linux | linux_kernel | ≥ 5.16 < 6.1.136 |
| linux | linux_kernel | ≥ 6.2 < 6.6.89 |
| linux | linux_kernel | ≥ 6.7 < 6.12.26 |
| linux | linux_kernel | ≥ 6.13 < 6.14.5 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 4.14 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| debian | debian_linux | 11.0 |
Official advisories
- Red Hat Security Advisory: kernel security update · Red Hat · RHSA-2025:22752 · Dec 5, 2025 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- git.kernel.org Patch
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory