CVE-2026-64244

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

State
Published
Severity
Not scored
Published
Jul 24, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

In 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before 802e113cf120df7208e4c7e604950a85e87120a8Affected
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before 22dc0d042f02ce82aa61422ea5f232628bfd9e9cAffected
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before 6c25bf4e44a2b6a14332f952bba0974521f5b72dAffected
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before bc3dd82a0ffd488bb902f4c69c3d28fd4088d973Affected
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before 059ac6252a63edf1cea79bf30bd860a8c264b62cAffected
  • 1a8c64e110435e44e71bcd50a75663174b575f22 to before a2b8d7827f48ee54a686cb80e4a1d0ff954ec42aAffected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.144 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.37 through 6.18.*Not affected
  • 7.0.14 through 7.0.*Not affected
  • 7.1.2 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.