CVE-2026-99644: mm/memory-tiers: unregister empty tiers outside memory_tier_lock
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/memory-tiers: unregister empty tiers outside memory_tier_lock
When offlining a node's last memory empties its tier, clear_node_memory_tier() calls device_unregister() while holding memory_tier_lock. A concurrent sysfs read can hold a kernfs active reference and block in nodelist_show() on that mutex. device_unregister() then waits in kernfs_drain() for the read to finish and release its active reference, while the reader waits for the offlining task to release the mutex.
Return the node's former tier from clear_node_memory_tier(), making the helper more similar to set_node_memory_tier(), which also returns a memory_tier pointer. Let the caller unlink an empty tier under memory_tier_lock before rebuilding demotion targets, then unregister its device after dropping the lock.
The Linux kernel CVE team has assigned CVE-2026-99644 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit 9832fb87834e2bd925d30020962c81b05948fa7b and fixed in 6.18.64 with commit d2e234d06d77fdaf8a7c1c2fd4effac861b8c9ec Issue introduced in 6.1 with commit 9832fb87834e2bd925d30020962c81b05948fa7b and fixed in 7.3.5 with commit c6b97a2688e01a6bd323a7d7db1566e7bbc0b424 Issue introduced in 6.1 with commit 9832fb87834e2bd925d30020962c81b05948fa7b and fixed in 7.4-rc2 with commit 500624f28eca441e35f978979ccfb373202fefd3
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99644
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
mm/memory-tiers.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d2e234d06d77fdaf8a7c1c2fd4effac861b8c9ec https://git.kernel.org/stable/c/c6b97a2688e01a6bd323a7d7db1566e7bbc0b424 https://git.kernel.org/stable/c/500624f28eca441e35f978979ccfb373202fefd3