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&#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 -> Q_REQUEUE_PI_IN_PROGRESS<br />
* timeout/ signal wakes waiter *<br />
futex_requeue_pi_wakeup_sync()<br />
Q_REQUEUE_PI_IN_PROGRESS -> Q_REQUEUE_PI_WAIT<br />
requeue_pi_wake_futex<br />
futex_requeue_pi_complete()<br />
cmpxchg Q_REQUEUE_PI_WAIT -> Q_REQUEUE_PI_LOCKED<br />
rcuwait_wait_event()<br />
if (atomic_read(&q->requeue_state) != Q_REQUEUE_PI_WAIT)<br />
break /* no schedule() */<br />
<br />
/* q.pi_state->owner == current */<br />
futex_private_hash_put()<br />
/* return from syscall */<br />
rcuwait_wake_up(&q->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->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]
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/220ee9e04ca3b7f014c000264aa6c884f036c86e
- https://git.kernel.org/stable/c/244f301759fd34b1dd0b4192ce44f8ef224e027d
- https://git.kernel.org/stable/c/7d1559126d86be6e4f6a85663dfbfe85caa47e37
- https://git.kernel.org/stable/c/81aadbd09bf1dcd3238212f336ba699503557ae8
- https://git.kernel.org/stable/c/a3b8d46fe401cba3a5c46dea610e6eb3dc15370e
- https://git.kernel.org/stable/c/e4a4ccfa470f910b747b3ee8d18670ed8ac8a236


