CVE-2025-40144

Source
https://cve.org/CVERecord?id=CVE-2025-40144
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40144.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40144
Downstream
Published
2025-11-12T10:23:25.746Z
Modified
2026-04-10T05:26:18.060637Z
Summary
nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()
Details

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

nvdimm: ndtest: Return -ENOMEM if devmkcalloc() fails in ndtestprobe()

devmkcalloc() may fail. ndtestprobe() allocates three DMA address arrays (dcrdma, labeldma, dimmdma) and later unconditionally uses them in ndtestnvdimm_init(), which can lead to a NULL pointer dereference under low-memory conditions.

Check all three allocations and return -ENOMEM if any allocation fails, jumping to the common error path. Do not emit an extra error message since the allocator already warns on allocation failure.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
972cbba5cd384bacdc2eb589776e1d0a9f42714f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
bc8b56317ff83ef4bba89bda356b93978604694f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
b808a3590c2884ca91316dbadbfcc1924f5893c7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
e4a1e3e88160f7d7a2c33e3db8844073ed6eaf97
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
8aea9d512c65eed0dad98b8d65ce74fe77c01b34
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9399ab61ad82154911563dd8635c585e3f24b16a
Fixed
a9e6aa994917ee602798bbb03180a194b37865bb

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40144.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40144.json"