CVE-2025-40144

kernel: nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()

Published Nov 12, 2025 CVSS 3.1 · 5.5 Medium EPSS n/a KEV · Not listed
Description
This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

Analysis

This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe() devm_kcalloc() may fail. ndtest_probe() allocates three DMA address arrays (dcr_dma, label_dma, dimm_dma) and later unconditionally uses them in ndtest_nvdimm_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. This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.
Title nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe() kernel: nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux
Linux linux Kernel
Vendors & Products Linux
Linux linux Kernel
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe() devm_kcalloc() may fail. ndtest_probe() allocates three DMA address arrays (dcr_dma, label_dma, dimm_dma) and later unconditionally uses them in ndtest_nvdimm_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.
Title nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()
References
Weaknesses

No weakness.

Sources

Status
REJECTED
Assigner
Linux
Published
Updated
Nov 21, 2025, 8:02 AM
Reserved
Apr 16, 2025, 7:20 AM
Status
Rejected
Published
Nov 12, 2025, 11:15 AM
Modified
Oct 16, 2026, 2:10 PM
Severity
Moderate
Public date
Nov 12, 2025, 12:00 AM