# CVE-2026-23025: mm/page\_alloc: prevent pcp corruption with SMP=n

> 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, NVD) `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 7, 2026-11-26)
- **Published:** 2026-01-31T11:42:04.426Z
- **Modified:** 2026-11-05T22:18:00.740Z

## Who should check

- Anyone running Linux \>= d1da921452b3ee7e07383c12955ab1c6f3b08752, \< 68688fc4eab007834b4c2d740214423ba2a335a8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 4a04ff9cd816e7346fcc8126f00ed80481f6569d; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< df63d31e9ae02e2f6cd96147779e4ed7cd0e75f6; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 3098f8f7c7b0686c74827aec42a2c45e69801ff8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 038a102535eb49e10e93eafac54352fcc5d78847; \>= 6.1.57, \< 6.1.162
- Anyone running Linux 6.2

## Description

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

mm/page\_alloc: prevent pcp corruption with SMP=n

The kernel test robot has reported:

 BUG: spinlock trylock failure on UP on CPU\#0, kcompactd0/28
  lock: 0xffff888807e35ef0, .magic: dead4ead, .owner: kcompactd0/28, .owner\_cpu: 0
 CPU: 0 UID: 0 PID: 28 Comm: kcompactd0 Not tainted 6.18.0-rc5-00127-ga06157804399 \#1 PREEMPT  8cc09ef94dcec767faa911515ce9e609c45db470
 Call Trace:
  \<IRQ\>
  \_\_dump\_stack (lib/dump\_stack.c:95)
  dump\_stack\_lvl (lib/dump\_stack.c:123)
  dump\_stack (lib/dump\_stack.c:130)
  spin\_dump (kernel/locking/spinlock\_debug.c:71)
  do\_raw\_spin\_trylock (kernel/locking/spinlock\_debug.c:?)
  \_raw\_spin\_trylock (include/linux/spinlock\_api\_smp.h:89 kernel/locking/spinlock.c:138)
  \_\_free\_frozen\_pages (mm/page\_alloc.c:2973)
  \_\_\_free\_pages (mm/page\_alloc.c:5295)
  \_\_free\_pages (mm/page\_alloc.c:5334)
  tlb\_remove\_table\_rcu (include/linux/mm.h:? include/linux/mm.h:3122 include/asm-generic/tlb.h:220 mm/mmu\_gather.c:227 mm/mmu\_gather.c:290)
  ? \_\_cfi\_tlb\_remove\_table\_rcu (mm/mmu\_gather.c:289)
  ? rcu\_core (kernel/rcu/tree.c:?)
  rcu\_core (include/linux/rcupdate.h:341 kernel/rcu/tree.c:2607 kernel/rcu/tree.c:2861)
  rcu\_core\_si (kernel/rcu/tree.c:2879)
  handle\_softirqs (arch/x86/include/asm/jump\_label.h:36 include/trace/events/irq.h:142 kernel/softirq.c:623)
  \_\_irq\_exit\_rcu (arch/x86/include/asm/jump\_label.h:36 kernel/softirq.c:725)
  irq\_exit\_rcu (kernel/softirq.c:741)
  sysvec\_apic\_timer\_interrupt (arch/x86/kernel/apic/apic.c:1052)
  \</IRQ\>
  \<TASK\>
 RIP: 0010:\_raw\_spin\_unlock\_irqrestore (arch/x86/include/asm/preempt.h:95 include/linux/spinlock\_api\_smp.h:152 kernel/locking/spinlock.c:194)
  free\_pcppages\_bulk (mm/page\_alloc.c:1494)
  drain\_pages\_zone (include/linux/spinlock.h:391 mm/page\_alloc.c:2632)
  \_\_drain\_all\_pages (mm/page\_alloc.c:2731)
  drain\_all\_pages (mm/page\_alloc.c:2747)
  kcompactd (mm/compaction.c:3115)
  kthread (kernel/kthread.c:465)
  ? \_\_cfi\_kcompactd (mm/compaction.c:3166)
  ? \_\_cfi\_kthread (kernel/kthread.c:412)
  ret\_from\_fork (arch/x86/kernel/process.c:164)
  ? \_\_cfi\_kthread (kernel/kthread.c:412)
  ret\_from\_fork\_asm (arch/x86/entry/entry\_64.S:255)
  \</TASK\>

Matthew has analyzed the report and identified that in drain\_page\_zone()
we are in a section protected by spin\_lock(&pcp-\>lock) and then get an
interrupt that attempts spin\_trylock() on the same lock.  The code is
designed to work this way without disabling IRQs and occasionally fail the
trylock with a fallback.  However, the SMP=n spinlock implementation
assumes spin\_trylock() will always succeed, and thus it's normally a
no-op.  Here the enabled lock debugging catches the problem, but otherwise
it could cause a corruption of the pcp structure.

The problem has been introduced by commit 574907741599 ("mm/page\_alloc:
leave IRQs enabled for per-cpu page allocations").  The pcp locking scheme
recognizes the need for disabling IRQs to prevent nesting spin\_trylock()
sections on SMP=n, but the need to prevent the nesting in spin\_lock() has
not been recognized.  Fix it by introducing local wrappers that change the
spin\_lock() to spin\_lock\_iqsave() with SMP=n and use them in all places
that do spin\_lock(&pcp-\>lock).

\[vbabka@suse.cz: add pcp\_ prefix to the spin\_lock\_irqsave wrappers, per Steven\]

## Affected and fixed versions

- Linux: \>= d1da921452b3ee7e07383c12955ab1c6f3b08752, \< 68688fc4eab007834b4c2d740214423ba2a335a8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 4a04ff9cd816e7346fcc8126f00ed80481f6569d; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< df63d31e9ae02e2f6cd96147779e4ed7cd0e75f6; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 3098f8f7c7b0686c74827aec42a2c45e69801ff8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 038a102535eb49e10e93eafac54352fcc5d78847; \>= 6.1.57, \< 6.1.162 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.162 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23025.md
Affected: Linux >= d1da921452b3ee7e07383c12955ab1c6f3b08752, < 68688fc4eab007834b4c2d740214423ba2a335a8; >= 5749077415994eb02d660b2559b9d8278521e73d, < 4a04ff9cd816e7346fcc8126f00ed80481f6569d; >= 5749077415994eb02d660b2559b9d8278521e73d, < df63d31e9ae02e2f6cd96147779e4ed7cd0e75f6; >= 5749077415994eb02d660b2…
Fixed in: Linux 68688fc4eab007834b4c2d740214423ba2a335a8, Linux 4a04ff9cd816e7346fcc8126f00ed80481f6569d, Linux 3098f8f7c7b0686c74827aec42a2c45e69801ff8, Linux 038a102535eb49e10e93eafac54352fcc5d78847, Linux 6.1.162

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-2026-23025 being exploited?

There is no confirmed exploitation: CVE-2026-23025 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-26).

### How serious is CVE-2026-23025?

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

### Which versions are affected by CVE-2026-23025?

Linux \>= d1da921452b3ee7e07383c12955ab1c6f3b08752, \< 68688fc4eab007834b4c2d740214423ba2a335a8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 4a04ff9cd816e7346fcc8126f00ed80481f6569d; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< df63d31e9ae02e2f6cd96147779e4ed7cd0e75f6; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 3098f8f7c7b0686c74827aec42a2c45e69801ff8; \>= 5749077415994eb02d660b2559b9d8278521e73d, \< 038a102535eb49e10e93eafac54352fcc5d78847; \>= 6.1.57, \< 6.1.162; Linux 6.2.

### Is there a fix for CVE-2026-23025?

Yes. Fixed in Linux 68688fc4eab007834b4c2d740214423ba2a335a8, Linux 4a04ff9cd816e7346fcc8126f00ed80481f6569d, Linux 3098f8f7c7b0686c74827aec42a2c45e69801ff8, Linux 038a102535eb49e10e93eafac54352fcc5d78847, Linux 6.1.162. Upgrade Linux to 6.1.162 or later.

### How do I check if I'm affected by CVE-2026-23025?

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/68688fc4eab007834b4c2d740214423ba2a335a8>
- patch: <https://git.kernel.org/stable/c/4a04ff9cd816e7346fcc8126f00ed80481f6569d>
- patch: <https://git.kernel.org/stable/c/df63d31e9ae02e2f6cd96147779e4ed7cd0e75f6>
- patch: <https://git.kernel.org/stable/c/3098f8f7c7b0686c74827aec42a2c45e69801ff8>
- patch: <https://git.kernel.org/stable/c/038a102535eb49e10e93eafac54352fcc5d78847>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.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-2026-23025>

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