From mboxrd@z Thu Jan 1 00:00:00 1970 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 31BB8204F93 for ; Wed, 15 Oct 2025 07:57:14 +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=1760515034; cv=none; b=QT/VsRto6zfzV170MZT4Bpz3Apj2tyJCtJ9ZVMn0K6d69mnkQ1BqOXubW1xPFFk9/hVL0dEdYn2l7jXa215wSeRLcUp/5Mh+b7+WFO4pqBamajibMEvR8rOb9mWr8ZG31nXxUrj9UkNah//pvr5dITvHFwZsrnLEXwhDJqx74LE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760515034; c=relaxed/simple; bh=cPLGP3PgeUsDOz/cd676mh42DfZRMgu+ZvMRzlBk8+A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UDZwsN3i4GgzlQZEZZ6cftfdkk1chURDcnv5IAj1fVCJeiegkdhdrvXyBY+wq9fip8qGKmjLPJW3iPBLhzPABaWUg22wfblbXZ/ApvbyHNJec36RyfgUd9LuVnEt4UA7ctDgwbtktrcAyCttCCVi81pdHnRKClchxSnOKFVG3sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0YcgptAI; 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="0YcgptAI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99DDAC4CEF8; Wed, 15 Oct 2025 07:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760515034; bh=cPLGP3PgeUsDOz/cd676mh42DfZRMgu+ZvMRzlBk8+A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0YcgptAIsmTOrkprNb7Sb/QWeTtmcmEADdmTTfeVVwzKvIl8+6Xuq+HsZFP3GOx0U zdqQo4uELB77RnifaDGTP1y2aSOa/9VDfIModRT6CpBc7FjFM4vMl3I18fCgUre+xZ 2y5x5HhGfzZ/hLKcm2Wh43VgLWrkL30PrA8VHYEM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39976: futex: Use correct exit on failure from futex_hash_allocate_default() Date: Wed, 15 Oct 2025 09:57:04 +0200 Message-ID: <2025101558-CVE-2025-39976-59ea@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Z2Wlg16qadqE4nqlHtVQNh2enJmO/Kf3ytx//nskbs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnvg08VbzizZuIx7ulW9aef6RusXlL96c/d5fNvOYn5u gtfF3W93xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATqdJnmCs1MTmkpzLUQ2KV pKltTOKdV3c/fWNYMJ3p1Dtzxe5GUwcG1aeaJ9OLdtSEAAA= 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: Use correct exit on failure from futex_hash_allocate_default() copy_process() uses the wrong error exit path from futex_hash_allocate_default(). After exiting from futex_hash_allocate_default(), neither tasklist_lock nor siglock has been acquired. The exit label bad_fork_core_free unlocks both of these locks which is wrong. The next exit label, bad_fork_cancel_cgroup, is the correct exit. sched_cgroup_fork() did not allocate any resources that need to freed. Use bad_fork_cancel_cgroup on error exit from futex_hash_allocate_default(). The Linux kernel CVE team has assigned CVE-2025-39976 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 7c4f75a21f636486d2969d9b6680403ea8483539 and fixed in 6.16.10 with commit f1635765cd0fdbf27b04d9a50be91a01b5adda13 Issue introduced in 6.16 with commit 7c4f75a21f636486d2969d9b6680403ea8483539 and fixed in 6.17 with commit 4ec3c15462b9f44562f45723a92e2807746ba7d1 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-2025-39976 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/fork.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/f1635765cd0fdbf27b04d9a50be91a01b5adda13 https://git.kernel.org/stable/c/4ec3c15462b9f44562f45723a92e2807746ba7d1