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 1364637A3DB for ; Tue, 16 Dec 2025 13:44:23 +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=1765892663; cv=none; b=mwY6kso2F9zdxPSNuZWLU949YlpCD3RamaGAQB+vmkiKg5nM7wKI/Pwv9juF4vNo9BkhA1caLE5Ax8csUBED4dcc2RQxYm6mOsVEBOAw6+Ysj6IXbHZ/t18ouIt9J9mXr9tJkPRnqg8WeL0+rx/t9tnB3p9qxcVbDiozNyaPRPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892663; c=relaxed/simple; bh=lX9anPZtIuI1S8Sw3gkLY78OvYH/aFjq2nR+PDGfH/4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NhgATBSl2nXwHQuSgcWt+q19WhrCIu7uBn/SujG4unHdQxBtJ6Yrm99X0VJuGLNc/pSCO3gM21wjduxtM6wOkP9qocp1KEhB2KSV6IAzQMtMqanOr6Z0k2DU52Hr0uII+P5ZeJr9ov8MyuYrXQ2owuxVBp5v8ceepzqUfrfPP7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=go/Sr2Gu; 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="go/Sr2Gu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FADCC4CEF1; Tue, 16 Dec 2025 13:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892662; bh=lX9anPZtIuI1S8Sw3gkLY78OvYH/aFjq2nR+PDGfH/4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=go/Sr2Gubdu6wV1fprSTewscBzoFjmWgoIhGYyZoH764L2kz7YB/Kc8LrWST3j5VQ dCzj/UHYUWV1fxuMlfMYKVPxZuPtzaRQcW648+yNgESxrYdGgPP48gerrNX8tn0I4L xMmx4Kv+UsloErGRB4dYLB+nhDB/biih5ytrUg2M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68185: nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing Date: Tue, 16 Dec 2025 14:43:46 +0100 Message-ID: <2025121633-CVE-2025-68185-6db0@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=2826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Xbt3zuhhXHS73whOuDhG/cUv/TIeMwhqm3pmhf9ty8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSazTPiqueGtQXe1mn37m2yzFwCeWHzQ8BQ58Xfr67 TOLBW5ZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR1VUMc0VbpGq82Ou6nwQK 777z2c3vntivBwwL+g69CFj5PmzrR6Wv+dNKFvtUbTkWAQA= 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: nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing Theoretically it's an oopsable race, but I don't believe one can manage to hit it on real hardware; might become doable on a KVM, but it still won't be easy to attack. Anyway, it's easy to deal with - since xdr_encode_hyper() is just a call of put_unaligned_be64(), we can put that under ->d_lock and be done with that. The Linux kernel CVE team has assigned CVE-2025-68185 to this issue. Affected and fixed versions =========================== Fixed in 5.4.302 with commit 6025f641a0e30afdc5aa62017397b1860ad9f677 Fixed in 5.10.247 with commit e6cafe71eb3b5579b245ba1bd528a181e77f3df1 Fixed in 5.15.197 with commit fa4daf7d11e45b72aad5d943a7ab991f869fff79 Fixed in 6.1.159 with commit 504b3fb9948a9e96ebbabdee0d33966a8bab15cb Fixed in 6.6.117 with commit eacfd08b26a062f1095b18719715bc82ad35312e Fixed in 6.12.58 with commit 40be5b9080114f18b0cea386db415b68a7273c1a Fixed in 6.17.8 with commit f5e570eaab36a110c6ffda32b87c51170990c2d1 Fixed in 6.18 with commit a890a2e339b929dbd843328f9a92a1625404fe63 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-68185 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/nfs4proc.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/6025f641a0e30afdc5aa62017397b1860ad9f677 https://git.kernel.org/stable/c/e6cafe71eb3b5579b245ba1bd528a181e77f3df1 https://git.kernel.org/stable/c/fa4daf7d11e45b72aad5d943a7ab991f869fff79 https://git.kernel.org/stable/c/504b3fb9948a9e96ebbabdee0d33966a8bab15cb https://git.kernel.org/stable/c/eacfd08b26a062f1095b18719715bc82ad35312e https://git.kernel.org/stable/c/40be5b9080114f18b0cea386db415b68a7273c1a https://git.kernel.org/stable/c/f5e570eaab36a110c6ffda32b87c51170990c2d1 https://git.kernel.org/stable/c/a890a2e339b929dbd843328f9a92a1625404fe63