CVE-2026-31554: futex: Require sys_futex_requeue() to have identical flags
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
futex: Require sys_futex_requeue() to have identical flags
Nicholas reported that his LLM found it was possible to create a UaF when sys_futex_requeue() is used with different flags. The initial motivation for allowing different flags was the variable sized futex, but since that hasn't been merged (yet), simply mandate the flags are identical, as is the case for the old style sys_futex() requeue operations.
The Linux kernel CVE team has assigned CVE-2026-31554 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 0f4b5f972216782a4acb1ae00dcb55173847c2ff and fixed in 6.12.80 with commit 027145ace09fad4c7cbcd6c61fe9b429c63eb0e5 Issue introduced in 6.7 with commit 0f4b5f972216782a4acb1ae00dcb55173847c2ff and fixed in 6.18.21 with commit 18b7d09c2b794c71d4252f3ea2cf84ad12b73d6a Issue introduced in 6.7 with commit 0f4b5f972216782a4acb1ae00dcb55173847c2ff and fixed in 6.19.11 with commit e2f78c7ec1655fedd945366151ba54fcb9580508 Issue introduced in 6.7 with commit 0f4b5f972216782a4acb1ae00dcb55173847c2ff and fixed in 7.0 with commit 19f94b39058681dec64a10ebeb6f23fe7fc3f77a
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-31554
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:
kernel/futex/syscalls.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/027145ace09fad4c7cbcd6c61fe9b429c63eb0e5 https://git.kernel.org/stable/c/18b7d09c2b794c71d4252f3ea2cf84ad12b73d6a https://git.kernel.org/stable/c/e2f78c7ec1655fedd945366151ba54fcb9580508 https://git.kernel.org/stable/c/19f94b39058681dec64a10ebeb6f23fe7fc3f77a