Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38000— sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于sch_hfsc中qlen计数错误,可能导致队列统计不一致。

CVSS 7.8 · High EPSS 0.23% · P13

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux 12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 1034e3310752e8675e313f7271b348914008719a affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< f9f593e34d2fb67644372c8f7b033bdc622ad228 affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 89c301e929a0db14ebd94b4d97764ce1d6981653 affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4 affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 93c276942e75de0e5bc91576300d292e968f5a02 affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 49b21795b8e5654a7df3d910a12e1060da4c04cf affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 3f981138109f63232a5fb7165938d4c945cc1b9d affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38000

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue() When enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the child qdisc's peek() operation before incrementing sch->q.qlen and sch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may trigger an immediate dequeue and potential packet drop. In such cases, qdisc_tree_reduce_backlog() 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于sch_hfsc中qlen计数错误,可能导致队列统计不一致。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 ~ 1034e3310752e8675e313f7271b348914008719a -
Linux Linux 4.8 -

II. Public POCs for CVE-2025-38000

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38000

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-38000 (6)

Same Patch Batch · Linux · 2025-06-06 · 3 CVEs total

CVE-2025-38002 7.8 HIGH io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
CVE-2025-38001 7.8 HIGH net_sched: hfsc: Address reentrant enqueue adding class to eltree twice

IV. Related Vulnerabilities

V. Comments for CVE-2025-38000

No comments yet


Leave a comment