{"id":"CVE-2025-40144","summary":"nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe()\n\ndevm_kcalloc() may fail. ndtest_probe() allocates three DMA address\narrays (dcr_dma, label_dma, dimm_dma) and later unconditionally uses\nthem in ndtest_nvdimm_init(), which can lead to a NULL pointer\ndereference under low-memory conditions.\n\nCheck all three allocations and return -ENOMEM if any allocation fails,\njumping to the common error path. Do not emit an extra error message\nsince the allocator already warns on allocation failure.","modified":"2026-04-10T05:26:18.060637Z","published":"2025-11-12T10:23:25.746Z","references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8aea9d512c65eed0dad98b8d65ce74fe77c01b34"},{"type":"WEB","url":"https://git.kernel.org/stable/c/972cbba5cd384bacdc2eb589776e1d0a9f42714f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9e6aa994917ee602798bbb03180a194b37865bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b808a3590c2884ca91316dbadbfcc1924f5893c7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc8b56317ff83ef4bba89bda356b93978604694f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e4a1e3e88160f7d7a2c33e3db8844073ed6eaf97"}],"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}