# CVE-2025-39843: mm: slub: avoid wake up kswapd in set\_track\_prepare

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-09-19T15:26:17.758Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 994b03b9605d36d814c611385fbf90ca6db20aa8; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 522ffe298627cfe72539d72167c2e20e72b5e856; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 243b705a90ed8449f561a271cf251fd2e939f3db; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< eb3240ffd243bfb8b1e9dc568d484ecf9fd660ab; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f
- Anyone running Linux 5.19

## Description

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

mm: slub: avoid wake up kswapd in set\_track\_prepare

set\_track\_prepare() can incur lock recursion.
The issue is that it is called from hrtimer\_start\_range\_ns
holding the per\_cpu(hrtimer\_bases)\[n\].lock, but when enabled
CONFIG\_DEBUG\_OBJECTS\_TIMERS, may wake up kswapd in set\_track\_prepare,
and try to hold the per\_cpu(hrtimer\_bases)\[n\].lock.

Avoid deadlock caused by implicitly waking up kswapd by passing in
allocation flags, which do not contain \_\_GFP\_KSWAPD\_RECLAIM in the
debug\_objects\_fill\_pool() case. Inside stack depot they are processed by
gfp\_nested\_mask().
Since \_\_\_slab\_alloc() has preemption disabled, we mask out
\_\_GFP\_DIRECT\_RECLAIM from the flags there.

The oops looks something like:

BUG: spinlock recursion on CPU\#3, swapper/3/0
 lock: 0xffffff8a4bf29c80, .magic: dead4ead, .owner: swapper/3/0, .owner\_cpu: 3
Hardware name: Qualcomm Technologies, Inc. Popsicle based on SM8850 (DT)
Call trace:
spin\_bug+0x0
\_raw\_spin\_lock\_irqsave+0x80
hrtimer\_try\_to\_cancel+0x94
task\_contending+0x10c
enqueue\_dl\_entity+0x2a4
dl\_server\_start+0x74
enqueue\_task\_fair+0x568
enqueue\_task+0xac
do\_activate\_task+0x14c
ttwu\_do\_activate+0xcc
try\_to\_wake\_up+0x6c8
default\_wake\_function+0x20
autoremove\_wake\_function+0x1c
\_\_wake\_up+0xac
wakeup\_kswapd+0x19c
wake\_all\_kswapds+0x78
\_\_alloc\_pages\_slowpath+0x1ac
\_\_alloc\_pages\_noprof+0x298
stack\_depot\_save\_flags+0x6b0
stack\_depot\_save+0x14
set\_track\_prepare+0x5c
\_\_\_slab\_alloc+0xccc
\_\_kmalloc\_cache\_noprof+0x470
\_\_set\_page\_owner+0x2bc
post\_alloc\_hook\[jt\]+0x1b8
prep\_new\_page+0x28
get\_page\_from\_freelist+0x1edc
\_\_alloc\_pages\_noprof+0x13c
alloc\_slab\_page+0x244
allocate\_slab+0x7c
\_\_\_slab\_alloc+0x8e8
kmem\_cache\_alloc\_noprof+0x450
debug\_objects\_fill\_pool+0x22c
debug\_object\_activate+0x40
enqueue\_hrtimer\[jt\]+0xdc
hrtimer\_start\_range\_ns+0x5f8
...

## Affected and fixed versions

- Linux: \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 994b03b9605d36d814c611385fbf90ca6db20aa8; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 522ffe298627cfe72539d72167c2e20e72b5e856; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 243b705a90ed8449f561a271cf251fd2e939f3db; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< eb3240ffd243bfb8b1e9dc568d484ecf9fd660ab; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f 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-39843. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39843.md
Affected: Linux >= 5cf909c553e9efed573811de4b3f5172898d5515, < 994b03b9605d36d814c611385fbf90ca6db20aa8; >= 5cf909c553e9efed573811de4b3f5172898d5515, < 522ffe298627cfe72539d72167c2e20e72b5e856; >= 5cf909c553e9efed573811de4b3f5172898d5515, < 243b705a90ed8449f561a271cf251fd2e939f3db; >= 5cf909c553e9efed573811d…
Fixed in: Linux 994b03b9605d36d814c611385fbf90ca6db20aa8, Linux 522ffe298627cfe72539d72167c2e20e72b5e856, Linux 243b705a90ed8449f561a271cf251fd2e939f3db, Linux 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 994b03b9605d36d814c611385fbf90ca6db20aa8; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 522ffe298627cfe72539d72167c2e20e72b5e856; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 243b705a90ed8449f561a271cf251fd2e939f3db; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< eb3240ffd243bfb8b1e9dc568d484ecf9fd660ab; \>= 5cf909c553e9efed573811de4b3f5172898d5515, \< 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f; Linux 5.19.

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

Yes. Fixed in Linux 994b03b9605d36d814c611385fbf90ca6db20aa8, Linux 522ffe298627cfe72539d72167c2e20e72b5e856, Linux 243b705a90ed8449f561a271cf251fd2e939f3db, Linux 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f. Upgrade Linux to 850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f or later.

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

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/994b03b9605d36d814c611385fbf90ca6db20aa8>
- patch: <https://git.kernel.org/stable/c/522ffe298627cfe72539d72167c2e20e72b5e856>
- patch: <https://git.kernel.org/stable/c/243b705a90ed8449f561a271cf251fd2e939f3db>
- patch: <https://git.kernel.org/stable/c/eb3240ffd243bfb8b1e9dc568d484ecf9fd660ab>
- patch: <https://git.kernel.org/stable/c/850470a8413a8a78e772c4f6bd9fe81ec6bd5b0f>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.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-39843>

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