drivers/base/memory: set mem->altmap after successful device registration

Summary

CVECVE-2026-64244
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-24 16:16:53 UTC
Updated2026-07-24 16:16:53 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: drivers/base/memory: set mem->altmap after successful device registration If __add_memory_block() fails at xa_store() (under memory pressure for example), device_unregister() is called, which eventually triggers memory_block_release() with mem->altmap still set, causing a WARN_ON(mem->altmap). This was triggered by modifying virtio-mem driver. Fix this by delaying the assignment of mem->altmap until after __add_memory_block() has succeeded.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 802e113cf120df7208e4c7e604950a85e87120a8 git Not specified
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 22dc0d042f02ce82aa61422ea5f232628bfd9e9c git Not specified
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 6c25bf4e44a2b6a14332f952bba0974521f5b72d git Not specified
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 bc3dd82a0ffd488bb902f4c69c3d28fd4088d973 git Not specified
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 059ac6252a63edf1cea79bf30bd860a8c264b62c git Not specified
CNA Linux Linux affected 1a8c64e110435e44e71bcd50a75663174b575f22 a2b8d7827f48ee54a686cb80e4a1d0ff954ec42a git Not specified
CNA Linux Linux affected 6.6 Not specified
CNA Linux Linux unaffected 6.6 semver Not specified
CNA Linux Linux unaffected 6.6.144 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.95 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.37 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.14 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1.2 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/6c25bf4e44a2b6a14332f952bba0974521f5b72d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a2b8d7827f48ee54a686cb80e4a1d0ff954ec42a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/802e113cf120df7208e4c7e604950a85e87120a8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bc3dd82a0ffd488bb902f4c69c3d28fd4088d973 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/22dc0d042f02ce82aa61422ea5f232628bfd9e9c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/059ac6252a63edf1cea79bf30bd860a8c264b62c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report