# CVE-2025-38108: net\_sched: red: fix a race in \_\_red\_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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-07-03T08:35:18.523Z
- **Modified:** 2026-10-15T22:18:27.337Z

## Who should check

- Anyone running Linux \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2790c4ec481be45a80948d059cd7c9a06bc37493; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< a1bf6a4e9264a685b0e642994031f9c5aad72414; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 110a47efcf23438ff8d31dbd9c854fae2a48bf98; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< f569984417a4e12c67366e69bdcb752970de921d; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2a71924ca4af59ffc00f0444732b6cd54b153d0e; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 4b755305b2b0618e857fdadb499365b5f2e478d1; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 444ad445df5496a785705019268a8a84b84484bb; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 85a3e0ede38450ea3053b8c45d28cf55208409b8
- Anyone running Linux 5.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

net\_sched: red: fix a race in \_\_red\_change()

Gerrard Tai reported a race condition in RED, 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: \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2790c4ec481be45a80948d059cd7c9a06bc37493; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< a1bf6a4e9264a685b0e642994031f9c5aad72414; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 110a47efcf23438ff8d31dbd9c854fae2a48bf98; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< f569984417a4e12c67366e69bdcb752970de921d; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2a71924ca4af59ffc00f0444732b6cd54b153d0e; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 4b755305b2b0618e857fdadb499365b5f2e478d1; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 444ad445df5496a785705019268a8a84b84484bb; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 85a3e0ede38450ea3053b8c45d28cf55208409b8 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 85a3e0ede38450ea3053b8c45d28cf55208409b8 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38108.md
Affected: Linux >= 0c8d13ac96070000da33f394f45e9c19638483c5, < 2790c4ec481be45a80948d059cd7c9a06bc37493; >= 0c8d13ac96070000da33f394f45e9c19638483c5, < a1bf6a4e9264a685b0e642994031f9c5aad72414; >= 0c8d13ac96070000da33f394f45e9c19638483c5, < 110a47efcf23438ff8d31dbd9c854fae2a48bf98; >= 0c8d13ac96070000da33f39…
Fixed in: Linux 2790c4ec481be45a80948d059cd7c9a06bc37493, Linux 110a47efcf23438ff8d31dbd9c854fae2a48bf98, Linux 2a71924ca4af59ffc00f0444732b6cd54b153d0e, Linux 4b755305b2b0618e857fdadb499365b5f2e478d1, Linux 444ad445df5496a785705019268a8a84b84484bb, Linux 85a3e0ede38450ea3053b8c45d28cf55208409b8

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-38108 being exploited?

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

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

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

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

Linux \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2790c4ec481be45a80948d059cd7c9a06bc37493; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< a1bf6a4e9264a685b0e642994031f9c5aad72414; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 110a47efcf23438ff8d31dbd9c854fae2a48bf98; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< f569984417a4e12c67366e69bdcb752970de921d; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 2a71924ca4af59ffc00f0444732b6cd54b153d0e; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 4b755305b2b0618e857fdadb499365b5f2e478d1; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 444ad445df5496a785705019268a8a84b84484bb; \>= 0c8d13ac96070000da33f394f45e9c19638483c5, \< 85a3e0ede38450ea3053b8c45d28cf55208409b8; Linux 5.0.

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

Yes. Fixed in Linux 2790c4ec481be45a80948d059cd7c9a06bc37493, Linux 110a47efcf23438ff8d31dbd9c854fae2a48bf98, Linux 2a71924ca4af59ffc00f0444732b6cd54b153d0e, Linux 4b755305b2b0618e857fdadb499365b5f2e478d1, Linux 444ad445df5496a785705019268a8a84b84484bb, Linux 85a3e0ede38450ea3053b8c45d28cf55208409b8. Upgrade Linux to 85a3e0ede38450ea3053b8c45d28cf55208409b8 or later.

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

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/2790c4ec481be45a80948d059cd7c9a06bc37493>
- patch: <https://git.kernel.org/stable/c/a1bf6a4e9264a685b0e642994031f9c5aad72414>
- patch: <https://git.kernel.org/stable/c/110a47efcf23438ff8d31dbd9c854fae2a48bf98>
- patch: <https://git.kernel.org/stable/c/f569984417a4e12c67366e69bdcb752970de921d>
- patch: <https://git.kernel.org/stable/c/2a71924ca4af59ffc00f0444732b6cd54b153d0e>
- patch: <https://git.kernel.org/stable/c/4b755305b2b0618e857fdadb499365b5f2e478d1>
- patch: <https://git.kernel.org/stable/c/444ad445df5496a785705019268a8a84b84484bb>
- patch: <https://git.kernel.org/stable/c/85a3e0ede38450ea3053b8c45d28cf55208409b8>
- 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-38108>

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