# CVE-2025-37890: net\_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-16T13:01:12.798Z
- **Modified:** 2026-08-05T11:58:05.817Z

## Who should check

- Anyone running Linux \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 273bbcfa53541cde38b2003ad88a59b770306421; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e0cf8ee23e1915431f262a7b2dee0c7a7d699af0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e3e949a39a91d1f829a4890e7dfe9417ac72e4d0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 8df7d37d626430035b413b97cee18396b3450bef; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 6082a87af4c52f58150d40dec1716011d871ac21; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 2e7093c7a8aba5d4f8809f271488e5babe75e202; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< ac39fd4a757584d78ed062d4f6fd913f83bd98b5; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 141d34391abbb315d68556b7c67ad97885407547
- Anyone running Linux 5.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

net\_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc

As described in Gerrard's report \[1\], we have a UAF case when an hfsc class
has a netem child qdisc. The crux of the issue is that hfsc is assuming
that checking for cl-\>qdisc-\>q.qlen == 0 guarantees that it hasn't inserted
the class in the vttree or eltree (which is not true for the netem
duplicate case).

This patch checks the n\_active class variable to make sure that the code
won't insert the class in the vttree or eltree twice, catering for the
reentrant case.

\[1\] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/

## Affected and fixed versions

- Linux: \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 273bbcfa53541cde38b2003ad88a59b770306421; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e0cf8ee23e1915431f262a7b2dee0c7a7d699af0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e3e949a39a91d1f829a4890e7dfe9417ac72e4d0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 8df7d37d626430035b413b97cee18396b3450bef; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 6082a87af4c52f58150d40dec1716011d871ac21; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 2e7093c7a8aba5d4f8809f271488e5babe75e202; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< ac39fd4a757584d78ed062d4f6fd913f83bd98b5; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 141d34391abbb315d68556b7c67ad97885407547 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 141d34391abbb315d68556b7c67ad97885407547 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37890. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37890.md
Affected: Linux >= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, < 273bbcfa53541cde38b2003ad88a59b770306421; >= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, < e0cf8ee23e1915431f262a7b2dee0c7a7d699af0; >= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, < e3e949a39a91d1f829a4890e7dfe9417ac72e4d0; >= 37d9cf1a3ce35de3df6f7d2…
Fixed in: Linux 273bbcfa53541cde38b2003ad88a59b770306421, Linux 8df7d37d626430035b413b97cee18396b3450bef, Linux 6082a87af4c52f58150d40dec1716011d871ac21, Linux 2e7093c7a8aba5d4f8809f271488e5babe75e202, Linux 141d34391abbb315d68556b7c67ad97885407547

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37890 being exploited?

There is no confirmed exploitation: CVE-2025-37890 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37890?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37890?

Linux \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 273bbcfa53541cde38b2003ad88a59b770306421; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e0cf8ee23e1915431f262a7b2dee0c7a7d699af0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< e3e949a39a91d1f829a4890e7dfe9417ac72e4d0; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 8df7d37d626430035b413b97cee18396b3450bef; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 6082a87af4c52f58150d40dec1716011d871ac21; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 2e7093c7a8aba5d4f8809f271488e5babe75e202; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< ac39fd4a757584d78ed062d4f6fd913f83bd98b5; \>= 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea, \< 141d34391abbb315d68556b7c67ad97885407547; Linux 5.0.

### Is there a fix for CVE-2025-37890?

Yes. Fixed in Linux 273bbcfa53541cde38b2003ad88a59b770306421, Linux 8df7d37d626430035b413b97cee18396b3450bef, Linux 6082a87af4c52f58150d40dec1716011d871ac21, Linux 2e7093c7a8aba5d4f8809f271488e5babe75e202, Linux 141d34391abbb315d68556b7c67ad97885407547. Upgrade Linux to 141d34391abbb315d68556b7c67ad97885407547 or later.

### How do I check if I'm affected by CVE-2025-37890?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/273bbcfa53541cde38b2003ad88a59b770306421>
- patch: <https://git.kernel.org/stable/c/e0cf8ee23e1915431f262a7b2dee0c7a7d699af0>
- patch: <https://git.kernel.org/stable/c/e3e949a39a91d1f829a4890e7dfe9417ac72e4d0>
- patch: <https://git.kernel.org/stable/c/8df7d37d626430035b413b97cee18396b3450bef>
- patch: <https://git.kernel.org/stable/c/6082a87af4c52f58150d40dec1716011d871ac21>
- patch: <https://git.kernel.org/stable/c/2e7093c7a8aba5d4f8809f271488e5babe75e202>
- patch: <https://git.kernel.org/stable/c/ac39fd4a757584d78ed062d4f6fd913f83bd98b5>
- patch: <https://git.kernel.org/stable/c/141d34391abbb315d68556b7c67ad97885407547>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37890>

HTML: <https://flawdb.com/CVE-2025-37890> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37890>
