Skip to contentSkip to conversation

CVE-2026-99169: futex: Fix mm reuse handling for FUT_OFF_MMSHARED

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

futex: Fix mm reuse handling for FUT_OFF_MMSHARED

A FUT_OFF_MMSHARED futex is a shared futex that refers to an MM. It is possible for a process to wait on a shared futex with a different MM because a FUT_OFF_INODE waiter can be requeued onto a FUT_OFF_MMSHARED futex by another process.
This can cause FUT_OFF_MMSHARED waiters on a freed MM to consume wakeups intended for a newly allocated MM at the same address.

Fix it by keying FUT_OFF_MMSHARED using a unique 64-bit per-MM ID. Leave private futexes as before to avoid influencing the performance of the hotpath.

(Multi-threaded processes typically implicitly use FUT_OFF_MMSHARED by setting clear_child_tid such that it points into anonymous memory, which causes mm_release() in a multi-threaded mm to perform FUTEX_WAKE.)

The Linux kernel CVE team has assigned CVE-2026-99169 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.7 with commit 222993395ed38f3751287f4bd82ef46b3eb3a66d and fixed in 6.18.59 with commit c17cc2027773e8e4913c5ab0fe3a489b1ed5bf81
	Issue introduced in 5.7 with commit 222993395ed38f3751287f4bd82ef46b3eb3a66d and fixed in 7.2.13 with commit 2855ddc6844f527e375e78afb55ec2a5182f23b3
	Issue introduced in 5.7 with commit 222993395ed38f3751287f4bd82ef46b3eb3a66d and fixed in 7.3 with commit 3267512ad1c2cc0c7768c5b014dc2cceb398a801

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99169

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
include/linux/futex.h
include/linux/futex_types.h
kernel/futex/core.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/c17cc2027773e8e4913c5ab0fe3a489b1ed5bf81
	https://git.kernel.org/stable/c/2855ddc6844f527e375e78afb55ec2a5182f23b3
	https://git.kernel.org/stable/c/3267512ad1c2cc0c7768c5b014dc2cceb398a801