CVE-2025-37797: net_sched: hfsc: Fix a UAF vulnerability in class handling
Vulnerability summary
CVE-2025-37797 is a high (CVSS 7.8) Use After Free vulnerability in debian debian_linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13.1% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 130 · Related 111Showing 100 of 130.
Timeline
- 02-05-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu137 products
- linux< 4.15.0-240.252 | < 5.4.0-220.240 | < 5.15.0-144.157 | < 6.8.0-71.71
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.15.0-1183.196 | < 5.4.0-1149.159 | < 5.15.0-1088.95 | < 6.8.0-1033.35
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.137-1 | < 6.12.27-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 28b09a067831f7317c3841812276022d6c940677 | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 39b9095dd3b55d9b2743df038c32138efa34a9de | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < fcc8ede663569c704fb00a702973bd6c00373283 | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 20d584a33e480ae80d105f43e0e7b56784da41b9 | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 3aa852e3605000d5c47035c3fc3a986d14ccfa9f | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 86cd4641c713455a4f1c8e54c370c598c2b1cee0 | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < bb583c88d23b72d8d16453d24856c99bd93dadf5 | ≥ 21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14, < 3df275ef0a6ae181e8428a6589ef5d5231e58b5c | 4.14
- linux_kernelEOL≥ 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
Suse2 products
- kernel-livepatch-SLE15-SP3_Update_59&distro=SUSE Linux Enterprise Live Patching 15 SP3< 2-150300.2.1
- kernel-livepatch-SLE15-SP5_Update_28&distro=SUSE Linux Enterprise Live Patching 15 SP5< 2-150500.2.1
4 vendors · 143 products