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 5DBB2315D20 for ; Wed, 24 Dec 2025 10:36:25 +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=1766572585; cv=none; b=dnHbMpwFVcF6MSOvOlhy9vzKVu1xNpkO4QM+UftBUvI5sOZofHeUdnlIDVo5Gj7ayySJj7ARIWXCI47AV0w6qkQwNl3a+9ycgDEiNpppWeh+uETizZ4lrXqTuMgSIQgrfzqgtWJtpZ3q6DdZSXXFDufeLPinXZ92Ri8HwdVU+Bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572585; c=relaxed/simple; bh=SbfvGqbUmR3VdPUcIXdoZV+46USR9otZwxgicDT9rvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cNvz1NTS9XXLaE8dLqs4+RJdnG7vneNZ7iNA2vut639llUEMBPbKlPOVCWZ7DNuMmJAapOQpTMi8gyxop9zsgXJA7aDht3AlehDdrAYUouqxl/eDnClnD/h0NPCyiag1XTuRAuC/Pv2Y8oQ9HhD0/PJin3Nyh0eQYQvHlY1I1ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lY7CtTeA; 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="lY7CtTeA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 824C3C4CEFB; Wed, 24 Dec 2025 10:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572584; bh=SbfvGqbUmR3VdPUcIXdoZV+46USR9otZwxgicDT9rvU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lY7CtTeATObaRXe8YKs7DjFKWcLDhwB2rTTFkezAVi1+8a6VpXFU0qrBgfcNDcnvX FIiMzBGdvBNQvXbe643HSHP9sTEdU+pScqEWk+J0sNUyPAzprlScUFUI89mioIPBF4 eWU76RcZyGCaOon4q287Zo5T3Kk0rMeYYAI06TXc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68349: NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid Date: Wed, 24 Dec 2025 11:34:54 +0100 Message-ID: <2025122453-CVE-2025-68349-12d5@gregkh> X-Mailer: git-send-email 2.52.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=2538; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sFf3prZjvy2+vFsPbukfqGFcDXOF/dKOM0o1JXh+qlw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB8+pza45fXjzJM6VcnrfWDO+GfVzRCx9pWsvZBTz9 Sbj9CM7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibfsYFmx8us+7/sWUHbxd TNseejnPqGQ9K8Ywv3z38o+bIjK1V3ZNvveM1+h67fq4XwA= 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: NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid Fixes a crash when layout is null during this call stack: write_inode -> nfs4_write_inode -> pnfs_layoutcommit_inode pnfs_set_layoutcommit relies on the lseg refcount to keep the layout around. Need to clear NFS_INO_LAYOUTCOMMIT otherwise we might attempt to reference a null layout. The Linux kernel CVE team has assigned CVE-2025-68349 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit fe1cf9469d7bcb6af27e42eb555a41b0135bce4a and fixed in 6.12.63 with commit 59947dff0fb7c19c09ce6dccbcd253fd542b6c25 Issue introduced in 4.10 with commit fe1cf9469d7bcb6af27e42eb555a41b0135bce4a and fixed in 6.17.13 with commit ca2e7fdad7c683b64821c94a58b9b68733214dad Issue introduced in 4.10 with commit fe1cf9469d7bcb6af27e42eb555a41b0135bce4a and fixed in 6.18.2 with commit 38694f9aae00459ab443a7dc8b3949a6b33b560a Issue introduced in 4.10 with commit fe1cf9469d7bcb6af27e42eb555a41b0135bce4a and fixed in 6.19-rc1 with commit e0f8058f2cb56de0b7572f51cd563ca5debce746 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-68349 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/pnfs.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/59947dff0fb7c19c09ce6dccbcd253fd542b6c25 https://git.kernel.org/stable/c/ca2e7fdad7c683b64821c94a58b9b68733214dad https://git.kernel.org/stable/c/38694f9aae00459ab443a7dc8b3949a6b33b560a https://git.kernel.org/stable/c/e0f8058f2cb56de0b7572f51cd563ca5debce746