CVE-2025-38177

published 4 Jul 2025 · updated 5 Aug 2026

sch_hfsc: make hfsc_qlen_notify() idempotent

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, Kernel 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb, Kernel 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.14, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <51eb3b65544c9efd6a1026889ee5fb5aa62da3bb, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <9030a91235ae4845ec71902c3e0cecfc9ed1f2df, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <a5efc95a33bd4fcb879250852828cc58c7862970, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <c1175c4ad01dbc9c979d099861fa90a754f72059, >=959466588aa7f84ccf79ae36a1d89542eaf9aaec <d06476714d2819b550e0cc39222347e2c8941c9d0475c85426b18eccdcb7f9fb58d8f8e9c6c58c87, 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb, 72c61ffbeeb8c50f6d4d70c65d3283aa1bac57a7, 9030a91235ae4845ec71902c3e0cecfc9ed1f2df, 9a5fd5c2f4d4afdd5e405083ee53e0789ce76956, a5efc95a33bd4fcb879250852828cc58c7862970, c1175c4ad01dbc9c979d099861fa90a754f72059, d06476714d2819b550e0cc39222347e2c8941c9d

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-38177 severity on Zeptric[![CVE-2025-38177](https://zeptric.io/badge/cve/CVE-2025-38177.svg)](https://zeptric.io/cve/CVE-2025-38177)