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 9DD2B219FF for ; Sun, 19 May 2024 08:38:09 +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=1716107889; cv=none; b=rRdUhhb4czvog/g0qim6Q4hta1EwpEIFicp2EovVbdRJp58N1Vi4gMfaGyV2XK0BVuqeYjQPyhe20ATljsN2smxp5r+s2+3HUsNq+ppqEmpqYgTmdrNSfOBLmU64ylsmIwwY0CKSwPYW0sJ+WDG8psRFML+nl0FVC6sB/Tc2h9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107889; c=relaxed/simple; bh=Ucp5SRidwvA9hgFAdxKktJ20fANXM67n0cKaiZBcCJo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IB9zUZhOvxoDbmoFcUIb03pL2lMJE0u7FdkgZjXHXbMK8xozBpulFcrwGOVzDnoJrApMQ9tyXywmSrkHkxOWMNDlaK8VptWpOuSdpO8c7R+alD2NQ5kscywGPL0oA/bmqLafZx4vhOIC7sCGmkaODmTVOqe5UhpWTRzHVRFYqeQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p2Djon/r; 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="p2Djon/r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0564FC32781; Sun, 19 May 2024 08:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107889; bh=Ucp5SRidwvA9hgFAdxKktJ20fANXM67n0cKaiZBcCJo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p2Djon/rNPEkNmOdFA8/waiBgTSP93BE7vXa7ST163yL72b4/F7NwpQYr2r489ZLk rnUAsfa2yUvRU44sS2OtQ4Vh72DRA20nco980CZbRSszgRnZ2L6sr0SseeMjtkk6tJ YdIFGksbPhzLZJawqwq4LnkcT/DfhkonGIo3DVN8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35914: nfsd: Fix error cleanup path in nfsd_rename() Date: Sun, 19 May 2024 10:35:28 +0200 Message-ID: <2024051957-CVE-2024-35914-3194@gregkh> X-Mailer: git-send-email 2.45.1 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=1899; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ucp5SRidwvA9hgFAdxKktJ20fANXM67n0cKaiZBcCJo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeOzfyu/yWTpigFs2/5+TDSRtspqWfbet/au7d/pyXN bZ1dbhhRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk5xDDgj0u+kz2nhH3np66 eCBSjDk7d8XCaoZ5GpaLNF66Zp3ZcvZ3vPLv1evXs990BAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nfsd: Fix error cleanup path in nfsd_rename() Commit a8b0026847b8 ("rename(): avoid a deadlock in the case of parents having no common ancestor") added an error bail out path. However this path does not drop the remount protection that has been acquired. Fix the cleanup path to properly drop the remount protection. The Linux kernel CVE team has assigned CVE-2024-35914 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit a8b0026847b8 and fixed in 6.8.5 with commit 331e125e02c0 Issue introduced in 6.8 with commit a8b0026847b8 and fixed in 6.9 with commit 9fe6e9e7b589 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-2024-35914 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/nfsd/vfs.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/331e125e02c08ffaecc1074af78a988a278039bd https://git.kernel.org/stable/c/9fe6e9e7b58944037714442384075c17cfde1c56