CVE-2026-98788: futex: Fix private hash use-after-free on resize

Published Oct 18, 2026
·
Updated

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

futex: Fix private hash use-after-free on resize

pollstatesynchronizercu(mm->futex.phash.batches) is used by futexrefdrop() to check that a grace period has passed since the current hash was published. This relies on batches referencing a grace period which started after the hash pointer was assigned.

futexpivothash() sets mmph->batches before it replaces mmph->hash:

scopedguard(rcu) { mmph->batches = getstatesynchronizercu(); rcuassignpointer(mmph->hash, new); }

The scopedguard(rcu) doesn't stop new grace periods from starting, and if one starts between those two assignments, futexrefdrop() can move forward while a reader still holds a pointer to the old hash.

Fix things by setting mmph->batches after assigning mmph->hash. The scopedguard(rcu) isn't needed, so let's drop that as well.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel futex hash resize implementation, assign the new hash with rcu_assign_pointer(mmph->hash, new) before setting mmph->batches = get_state_synchronize_rcu(); use poll_state_synchronize_rcu(mm->futex.phash.batches) in futex_ref_drop(), and remove the unnecessary scoped_guard(rcu).

Event History

Oct 18, 2026
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
Description
Data Sourced
via NVD·04:17 PM
Description

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