# CVE-2025-39903: of\_numa: fix uninitialized memory nodes causing kernel panic

> 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, CNA) `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.22% (percentile 7, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-10-01T07:42:50.215Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< c2daa6eb4740720b5bd0e06267d7c93a3eed844e; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< f3286ad8eeae15fd4bd5c12f9adfe888b26baf62; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< ee4d098cbc9160f573b5c1b5a51d6158efdb2896
- Anyone running Linux 6.12

## Description

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

of\_numa: fix uninitialized memory nodes causing kernel panic

When there are memory-only nodes (nodes without CPUs), these nodes are not
properly initialized, causing kernel panic during boot.

of\_numa\_init
	of\_numa\_parse\_cpu\_nodes
		node\_set(nid, numa\_nodes\_parsed);
	of\_numa\_parse\_memory\_nodes

In of\_numa\_parse\_cpu\_nodes, numa\_nodes\_parsed gets updated only for nodes
containing CPUs.  Memory-only nodes should have been updated in
of\_numa\_parse\_memory\_nodes, but they weren't.

Subsequently, when free\_area\_init() attempts to access NODE\_DATA() for
these uninitialized memory nodes, the kernel panics due to NULL pointer
dereference.

This can be reproduced on ARM64 QEMU with 1 CPU and 2 memory nodes:

qemu-system-aarch64 \\
-cpu host -nographic \\
-m 4G -smp 1 \\
-machine virt,accel=kvm,gic-version=3,iommu=smmuv3 \\
-object memory-backend-ram,size=2G,id=mem0 \\
-object memory-backend-ram,size=2G,id=mem1 \\
-numa node,nodeid=0,memdev=mem0 \\
-numa node,nodeid=1,memdev=mem1 \\
-kernel $IMAGE \\
-hda $DISK \\
-append "console=ttyAMA0 root=/dev/vda rw earlycon"

\[    0.000000\] Booting Linux on physical CPU 0x0000000000 \[0x481fd010\]
\[    0.000000\] Linux version 6.17.0-rc1-00001-gabb4b3daf18c-dirty (yintirui@local) (gcc (GCC) 12.3.1, GNU ld (GNU Binutils) 2.41) \#52 SMP PREEMPT Mon Aug 18 09:49:40 CST 2025
\[    0.000000\] KASLR enabled
\[    0.000000\] random: crng init done
\[    0.000000\] Machine model: linux,dummy-virt
\[    0.000000\] efi: UEFI not found.
\[    0.000000\] earlycon: pl11 at MMIO 0x0000000009000000 (options '')
\[    0.000000\] printk: legacy bootconsole \[pl11\] enabled
\[    0.000000\] OF: reserved mem: Reserved memory: No reserved-memory node in the DT
\[    0.000000\] NODE\_DATA(0) allocated \[mem 0xbfffd9c0-0xbfffffff\]
\[    0.000000\] node 1 must be removed before remove section 23
\[    0.000000\] Zone ranges:
\[    0.000000\]   DMA      \[mem 0x0000000040000000-0x00000000ffffffff\]
\[    0.000000\]   DMA32    empty
\[    0.000000\]   Normal   \[mem 0x0000000100000000-0x000000013fffffff\]
\[    0.000000\] Movable zone start for each node
\[    0.000000\] Early memory node ranges
\[    0.000000\]   node   0: \[mem 0x0000000040000000-0x00000000bfffffff\]
\[    0.000000\]   node   1: \[mem 0x00000000c0000000-0x000000013fffffff\]
\[    0.000000\] Initmem setup node 0 \[mem 0x0000000040000000-0x00000000bfffffff\]
\[    0.000000\] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0
\[    0.000000\] Mem abort info:
\[    0.000000\]   ESR = 0x0000000096000004
\[    0.000000\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[    0.000000\]   SET = 0, FnV = 0
\[    0.000000\]   EA = 0, S1PTW = 0
\[    0.000000\]   FSC = 0x04: level 0 translation fault
\[    0.000000\] Data abort info:
\[    0.000000\]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
\[    0.000000\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[    0.000000\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[    0.000000\] \[00000000000000a0\] user address but active\_mm is swapper
\[    0.000000\] Internal error: Oops: 0000000096000004 \[\#1\]  SMP
\[    0.000000\] Modules linked in:
\[    0.000000\] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 6.17.0-rc1-00001-g760c6dabf762-dirty \#54 PREEMPT
\[    0.000000\] Hardware name: linux,dummy-virt (DT)
\[    0.000000\] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[    0.000000\] pc : free\_area\_init+0x50c/0xf9c
\[    0.000000\] lr : free\_area\_init+0x5c0/0xf9c
\[    0.000000\] sp : ffffa02ca0f33c00
\[    0.000000\] x29: ffffa02ca0f33cb0 x28: 0000000000000000 x27: 0000000000000000
\[    0.000000\] x26: 4ec4ec4ec4ec4ec5 x25: 00000000000c0000 x24: 00000000000c0000
\[    0.000000\] x23: 0000000000040000 x22: 0000000000000000 x21: ffffa02ca0f3b368
\[    0.000000\] x20: ffffa02ca14c7b98 x19: 0000000000000000 x18: 0000000000000002
\[    0.000000\] x17: 000000000000cacc x16: 0000000000000001 x15: 0000000000000001
\[    0.000000\] x14: 0000000080000000 x13: 0000000000000018 x12: 0000000000000002
\[    0.0
---truncated---

## Affected and fixed versions

- Linux: \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< c2daa6eb4740720b5bd0e06267d7c93a3eed844e; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< f3286ad8eeae15fd4bd5c12f9adfe888b26baf62; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< ee4d098cbc9160f573b5c1b5a51d6158efdb2896 (cvelist)
- Linux: 6.12 (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-39903. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39903.md
Affected: Linux >= 767507654c22578ea0b51d181211b2e7714ea7cd, < c2daa6eb4740720b5bd0e06267d7c93a3eed844e; >= 767507654c22578ea0b51d181211b2e7714ea7cd, < f3286ad8eeae15fd4bd5c12f9adfe888b26baf62; >= 767507654c22578ea0b51d181211b2e7714ea7cd, < ee4d098cbc9160f573b5c1b5a51d6158efdb2896; Linux 6.12
Fixed in: no fixed version listed yet

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

There is no confirmed exploitation: CVE-2025-39903 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-28).

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

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

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

Linux \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< c2daa6eb4740720b5bd0e06267d7c93a3eed844e; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< f3286ad8eeae15fd4bd5c12f9adfe888b26baf62; \>= 767507654c22578ea0b51d181211b2e7714ea7cd, \< ee4d098cbc9160f573b5c1b5a51d6158efdb2896; Linux 6.12.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/c2daa6eb4740720b5bd0e06267d7c93a3eed844e>
- patch: <https://git.kernel.org/stable/c/f3286ad8eeae15fd4bd5c12f9adfe888b26baf62>
- patch: <https://git.kernel.org/stable/c/ee4d098cbc9160f573b5c1b5a51d6158efdb2896>

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

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