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

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

AI Predicted 4.3 Difficulty: Hard EPSS 0.18% · P8

Possible ATT&CK Techniques 1AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinux12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 1034e3310752e8675e313f7271b348914008719aaffected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< f9f593e34d2fb67644372c8f7b033bdc622ad228affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 89c301e929a0db14ebd94b4d97764ce1d6981653affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 93c276942e75de0e5bc91576300d292e968f5a02affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 49b21795b8e5654a7df3d910a12e1060da4c04cfaffected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7< 3f981138109f63232a5fb7165938d4c945cc1b9daffected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 ~ 1034e3310752e8675e313f7271b348914008719a -
LinuxLinux 4.8 -

II. Public POCs for CVE-2025-38000

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

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-38002io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
CVE-2025-38001net_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