PT-2026-85616 · Linux · Linux

CVE-2026-80775

·

Published

2026-09-04

·

Updated

2026-09-04

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
futex: Fix race on the initial mm->futex.phash.ref allocation
futex hash allocate() allocates mm->futex.phash.ref without any locking. Commit d9b05321e21e ("futex: Move futex hash free() back to mmput()") moved the allocation here and assumed that the process has just a single thread at this point.
Commit ee9dce44362b ("futex: Drop CLONE THREAD requirement for private default hash alloc") widened need futex hash allocate default() to cover any CLONE VM clone, but left out vfork because the parent is suspended and cannot race.
That no longer holds once vfork is nested. If a vfork child calls vfork again and is then killed with SIGKILL, the parent is released from its vfork wait and runs concurrently with the grandchild in the same mm. Neither of them went through futex hash allocate default().
When both call prctl(PR FUTEX HASH, PR FUTEX HASH SET SLOTS) at the same time, each one sees mm->futex.phash.ref as NULL and stores its own percpu counter. Only the last store survives. The counter stored first is no longer reachable from the mm, so the references on it are not seen by futex ref atomic end(). A private hash that still has references is then considered dead and freed, and a task that still holds one of its buckets writes into freed memory in futex q lock().
Store the counter once with cmpxchg() and let the loser free percpu() its own. The initial reference has to be taken before the store, otherwise another task can install a private hash while the counter is still 0.
Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

CVE-2026-80775

Affected Products

Linux