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 4E6F92701B6 for ; Wed, 1 Oct 2025 07:47:57 +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=1759304877; cv=none; b=E9snER1p9z9KOItoW9+dodfRfkBIlU3ZMw9AxB2+O2e6lw5kuKjMEZQVLtai9g069AgcVYCLnzvL8BqoB9hhYGb6xYq87SE5+QBVdqjFQNJooyUYXHZf1pydcFBtvLD1UIaaS7ryw62tcAhfmR6soMoAPDRwluXROprtO9UR0xU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304877; c=relaxed/simple; bh=42KGSoojaK1ND7FxlawItojyGeZYOfSZhYquy3VSJ5g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Esh9J/+Gtxai++a3E78MBN18pTmlTiM+E+yPbJtCPxGOprHlJIC6cyalxeQpFkXknINU/SXTof2bknUgzurcB0cmsHpQupPlTI9oFjPH3lpqElDHv1RKLJ3EQt5FM0sZxWqluLzi1aOAz/ouV8bgBP5qV3EyWFR/x1pY91saZBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V9+LZEv1; 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="V9+LZEv1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE0C3C4CEF4; Wed, 1 Oct 2025 07:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759304877; bh=42KGSoojaK1ND7FxlawItojyGeZYOfSZhYquy3VSJ5g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V9+LZEv1HMzm8aZtE8R0Gg+2c1lBj2ckgwSeJ2orGg5yAlkPY49DvSTjV0RWyXO75 +rZwAINbkVefHIYcZBbXDb2nQ1q/beGWkKHCbVK2rBHpfu882Vb3QWlW17s/tRZNnv dD5OOqEKywTeTkNs3XdcDnfOFgtzSgIcHhc8vXG0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39912: nfs/localio: restore creds before releasing pageio data Date: Wed, 1 Oct 2025 09:47:17 +0200 Message-ID: <2025100110-CVE-2025-39912-13cf@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=2168; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ut3A1XPB4URFwS/TGE27NUG/zyctPVwR0OJZDP7qR34=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl37tR5+itnOJ8y45l3fElmaHT23KNRwcUtue1nOl73h e/jPqvXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZ+Ithno7/73QdTgMBoV+x uS/OZ4eccPkVzTA/+bzwzH6BbVJbeLPcIyZNYahwMa4BAA== 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: nfs/localio: restore creds before releasing pageio data Otherwise if the nfsd filecache code releases the nfsd_file immediately, it can trigger the BUG_ON(cred == current->cred) in __put_cred() when it puts the nfsd_file->nf_file->f-cred. The Linux kernel CVE team has assigned CVE-2025-39912 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit b9f5dd57f4a52990963eeb1f1b58d00f717ece69 and fixed in 6.12.48 with commit 57c1bb02b4fc8eec6eb01736e7fad26dffacf18c Issue introduced in 6.12 with commit b9f5dd57f4a52990963eeb1f1b58d00f717ece69 and fixed in 6.16.8 with commit c250be1d75bf80dc5ab46f0b434b746c1868a1ea Issue introduced in 6.12 with commit b9f5dd57f4a52990963eeb1f1b58d00f717ece69 and fixed in 6.17 with commit 992203a1fba51b025c60ec0c8b0d9223343dea95 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-39912 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: fs/nfs/localio.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/57c1bb02b4fc8eec6eb01736e7fad26dffacf18c https://git.kernel.org/stable/c/c250be1d75bf80dc5ab46f0b434b746c1868a1ea https://git.kernel.org/stable/c/992203a1fba51b025c60ec0c8b0d9223343dea95