CVE-2026-90003

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> futex: Prevent rcuwait use-after-free during requeue PI<br /> <br /> On PREEMPT_RT, FUTEX_CMP_REQUEUE_PI can trigger a KASAN report<br /> (slab-out-of-bounds) in futex_requeue_pi_complete() invocation of<br /> rcuwait_wake_up().<br /> <br /> The futex_q used by futex_wait_requeue_pi() is allocated on the waiter&amp;#39;s<br /> stack. An early wakeup can race with a PI requeue as follows:<br /> <br /> waiter requeue task<br /> ------ ------------<br /> futex_wait_requeue_pi()<br /> futex_do_wait()<br /> schedule()<br /> futex_requeue<br /> futex_proxy_trylock_atomic()<br /> futex_requeue_pi_prepare()<br /> Q_REQUEUE_PI_NONE -&gt; Q_REQUEUE_PI_IN_PROGRESS<br /> * timeout/ signal wakes waiter *<br /> futex_requeue_pi_wakeup_sync()<br /> Q_REQUEUE_PI_IN_PROGRESS -&gt; Q_REQUEUE_PI_WAIT<br /> requeue_pi_wake_futex<br /> futex_requeue_pi_complete()<br /> cmpxchg Q_REQUEUE_PI_WAIT -&gt; Q_REQUEUE_PI_LOCKED<br /> rcuwait_wait_event()<br /> if (atomic_read(&amp;q-&gt;requeue_state) != Q_REQUEUE_PI_WAIT)<br /> break /* no schedule() */<br /> <br /> /* q.pi_state-&gt;owner == current */<br /> futex_private_hash_put()<br /> /* return from syscall */<br /> rcuwait_wake_up(&amp;q-&gt;requeue_wait)<br /> /* q is gone */<br /> <br /> futex_requeue_pi_complete() publishes Q_REQUEUE_PI_LOCKED before<br /> calling rcuwait_wake_up(). The waiter observes this state in<br /> rcuwait_wait_event() before invoking schedule() in rcuwait_wait_event().<br /> Here, the waiter is free leave the syscall before requeue task can<br /> complete the wake.<br /> <br /> To address this race skip rcuwait_wake_up() in the Q_REQUEUE_PI_LOCKED<br /> case.<br /> This state is only published by requeue_pi_wake_futex(), which saves<br /> q-&gt;task before futex_requeue_pi_complete() and wakes the waiter via<br /> wake_up_state().<br /> <br /> This wake is intended to wake the waiter from its futex_do_wait() sleep.<br /> If the waiter is still sleeping there, it can not get into the<br /> Q_REQUEUE_PI_WAIT state (and require this removed wake).<br /> Should the waiter be woken up from futex_do_wait() by other means (as in<br /> this example) and sleep in futex_requeue_pi_wakeup_sync() then the<br /> wake_up_state() from requeue_pi_wake_futex() will wake it, too.<br /> Should the waiter task terminate before wake_up_state() had a chance to<br /> wake the task then the task pointer does not become invalid because the<br /> futex_hash_bucket::lock is held and the task pointer is RCU protected.<br /> <br /> [bigeasy: Updated comment and commit message]