CVE-2025-38177
sch_hfsc: make hfsc_qlen_notify() idempotent
Mitigation
- Upgrade Linux to 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb or later.
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
Vulnerability facts
- Affected
- Linux >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < a5efc95a33bd4fcb879250852828cc58c7862970; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 9030a91235ae4845ec71902c3e0cecfc9ed1f2df; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < d06476714d2819b550e0cc39222347e2c8941c9d; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < c1175c4ad01dbc9c979d099861fa90a754f72059; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb; Linux 4.14
- Fixed in
- Linux 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, Linux 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, Linux 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, Linux 9030a91235ae4845ec71902c3e0cecfc9ed1f2df, Linux 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-459
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < a5efc95a33bd4fcb879250852828cc58c7862970; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 9030a91235ae4845ec71902c3e0cecfc9ed1f2df; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < d06476714d2819b550e0cc39222347e2c8941c9d; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < c1175c4ad01dbc9c979d099861fa90a754f72059; >= 959466588aa7f84ccf79ae36a1d89542eaf9aaec, < 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb | — | cvelist |
| Linux | 4.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/9a5fd5c2f4d4afdd5e405083ee53e0789ce76956
- https://git.kernel.org/stable/c/72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7
- https://git.kernel.org/stable/c/a5efc95a33bd4fcb879250852828cc58c7862970
- https://git.kernel.org/stable/c/0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87
- https://git.kernel.org/stable/c/9030a91235ae4845ec71902c3e0cecfc9ed1f2df
- https://git.kernel.org/stable/c/d06476714d2819b550e0cc39222347e2c8941c9d
- https://git.kernel.org/stable/c/c1175c4ad01dbc9c979d099861fa90a754f72059
- https://git.kernel.org/stable/c/51eb3b65544c9efd6a1026889ee5fb5aa62da3bb
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.