# CVE-2025-38177: sch\_hfsc: make hfsc\_qlen\_notify() idempotent

> 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-459
- **Published:** 2025-07-04T12:47:09.127Z
- **Modified:** 2026-08-05T12:00:08.513Z

## Who should check

- Anyone running Linux \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< a5efc95a33bd4fcb879250852828cc58c7862970; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9030a91235ae4845ec71902c3e0cecfc9ed1f2df; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< d06476714d2819b550e0cc39222347e2c8941c9d; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< c1175c4ad01dbc9c979d099861fa90a754f72059; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb
- Anyone running Linux 4.14

## Description

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

sch\_hfsc: make hfsc\_qlen\_notify() idempotent

hfsc\_qlen\_notify() is not idempotent either and not friendly
to its callers, like fq\_codel\_dequeue(). Let's make it idempotent
to ease qdisc\_tree\_reduce\_backlog() callers' life:

1. update\_vf() decreases cl-\>cl\_nactive, so we can check whether it is
non-zero before calling it.

2. eltree\_remove() always removes RB node cl-\>el\_node, but we can use
   RB\_EMPTY\_NODE() + RB\_CLEAR\_NODE() to make it safe.

## Affected and fixed versions

- Linux: \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< a5efc95a33bd4fcb879250852828cc58c7862970; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9030a91235ae4845ec71902c3e0cecfc9ed1f2df; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< d06476714d2819b550e0cc39222347e2c8941c9d; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< c1175c4ad01dbc9c979d099861fa90a754f72059; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb 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-38177. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38177.md
Affected: Linux >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < a5efc95a33bd4fcb879250852828cc58c7862970; >= 959466588aa7f84ccf79ae3…
Fixed in: Linux 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, Linux 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, Linux 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, Linux 9030a91235ae4845ec71902c3e0cecfc9ed1f2df, Linux 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb

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-38177 being exploited?

There is no confirmed exploitation: CVE-2025-38177 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-38177?

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

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

Linux \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< a5efc95a33bd4fcb879250852828cc58c7862970; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 9030a91235ae4845ec71902c3e0cecfc9ed1f2df; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< d06476714d2819b550e0cc39222347e2c8941c9d; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< c1175c4ad01dbc9c979d099861fa90a754f72059; \>= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, \< 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb; Linux 4.14.

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

Yes. Fixed in Linux 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, Linux 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, Linux 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, Linux 9030a91235ae4845ec71902c3e0cecfc9ed1f2df, Linux 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb. Upgrade Linux to 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb or later.

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

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/9a5fd5c2f4d4afdd5e405083ee53e0789ce76956>
- patch: <https://git.kernel.org/stable/c/72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7>
- patch: <https://git.kernel.org/stable/c/a5efc95a33bd4fcb879250852828cc58c7862970>
- patch: <https://git.kernel.org/stable/c/0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87>
- patch: <https://git.kernel.org/stable/c/9030a91235ae4845ec71902c3e0cecfc9ed1f2df>
- patch: <https://git.kernel.org/stable/c/d06476714d2819b550e0cc39222347e2c8941c9d>
- patch: <https://git.kernel.org/stable/c/c1175c4ad01dbc9c979d099861fa90a754f72059>
- patch: <https://git.kernel.org/stable/c/51eb3b65544c9efd6a1026889ee5fb5aa62da3bb>
- 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-38177>

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