Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CDF384F30C4 for ; Fri, 4 Sep 2026 15:14:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788534900; cv=none; b=VIebWdZPMIRIJ8cdYVAzTdSHW0rLOZkscG/g9a7Z25sOEHE8F6/WLt2QbZ+TXd5gLMeua/fbd006Xdb+RQNlpq2kpm3gZWdp2jM6JnmoP9Du72oQFtWJi15FFMTGtYfBZ//HCqWl87NqpdiAtKQXsxItbsW2465q+34zaBHSIwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788534900; c=relaxed/simple; bh=H5VzNnks2tw9wfxpsjTUD+JJtgshg31bOxrT2xfW8D8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r5ErpxLsYvtkhUdqWs4B3HiW99o2qoUVE1l+RroSmP43tQB1qkNyrx/UFsKxtlbTaGOcVmmNBox0GZ0VaMK0Q3KZef1Sc8+83QLFdVs7fqAWLbkprnwaGIxTRjNfzwkKx9i0QL2nD/KFQdaKwiH3OxCelK+aXbJi40zOaQQ33qY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=novDAyV/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="novDAyV/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 405A51F00A3D; Fri, 4 Sep 2026 15:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788534898; bh=byghbjuZzTsRpKLf2bjD8unzoIlIpVoKbqc9nw/jKZM=; h=From:To:Cc:Subject:Date:Reply-To; b=novDAyV/povvXnMRIyQw6TTv+yA1Cjqdo8h8i3dm4eD4GghP92WHnVUc2HNN4Ry+h 5q7/Ht3V5D1Sdn7n45v+9tdZPQRWY+rTyLQ8OycsFKSuAODIKtmVe71S48pb1CDnwX PA06fNgkfjj5A5qvZy5WFG8Ir/AYzwa7bvptGrT0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80778: futex/pi: Reject cross-mm private futex owners Date: Fri, 4 Sep 2026 17:11:17 +0200 Message-ID: <2026090403-CVE-2026-80778-f058@gregkh> X-Mailer: git-send-email 2.55.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=3027; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1rn8VvpjwWGBxB3hZqXDzdGtQYwDaE7v9on+3lFrWsQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7rfff9bxgG/LhHNixuJTHTec8vd6K/KjQ2rNzxWhU Ru2mP9l64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfGximCv6tHLN1e7MNGb9 FUmHX0e4ms29Uc+wYKvrxlVSy24eUf1Qfz1HcW/sCaUeAwA= 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/pi: Reject cross-mm private futex owners A private futex key borrows the waiter's mm without taking an mm_users reference. Nevertheless, attach_to_pi_owner() currently accepts an owner from a different address space and copies the private key into the owner's PI state. When that owner exits, exit_pi_state_list() uses the saved key to find the hash bucket and acquires a reference to the waiter's private hash. If the last user of the waiter's mm exits concurrently, futex_hash_free() frees the hash while the owner still uses its bucket and reference. Prevent this by validating in attach_to_pi_owner() that, for private futexes, the owner mm and waiter mm are the same. Perform the check with the owner's pi_lock held and after validating owner::futex::state to serialize against a concurrent PI-state exit cleanup. [ tglx: Amended comment ] The Linux kernel CVE team has assigned CVE-2026-80778 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 80367ad01d93ac781b0e1df246edaf006928002f and fixed in 6.18.47 with commit 2b92e5562653b5293529f63b0300837d9dcedbd7 Issue introduced in 6.16 with commit 80367ad01d93ac781b0e1df246edaf006928002f and fixed in 7.1.11 with commit f7fb3e07752688842cbe0b85cf0d98c2fbf76b68 Issue introduced in 6.16 with commit 80367ad01d93ac781b0e1df246edaf006928002f and fixed in 7.2.1 with commit 43b148d796aa338858792d0167cebdc12b8cb4b9 Issue introduced in 6.16 with commit 80367ad01d93ac781b0e1df246edaf006928002f and fixed in 7.3-rc1 with commit 59b3732f95dda1fbd2234514d35f4fb6b5bb6d85 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-80778 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/2b92e5562653b5293529f63b0300837d9dcedbd7 https://git.kernel.org/stable/c/f7fb3e07752688842cbe0b85cf0d98c2fbf76b68 https://git.kernel.org/stable/c/43b148d796aa338858792d0167cebdc12b8cb4b9 https://git.kernel.org/stable/c/59b3732f95dda1fbd2234514d35f4fb6b5bb6d85