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

Published Jun 6, 2025
·
Updated

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.

Affected Software

16 affected components
Linux Kernel
Linux Linux kernel>=4.8<5.4.294
Linux Linux kernel>=5.5<5.10.238
Linux Linux kernel>=5.11<5.15.185
Linux Linux kernel>=5.16<6.1.141
Linux Linux kernel>=6.2<6.6.93
Linux Linux kernel>=6.7<6.12.31
Linux Linux kernel>=6.13<6.14.9
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7
Debian Debian Linux=11.0

Event History

Jun 6, 2025
CVE Published
via MITRE·01:03 PM
Data Sourced
via MITRE·01:03 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·02:04 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-38000?

CVE-2025-38000 has a moderate severity level due to its potential impact on packet handling in the Linux kernel.

2

How do I fix CVE-2025-38000?

To fix CVE-2025-38000, update the Linux kernel to the latest patched version provided by your distribution.

3

What systems are affected by CVE-2025-38000?

CVE-2025-38000 affects specific versions of the Linux kernel that implement the HFSC scheduling class.

4

What is the impact of CVE-2025-38000 on systems?

The impact of CVE-2025-38000 can lead to incorrect queue length accounting which could affect traffic scheduling performance.

5

When was CVE-2025-38000 discovered?

CVE-2025-38000 was reported as a vulnerability in the Linux kernel, with fixes released in late 2025.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203