CVE-2026-99644: mm/memory-tiers: unregister empty tiers outside memory_tier_lock

Published Nov 20, 2026

In the Linux kernel, the following vulnerability has been resolved:

mm/memory-tiers: unregister empty tiers outside memorytierlock

When offlining a node's last memory empties its tier, clearnodememorytier() calls deviceunregister() while holding memorytierlock. A concurrent sysfs read can hold a kernfs active reference and block in nodelistshow() on that mutex. deviceunregister() then waits in kernfsdrain() 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 clearnodememorytier(), making the helper more similar to setnodememorytier(), which also returns a memorytier pointer. Let the caller unlink an empty tier under memorytierlock before rebuilding demotion targets, then unregister its device after dropping the lock.

Frequently Asked Questions

1

What conditions are required to trigger the deadlock?

A node must be offlined such that its last memory removal empties the node's memory tier. At the same time, a sysfs read must hold a kernfs active reference and block in nodelist_show() waiting for memory_tier_lock.

2

What is the impact of a successful trigger?

The node-offlining task can deadlock while unregistering the tier device. device_unregister() waits in kernfs_drain() for the sysfs read to release its active reference, while that reader is waiting for the offlining task to release memory_tier_lock.

3

Is a sysfs reader alone sufficient to cause the issue?

No. The problematic lock cycle requires both the concurrent sysfs read and offlining of a node whose last memory removal leaves its tier empty.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203