CVE-2025-38000

Source
https://cve.org/CVERecord?id=CVE-2025-38000
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38000.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38000
Downstream
Related
Published
2025-06-06T13:03:35.405Z
Modified
2026-03-20T12:42:37.489037Z
Summary
sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()
Details

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

schhfsc: Fix qlen accounting bug when using peek in hfscenqueue()

When enqueuing the first packet to an HFSC class, hfscenqueue() calls the child qdisc's peek() operation before incrementing sch->q.qlen and sch->qstats.backlog. If the child qdisc uses qdiscpeekdequeued(), this may trigger an immediate dequeue and potential packet drop. In such cases, qdisctreereducebacklog() is called, but the HFSC qdisc's qlen and backlog have not yet been updated, leading to inconsistent queue accounting. This can leave an empty HFSC class in the active list, causing further consequences like use-after-free.

This patch fixes the bug by moving the increment of sch->q.qlen and sch->qstats.backlog before the call to the child qdisc's peek() operation. This ensures that queue length and backlog are always accurate when packet drops or dequeues are triggered during the peek.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38000.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
12d0ad3be9c3854e52ec74bb83bb6f43612827c7
Fixed
1034e3310752e8675e313f7271b348914008719a
Fixed
f9f593e34d2fb67644372c8f7b033bdc622ad228
Fixed
89c301e929a0db14ebd94b4d97764ce1d6981653
Fixed
f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4
Fixed
93c276942e75de0e5bc91576300d292e968f5a02
Fixed
49b21795b8e5654a7df3d910a12e1060da4c04cf
Fixed
3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335
Fixed
3f981138109f63232a5fb7165938d4c945cc1b9d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38000.json"