CVE-2025-37890

net_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc

HIGH
7.8
CVSS Score
Published: May 16, 2025 at 01:01 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: net_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc As described in Gerrard's report [1], we have a UAF case when an hfsc class has a netem child qdisc. The crux of the issue is that hfsc is assuming that checking for cl->qdisc->q.qlen == 0 guarantees that it hasn't inserted the class in the vttree or eltree (which is not true for the netem duplicate case). This patch checks the n_active class variable to make sure that the code won't insert the class in the vttree or eltree twice, catering for the reentrant case. [1] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.0 ≤ v < 5.10.2385.0 ≤ v < 5.15.1825.0 ≤ v < 5.4.2945.0 ≤ v < 6.1.1385.0 ≤ v < 6.12.285.0 ≤ v < 6.14.65.0 ≤ v < 6.155.0 ≤ v < 6.6.905.0.1 ≤ v < 5.4.2945.11 ≤ v < 5.15.1825.16 ≤ v < 6.1.1385.5 ≤ v < 5.10.2386.13 ≤ v < 6.14.66.2 ≤ v < 6.6.906.7 ≤ v < 6.12.2837d9cf1a3ce35de3df6f7d209bfb1f50cf188cea5.05.0 rc35.0 rc45.0 rc55.0 rc65.0 rc75.0 rc86.15 rc16.15 rc26.15 rc36.15 rc4
Vendor states this is fixed in 141d34391abbb315d68556b7c67ad97885407547 (fixed)
Vendor states this is fixed in 273bbcfa53541cde38b2003ad88a59b770306421 (fixed)
Vendor states this is fixed in 2e7093c7a8aba5d4f8809f271488e5babe75e202 (fixed)
Vendor states this is fixed in 6082a87af4c52f58150d40dec1716011d871ac21 (fixed)
Vendor states this is fixed in 8df7d37d626430035b413b97cee18396b3450bef (fixed)
Vendor states this is fixed in ac39fd4a757584d78ed062d4f6fd913f83bd98b5 (fixed)
Vendor states this is fixed in e0cf8ee23e1915431f262a7b2dee0c7a7d699af0 (fixed)
Vendor states this is fixed in e3e949a39a91d1f829a4890e7dfe9417ac72e4d0 (fixed)
Vendor states this is fixed in 5.0 (unaffected)
Vendor states this is fixed in 5.10.238 (unaffected)
Vendor states this is fixed in 5.15.182 (unaffected)
Vendor states this is fixed in 5.4.294 (unaffected)
Vendor states this is fixed in 6.1.138 (unaffected)
Vendor states this is fixed in 6.12.28 (unaffected)
Vendor states this is fixed in 6.14.6 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.90 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/141d34391abbb315d68556b7c67ad97885407547
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/273bbcfa53541cde38b2003ad88a59b770306421
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2e7093c7a8aba5d4f8809f271488e5babe75e202
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6082a87af4c52f58150d40dec1716011d871ac21
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8df7d37d626430035b413b97cee18396b3450bef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac39fd4a757584d78ed062d4f6fd913f83bd98b5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e0cf8ee23e1915431f262a7b2dee0c7a7d699af0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3e949a39a91d1f829a4890e7dfe9417ac72e4d0

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card