CVE-2026-80775

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

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> futex: Fix race on the initial mm-&gt;futex.phash.ref allocation<br /> <br /> futex_hash_allocate() allocates mm-&gt;futex.phash.ref without any locking.<br /> Commit d9b05321e21e ("futex: Move futex_hash_free() back to __mmput()")<br /> moved the allocation here and assumed that the process has just a single<br /> thread at this point.<br /> <br /> Commit ee9dce44362b ("futex: Drop CLONE_THREAD requirement for private<br /> default hash alloc") widened need_futex_hash_allocate_default() to cover<br /> any CLONE_VM clone, but left out vfork because the parent is suspended and<br /> cannot race.<br /> <br /> That no longer holds once vfork is nested. If a vfork child calls vfork<br /> again and is then killed with SIGKILL, the parent is released from its<br /> vfork wait and runs concurrently with the grandchild in the same mm.<br /> Neither of them went through futex_hash_allocate_default().<br /> <br /> When both call prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS) at the same<br /> time, each one sees mm-&gt;futex.phash.ref as NULL and stores its own percpu<br /> counter. Only the last store survives. The counter stored first is no<br /> longer reachable from the mm, so the references on it are not seen by<br /> __futex_ref_atomic_end(). A private hash that still has references is then<br /> considered dead and freed, and a task that still holds one of its buckets<br /> writes into freed memory in futex_q_lock().<br /> <br /> Store the counter once with cmpxchg() and let the loser free_percpu() its<br /> own. The initial reference has to be taken before the store, otherwise<br /> another task can install a private hash while the counter is still 0.

Impact