# CVE-2025-38107: net\_sched: ets: fix a race in ets\_qdisc\_change()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2025-07-03T08:35:17.487Z
- **Modified:** 2026-10-15T22:18:27.143Z

## Who should check

- Anyone running Linux \>= 699d82e9a6db29d509a71f1f2f4316231e6232e6, \< eb7b74e9754e1ba2088f914ad1f57a778b11894b; \>= ce881ddbdc028fb1988b66e40e45ca0529c23b46, \< 0b479d0aa488cb478eb2e1d8868be946ac8afb4f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 347867cb424edae5fec1622712c8dd0a2c42918f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 0383b25488a545be168744336847549d4a2d3d6c; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 073f64c03516bcfaf790f8edc772e0cfb8a84ec3; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< fed94bd51d62d2e0e006aa61480e94e5cd0582b0; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< d92adacdd8c2960be856e0b82acc5b7c5395fddb; fffa19b5e58c34004a0d6f642d9c24b11d213994; fb155f6597cd7bc3aeed668c3bb15fc3b7cb257d; \>= 5.10.142, \< 5.10.239; …
- Anyone running Linux 6.0

## 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 and fixed versions

- Linux: \>= 699d82e9a6db29d509a71f1f2f4316231e6232e6, \< eb7b74e9754e1ba2088f914ad1f57a778b11894b; \>= ce881ddbdc028fb1988b66e40e45ca0529c23b46, \< 0b479d0aa488cb478eb2e1d8868be946ac8afb4f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 347867cb424edae5fec1622712c8dd0a2c42918f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 0383b25488a545be168744336847549d4a2d3d6c; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 073f64c03516bcfaf790f8edc772e0cfb8a84ec3; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< fed94bd51d62d2e0e006aa61480e94e5cd0582b0; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< d92adacdd8c2960be856e0b82acc5b7c5395fddb; fffa19b5e58c34004a0d6f642d9c24b11d213994; fb155f6597cd7bc3aeed668c3bb15fc3b7cb257d; \>= 5.10.142, \< 5.10.239; … (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38107. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38107.md
Affected: Linux >= 699d82e9a6db29d509a71f1f2f4316231e6232e6, < eb7b74e9754e1ba2088f914ad1f57a778b11894b; >= ce881ddbdc028fb1988b66e40e45ca0529c23b46, < 0b479d0aa488cb478eb2e1d8868be946ac8afb4f; >= b05972f01e7d30419987a1f221b5593668fd6448, < 347867cb424edae5fec1622712c8dd0a2c42918f; >= b05972f01e7d30419987a1f…
Fixed in: Linux 0b479d0aa488cb478eb2e1d8868be946ac8afb4f, Linux 347867cb424edae5fec1622712c8dd0a2c42918f, Linux 0383b25488a545be168744336847549d4a2d3d6c, Linux 073f64c03516bcfaf790f8edc772e0cfb8a84ec3, Linux 5.10.239

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38107 being exploited?

There is no confirmed exploitation: CVE-2025-38107 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38107?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38107?

Linux \>= 699d82e9a6db29d509a71f1f2f4316231e6232e6, \< eb7b74e9754e1ba2088f914ad1f57a778b11894b; \>= ce881ddbdc028fb1988b66e40e45ca0529c23b46, \< 0b479d0aa488cb478eb2e1d8868be946ac8afb4f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 347867cb424edae5fec1622712c8dd0a2c42918f; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 0383b25488a545be168744336847549d4a2d3d6c; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< 073f64c03516bcfaf790f8edc772e0cfb8a84ec3; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< fed94bd51d62d2e0e006aa61480e94e5cd0582b0; \>= b05972f01e7d30419987a1f221b5593668fd6448, \< d92adacdd8c2960be856e0b82acc5b7c5395fddb; fffa19b5e58c34004a0d6f642d9c24b11d213994; fb155f6597cd7bc3aeed668c3bb15fc3b7cb257d; \>= 5.10.142, \< 5.10.239; …; Linux 6.0.

### Is there a fix for CVE-2025-38107?

Yes. Fixed in Linux 0b479d0aa488cb478eb2e1d8868be946ac8afb4f, Linux 347867cb424edae5fec1622712c8dd0a2c42918f, Linux 0383b25488a545be168744336847549d4a2d3d6c, Linux 073f64c03516bcfaf790f8edc772e0cfb8a84ec3, Linux 5.10.239. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38107?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/eb7b74e9754e1ba2088f914ad1f57a778b11894b>
- patch: <https://git.kernel.org/stable/c/0b479d0aa488cb478eb2e1d8868be946ac8afb4f>
- patch: <https://git.kernel.org/stable/c/347867cb424edae5fec1622712c8dd0a2c42918f>
- patch: <https://git.kernel.org/stable/c/0383b25488a545be168744336847549d4a2d3d6c>
- patch: <https://git.kernel.org/stable/c/073f64c03516bcfaf790f8edc772e0cfb8a84ec3>
- patch: <https://git.kernel.org/stable/c/fed94bd51d62d2e0e006aa61480e94e5cd0582b0>
- patch: <https://git.kernel.org/stable/c/d92adacdd8c2960be856e0b82acc5b7c5395fddb>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38107>

HTML: <https://flawdb.com/CVE-2025-38107> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38107>
