CVE-2025-38107
JSON

7.8high

net_sched: ets: fix a race in ets_qdisc_change()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.17% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net_sched: ets: fix a race in ets_qdisc_change() Gerrard Tai reported a race condition in ETS, whenever SFQ perturb timer fires at the wrong time. The race is as follows: CPU 0 CPU 1 [1]: lock root [2]: qdisc_tree_flush_backlog() [3]: unlock root | | [5]: lock root | [6]: rehash | [7]: qdisc_tree_reduce_backlog() | [4]: qdisc_put() This can be abused to underflow a parent's qlen. Calling qdisc_purge_queue() instead of qdisc_tree_flush_backlog() should fix the race, because all packets will be purged from the qdisc before releasing the lock.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 699d82e9a6db29d509a71f1f2f4316231e6232e6 before eb7b74e9754e1ba2088f914ad1f57a778b11894b, from ce881ddbdc028fb1988b66e40e45ca0529c23b46 before 0b479d0aa488cb478eb2e1d8868be946ac8afb4f, from b05972f01e7d30419987a1f221b5593668fd6448 before 347867cb424edae5fec1622712c8dd0a2c42918f, from b05972f01e7d30419987a1f221b5593668fd6448 before 0383b25488a545be168744336847549d4a2d3d6c, from b05972f01e7d30419987a1f221b5593668fd6448 before 073f64c03516bcfaf790f8edc772e0cfb8a84ec3, from b05972f01e7d30419987a1f221b5593668fd6448 before fed94bd51d62d2e0e006aa61480e94e5cd0582b0, from b05972f01e7d30419987a1f221b5593668fd6448 before d92adacdd8c2960be856e0b82acc5b7c5395fddb, fffa19b5e58c34004a0d6f642d9c24b11d213994 and 6 more
Not affected: before 6.0, from 5.10.239 up to 5.10.*, from 5.15.186 up to 5.15.*, from 6.1.142 up to 6.1.*, from 6.6.94 up to 6.6.*, from 6.12.34 up to 6.12.*
CVE List
linux linux_kernelfrom 5.4.213 before 5.5, from 5.10.142 before 5.10.239, from 5.15.66 before 5.15.186, from 5.19.8 before 6.0, from 6.0.1 before 6.1.142, from 6.2 before 6.6.94, from 6.7 before 6.12.34, from 6.13 before 6.15.3 and 2 moreNVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net_sched: ets: fix a race in ets_qdisc_change() Gerrard Tai reported a race condition in ETS, whenever SFQ perturb timer fires at the wrong time. The race is as follows: CPU 0 CPU 1 [1]: lock root [2]: qdisc_tree_flush_backlog() [3]: unlock root | | [5]: lock root | [6]: rehash | [7]: qdisc_tree_reduce_backlog() | [4]: qdisc_put() This can be abused to underflow a parent's qlen. Calling qdisc_purge_queue() instead of qdisc_tree_flush_backlog() should fix the race, because all packets will be purged from the qdisc before releasing the lock.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net_sched: ets: corrige una ejecución en ets_qdisc_change() Gerrard Tai informó de una condición de ejecución en ETS, siempre que el temporizador de perturbación SFQ se dispara en el momento equivocado. La ejecución es la siguiente: CPU 0 CPU 1 [1]: raíz de bloqueo [2]: qdisc_tree_flush_backlog() [3]: raíz de desbloqueo | | [5]: raíz de bloqueo | [6]: rehash | [7]: qdisc_tree_reduce_backlog() | [4]: qdisc_put() Esto se puede abusar para desbordar el qlen de un padre. Llamar a qdisc_purge_queue() en lugar de qdisc_tree_flush_backlog() debería corregir la ejecución, porque todos los paquetes se purgarán del qdisc antes de liberar el bloqueo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38107 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38107 changed 2026-10-15Public domain