# CVE-2025-38008: mm/page\_alloc: fix race condition in unaccepted memory handling

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-06-18T09:28:19.358Z
- **Modified:** 2026-06-17T09:15:52.390Z

## Who should check

- Anyone running Linux \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 98fdd2f612e949c652693f6df00442c81037776d; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 74953f93f47a45296cc2a3fd04e2a3202ff3fa53; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 71dda1cb10702dc2859f00eb789b0502de2176a9; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< fefc075182275057ce607effaa3daa9e6e3bdc73
- Anyone running Linux 6.5

## Description

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

mm/page\_alloc: fix race condition in unaccepted memory handling

The page allocator tracks the number of zones that have unaccepted memory
using static\_branch\_enc/dec() and uses that static branch in hot paths to
determine if it needs to deal with unaccepted memory.

Borislav and Thomas pointed out that the tracking is racy: operations on
static\_branch are not serialized against adding/removing unaccepted pages
to/from the zone.

Sanity checks inside static\_branch machinery detects it:

WARNING: CPU: 0 PID: 10 at kernel/jump\_label.c:276 \_\_static\_key\_slow\_dec\_cpuslocked+0x8e/0xa0

The comment around the WARN() explains the problem:

	/\*
	 \* Warn about the '-1' case though; since that means a
	 \* decrement is concurrent with a first (0-\>1) increment. IOW
	 \* people are trying to disable something that wasn't yet fully
	 \* enabled. This suggests an ordering problem on the user side.
	 \*/

The effect of this static\_branch optimization is only visible on
microbenchmark.

Instead of adding more complexity around it, remove it altogether.

## Affected and fixed versions

- Linux: \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 98fdd2f612e949c652693f6df00442c81037776d; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 74953f93f47a45296cc2a3fd04e2a3202ff3fa53; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 71dda1cb10702dc2859f00eb789b0502de2176a9; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< fefc075182275057ce607effaa3daa9e6e3bdc73 (cvelist)
- Linux: 6.5 (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-38008. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38008.md
Affected: Linux >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < 98fdd2f612e949c652693f6df00442c81037776d; >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < 74953f93f47a45296cc2a3fd04e2a3202ff3fa53; >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < 71dda1cb10702dc2859f00eb789b0502de2176a9; >= dcdfdd40fa82b6704d28419…
Fixed in: Linux 98fdd2f612e949c652693f6df00442c81037776d, Linux 74953f93f47a45296cc2a3fd04e2a3202ff3fa53, Linux 71dda1cb10702dc2859f00eb789b0502de2176a9

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 98fdd2f612e949c652693f6df00442c81037776d; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 74953f93f47a45296cc2a3fd04e2a3202ff3fa53; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 71dda1cb10702dc2859f00eb789b0502de2176a9; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< fefc075182275057ce607effaa3daa9e6e3bdc73; Linux 6.5.

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

Yes. Fixed in Linux 98fdd2f612e949c652693f6df00442c81037776d, Linux 74953f93f47a45296cc2a3fd04e2a3202ff3fa53, Linux 71dda1cb10702dc2859f00eb789b0502de2176a9. No fix listed yet: follow the vendor advisory.

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

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/98fdd2f612e949c652693f6df00442c81037776d>
- patch: <https://git.kernel.org/stable/c/74953f93f47a45296cc2a3fd04e2a3202ff3fa53>
- patch: <https://git.kernel.org/stable/c/71dda1cb10702dc2859f00eb789b0502de2176a9>
- patch: <https://git.kernel.org/stable/c/fefc075182275057ce607effaa3daa9e6e3bdc73>

## 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-38008>

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