{"id":"CVE-2026-64180","state":"PUBLISHED","title":"mm/memory_hotplug: fix memory block reference leak on remove","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memory_hotplug: fix memory block reference leak on remove\n\nPatch series \"mm: Fix memory block leaks and locking\", v2.\n\nThis series fixes two memory block device reference leaks and one locking\nissue around the per-memory_block hwpoison counter.\n\n\nThis patch (of 2):\n\nremove_memory_blocks_and_altmaps() looks up each memory block with\nfind_memory_block(), which acquires a reference to the memory block\ndevice.\n\nThat reference is never dropped on this path, resulting in a leaked device\nreference when removing memory blocks and their altmaps.  Drop the\nreference after retrieving mem->altmap and clearing mem->altmap, before\nremoving the memory block device.","publishedAt":"2026-07-19T15:41:03.751Z","updatedAt":"2026-07-19T15:41:03.751Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"b8ab30c79fc00147125b9c39f928561d9dd13d06","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"09ce923071e7852ece60d7368e05249bf32c7967","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"df64c0d21c3f85f844b2f656333e43d97e6ffa74","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"93866f55f7e292fe3d47d36c9efe5ee10213a06b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memory_hotplug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memory_hotplug.c"]}],"references":["https://git.kernel.org/stable/c/b8ab30c79fc00147125b9c39f928561d9dd13d06","https://git.kernel.org/stable/c/09ce923071e7852ece60d7368e05249bf32c7967","https://git.kernel.org/stable/c/df64c0d21c3f85f844b2f656333e43d97e6ffa74","https://git.kernel.org/stable/c/93866f55f7e292fe3d47d36c9efe5ee10213a06b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64180.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64180","state":"PUBLISHED","datePublished":"2026-07-19T15:41:03.751Z","dateUpdated":"2026-07-19T15:41:03.751Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.039Z"},"containers":{"cna":{"title":"mm/memory_hotplug: fix memory block reference leak on remove","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memory_hotplug: fix memory block reference leak on remove\n\nPatch series \"mm: Fix memory block leaks and locking\", v2.\n\nThis series fixes two memory block device reference leaks and one locking\nissue around the per-memory_block hwpoison counter.\n\n\nThis patch (of 2):\n\nremove_memory_blocks_and_altmaps() looks up each memory block with\nfind_memory_block(), which acquires a reference to the memory block\ndevice.\n\nThat reference is never dropped on this path, resulting in a leaked device\nreference when removing memory blocks and their altmaps.  Drop the\nreference after retrieving mem->altmap and clearing mem->altmap, before\nremoving the memory block device."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"b8ab30c79fc00147125b9c39f928561d9dd13d06","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"09ce923071e7852ece60d7368e05249bf32c7967","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"df64c0d21c3f85f844b2f656333e43d97e6ffa74","versionType":"git"},{"version":"6b8f0798b85aa529011570369db985a788f3003f","status":"affected","lessThan":"93866f55f7e292fe3d47d36c9efe5ee10213a06b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memory_hotplug.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memory_hotplug.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b8ab30c79fc00147125b9c39f928561d9dd13d06"},{"url":"https://git.kernel.org/stable/c/09ce923071e7852ece60d7368e05249bf32c7967"},{"url":"https://git.kernel.org/stable/c/df64c0d21c3f85f844b2f656333e43d97e6ffa74"},{"url":"https://git.kernel.org/stable/c/93866f55f7e292fe3d47d36c9efe5ee10213a06b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-07-19T15:41:03.751Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.92"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}