Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42B5B3DBD5A for ; Fri, 24 Apr 2026 14:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041451; cv=none; b=Pd72k1VJGoRB0duWYSnOcvAu1VjxgeV2sJL11mtwswrqM/WC4IxSgvBMRojAnTjvAguxw9H3RF/+Hi/U+O1jrbiApaM+Z+6xk67bQb3zz8eJIddEIqHafqLq/oxTDr2Kc7+x78wkeo0kaekxUuxKrUp9oH660jDiHH0icDPedSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041451; c=relaxed/simple; bh=px4zkLOPo0jK5nGFXTEPtKlBTMVekYbcj5gjhhlazOk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mO3CRDKSSPseAmXWwFMC9rlvejy9apgLBM7USgGJ92QWgytx8CD8bkVlcHiaS3KY6JYhvcXyu0A7R55PH1gHaA6fKIxoqdG0y5hGg0vEl9OT5f98PUnXW6S5X7sS2PyMwgdCu53Ob1CWPPiDLHgyS4hsKOM7BaFSZaACExR1A0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KfKxN3lX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KfKxN3lX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B631C19425; Fri, 24 Apr 2026 14:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041450; bh=px4zkLOPo0jK5nGFXTEPtKlBTMVekYbcj5gjhhlazOk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KfKxN3lXVGu8AOgs6PgUXuEK12Y+QnPID00WZ+7bOuoiQuqusPIpReWzPiiMupGmT V8cRacmcmvjSWqZg829CVyYKi9/ZtQJ4bp73qqXzf9yZYDdwWcB/GzMVG4F4TOu7Hq EhkrAqFL7PcNGD33uGaNpFz02NJEnT5OGibGKZqM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31555: futex: Clear stale exiting pointer in futex_lock_pi() retry path Date: Fri, 24 Apr 2026 16:35:59 +0200 Message-ID: <2026042456-CVE-2026-31555-ba94@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4872; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LvHrQJuQtKvvDKJEwW0pnO6L+YwKWV8t7x521mKEfEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv68/e+HXo0SqnWL4sq/nhexL6BLKaF9ae/P99/cqFq 0zYm7RTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiyToMs9n622JO1Ot9VhA/ EtC7cHHU8Yvt8xgWzDjq3pz1luHBrnKvvaZnq9cfvKK7EgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: futex: Clear stale exiting pointer in futex_lock_pi() retry path Fuzzying/stressing futexes triggered: WARNING: kernel/futex/core.c:825 at wait_for_owner_exiting+0x7a/0x80, CPU#11: futex_lock_pi_s/524 When futex_lock_pi_atomic() sees the owner is exiting, it returns -EBUSY and stores a refcounted task pointer in 'exiting'. After wait_for_owner_exiting() consumes that reference, the local pointer is never reset to nil. Upon a retry, if futex_lock_pi_atomic() returns a different error, the bogus pointer is passed to wait_for_owner_exiting(). CPU0 CPU1 CPU2 futex_lock_pi(uaddr) // acquires the PI futex exit() futex_cleanup_begin() futex_state = EXITING; futex_lock_pi(uaddr) futex_lock_pi_atomic() attach_to_pi_owner() // observes EXITING *exiting = owner; // takes ref return -EBUSY wait_for_owner_exiting(-EBUSY, owner) put_task_struct(); // drops ref // exiting still points to owner goto retry; futex_lock_pi_atomic() lock_pi_update_atomic() cmpxchg(uaddr) *uaddr ^= WAITERS // whatever // value changed return -EAGAIN; wait_for_owner_exiting(-EAGAIN, exiting) // stale WARN_ON_ONCE(exiting) Fix this by resetting upon retry, essentially aligning it with requeue_pi. The Linux kernel CVE team has assigned CVE-2026-31555 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 5.10.253 with commit 33095ae3bdde5e5c264d7e88a2f3e7703a26c7aa Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 5.15.203 with commit e7824ec168d2ac883a213cd1f4d6cc0816002a85 Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 6.1.168 with commit 5e8e06bf8909e79b4acd950cf578cfc2f10bbefa Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 6.6.131 with commit de7c0c04ad868f2cee6671b11c0a6d20421af1da Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 6.12.80 with commit 7475dfad10a05a5bfadebf5f2499bd61b19ed293 Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 6.18.21 with commit 92e47ad03e03dbb5515bdf06444bf6b1e147310d Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 6.19.11 with commit 71112e62807d1925dc3ae6188b11f8cfc85aec23 Issue introduced in 5.5 with commit 3ef240eaff36b8119ac9e2ea17cbf41179c930ba and fixed in 7.0 with commit 210d36d892de5195e6766c45519dfb1e65f3eb83 Issue introduced in 4.4.255 with commit f2a9957e5c08b1b1caacd18a3dc4c0a1bdb7b463 Issue introduced in 4.9.255 with commit cf16e42709aa86aa3e37f3acc3d13d5715d90096 Issue introduced in 4.14.158 with commit 61fa9f167caaa73d0a7c88f498eceeb12c6fa3db Issue introduced in 4.19.172 with commit 7874eee0130adf9bee28e8720bb5dd051089def3 Issue introduced in 5.4.1 with commit fc3b55ef2c840bb2746b2d8121a0788de84f7fac 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-31555 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/pi.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/33095ae3bdde5e5c264d7e88a2f3e7703a26c7aa https://git.kernel.org/stable/c/e7824ec168d2ac883a213cd1f4d6cc0816002a85 https://git.kernel.org/stable/c/5e8e06bf8909e79b4acd950cf578cfc2f10bbefa https://git.kernel.org/stable/c/de7c0c04ad868f2cee6671b11c0a6d20421af1da https://git.kernel.org/stable/c/7475dfad10a05a5bfadebf5f2499bd61b19ed293 https://git.kernel.org/stable/c/92e47ad03e03dbb5515bdf06444bf6b1e147310d https://git.kernel.org/stable/c/71112e62807d1925dc3ae6188b11f8cfc85aec23 https://git.kernel.org/stable/c/210d36d892de5195e6766c45519dfb1e65f3eb83