# CVE-2025-37922: book3s64/radix : Align section vmemmap start address to PAGE\_SIZE

> 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-20T15:21:51.062Z
- **Modified:** 2026-11-05T21:17:58.147Z

## Who should check

- Anyone running Linux \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9a8d4d7072d4df108479b1adc4b0840e96f6f61d; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 7f5476d80f2cb364701cd1fa138a14b241ca99e9; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 400be767deaf31a073c6d14c5d151ae5ac2a60e2; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9cf7e13fecbab0894f6986fc6986ab2eba8de52e
- Anyone running Linux 6.6

## Description

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

book3s64/radix : Align section vmemmap start address to PAGE\_SIZE

A vmemmap altmap is a device-provided region used to provide
backing storage for struct pages. For each namespace, the altmap
should belong to that same namespace. If the namespaces are
created unaligned, there is a chance that the section vmemmap
start address could also be unaligned. If the section vmemmap
start address is unaligned, the altmap page allocated from the
current namespace might be used by the previous namespace also.
During the free operation, since the altmap is shared between two
namespaces, the previous namespace may detect that the page does
not belong to its altmap and incorrectly assume that the page is a
normal page. It then attempts to free the normal page, which leads
to a kernel crash.

Kernel attempted to read user page (18) - exploit attempt? (uid: 0)
BUG: Kernel NULL pointer dereference on read at 0x00000018
Faulting instruction address: 0xc000000000530c7c
Oops: Kernel access of bad area, sig: 11 \[\#1\]
LE PAGE\_SIZE=64K MMU=Radix SMP NR\_CPUS=2048 NUMA pSeries
CPU: 32 PID: 2104 Comm: ndctl Kdump: loaded Tainted: G        W
NIP:  c000000000530c7c LR: c000000000530e00 CTR: 0000000000007ffe
REGS: c000000015e57040 TRAP: 0300   Tainted: G        W
MSR:  800000000280b033 \<SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE\>  CR: 84482404
CFAR: c000000000530dfc DAR: 0000000000000018 DSISR: 40000000 IRQMASK: 0
GPR00: c000000000530e00 c000000015e572e0 c000000002c5cb00 c00c000101008040
GPR04: 0000000000000000 0000000000000007 0000000000000001 000000000000001f
GPR08: 0000000000000005 0000000000000000 0000000000000018 0000000000002000
GPR12: c0000000001d2fb0 c0000060de6b0080 0000000000000000 c0000060dbf90020
GPR16: c00c000101008000 0000000000000001 0000000000000000 c000000125b20f00
GPR20: 0000000000000001 0000000000000000 ffffffffffffffff c00c000101007fff
GPR24: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
GPR28: 0000000004040201 0000000000000001 0000000000000000 c00c000101008040
NIP \[c000000000530c7c\] get\_pfnblock\_flags\_mask+0x7c/0xd0
LR \[c000000000530e00\] free\_unref\_page\_prepare+0x130/0x4f0
Call Trace:
free\_unref\_page+0x50/0x1e0
free\_reserved\_page+0x40/0x68
free\_vmemmap\_pages+0x98/0xe0
remove\_pte\_table+0x164/0x1e8
remove\_pmd\_table+0x204/0x2c8
remove\_pud\_table+0x1c4/0x288
remove\_pagetable+0x1c8/0x310
vmemmap\_free+0x24/0x50
section\_deactivate+0x28c/0x2a0
\_\_remove\_pages+0x84/0x110
arch\_remove\_memory+0x38/0x60
memunmap\_pages+0x18c/0x3d0
devm\_action\_release+0x30/0x50
release\_nodes+0x68/0x140
devres\_release\_group+0x100/0x190
dax\_pmem\_compat\_release+0x44/0x80 \[dax\_pmem\_compat\]
device\_for\_each\_child+0x8c/0x100
\[dax\_pmem\_compat\_remove+0x2c/0x50 \[dax\_pmem\_compat\]
nvdimm\_bus\_remove+0x78/0x140 \[libnvdimm\]
device\_remove+0x70/0xd0

Another issue is that if there is no altmap, a PMD-sized vmemmap
page will be allocated from RAM, regardless of the alignment of
the section start address. If the section start address is not
aligned to the PMD size, a VM\_BUG\_ON will be triggered when
setting the PMD-sized page to page table.

In this patch, we are aligning the section vmemmap start address
to PAGE\_SIZE. After alignment, the start address will not be
part of the current namespace, and a normal page will be allocated
for the vmemmap mapping of the current section. For the remaining
sections, altmaps will be allocated. During the free operation,
the normal page will be correctly freed.

In the same way, a PMD\_SIZE vmemmap page will be allocated only if
the section start address is PMD\_SIZE-aligned; otherwise, it will
fall back to a PAGE-sized vmemmap allocation.

Without this patch
==================
NS1 start               NS2 start
 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
\|         NS1               \|            NS2              \|
 ---------------------------------------------------------
\| Altmap\| Altmap \| .....\|Altmap\| Altmap \| ...........
\|  NS1  \|  NS1   
---truncated---

## Affected and fixed versions

- Linux: \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9a8d4d7072d4df108479b1adc4b0840e96f6f61d; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 7f5476d80f2cb364701cd1fa138a14b241ca99e9; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 400be767deaf31a073c6d14c5d151ae5ac2a60e2; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9cf7e13fecbab0894f6986fc6986ab2eba8de52e (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-37922.md
Affected: Linux >= 368a0590d954a659b16ab945328ada0cc10f93a0, < 9a8d4d7072d4df108479b1adc4b0840e96f6f61d; >= 368a0590d954a659b16ab945328ada0cc10f93a0, < 7f5476d80f2cb364701cd1fa138a14b241ca99e9; >= 368a0590d954a659b16ab945328ada0cc10f93a0, < 400be767deaf31a073c6d14c5d151ae5ac2a60e2; >= 368a0590d954a659b16ab94…
Fixed in: Linux 9a8d4d7072d4df108479b1adc4b0840e96f6f61d, Linux 7f5476d80f2cb364701cd1fa138a14b241ca99e9, Linux 400be767deaf31a073c6d14c5d151ae5ac2a60e2, Linux 9cf7e13fecbab0894f6986fc6986ab2eba8de52e

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

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

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

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

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

Linux \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9a8d4d7072d4df108479b1adc4b0840e96f6f61d; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 7f5476d80f2cb364701cd1fa138a14b241ca99e9; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 400be767deaf31a073c6d14c5d151ae5ac2a60e2; \>= 368a0590d954a659b16ab945328ada0cc10f93a0, \< 9cf7e13fecbab0894f6986fc6986ab2eba8de52e; Linux 6.6.

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

Yes. Fixed in Linux 9a8d4d7072d4df108479b1adc4b0840e96f6f61d, Linux 7f5476d80f2cb364701cd1fa138a14b241ca99e9, Linux 400be767deaf31a073c6d14c5d151ae5ac2a60e2, Linux 9cf7e13fecbab0894f6986fc6986ab2eba8de52e. Upgrade Linux to 9cf7e13fecbab0894f6986fc6986ab2eba8de52e or later.

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

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/9a8d4d7072d4df108479b1adc4b0840e96f6f61d>
- patch: <https://git.kernel.org/stable/c/7f5476d80f2cb364701cd1fa138a14b241ca99e9>
- patch: <https://git.kernel.org/stable/c/400be767deaf31a073c6d14c5d151ae5ac2a60e2>
- patch: <https://git.kernel.org/stable/c/9cf7e13fecbab0894f6986fc6986ab2eba8de52e>

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

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