{"id":"CVE-2026-74379","summary":"dax/kmem: account for partial discontiguous resource upon removal","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndax/kmem: account for partial discontiguous resource upon removal\n\nWhen dev_dax_kmem_probe() partially succeeds (at least one range is\nmapped) but a subsequent range fails request_mem_region() or\nadd_memory_driver_managed(), the probe silently continues, ultimately\nreturning success, but with the corresponding range resource NULL'ed out.\n\ndev_dax_kmem_remove() iterates over all dax_device ranges regardless of if\nthe underlying resource exists.  When remove_memory() is called later, it\nreturns 0 because the memory was never added which causes\ndev_dax_kmem_remove() to incorrectly assume the (nonexistent) resource can\nbe removed and attempts cleanup on a NULL pointer.\n\nFix this by skipping these ranges altogether, noting that these cases are\nconsidered success, such that the cleanup is still reached when all\nactually-added ranges are successfully removed.","modified":"2026-08-18T03:30:59.003403557Z","published":"2026-08-15T05:58:57.024Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74379.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/30ea97affbcce236c57287c82dc6ef7a29c63b76"},{"type":"WEB","url":"https://git.kernel.org/stable/c/598ed7393a639c7547b28ff3e14db9f1ac37c132"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d3139abb9d1671fa5e42c3d6d8cb3b05479c5bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/799e54c510a03a65a57627018a817838d72f35bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8aa442cfce79e2d69e72fc8e0c0864ac2971149d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d47b0b8a69a13e06afafa54723f3e8c99b0c788f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef4fc53898bd6c4d0119cc6d419ebef7f2560f31"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74379.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74379"},{"type":"PACKAGE","url":"https://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":"60e93dc097f7f13a16a7e4b75b8803eb2adbb721"},{"fixed":"ef4fc53898bd6c4d0119cc6d419ebef7f2560f31"},{"fixed":"5d3139abb9d1671fa5e42c3d6d8cb3b05479c5bb"},{"fixed":"d47b0b8a69a13e06afafa54723f3e8c99b0c788f"},{"fixed":"799e54c510a03a65a57627018a817838d72f35bd"},{"fixed":"598ed7393a639c7547b28ff3e14db9f1ac37c132"},{"fixed":"30ea97affbcce236c57287c82dc6ef7a29c63b76"},{"fixed":"8aa442cfce79e2d69e72fc8e0c0864ac2971149d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74379.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74379.json"}}],"schema_version":"1.9.0"}