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 3AA091581EB for ; Wed, 18 Sep 2024 07:17:51 +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=1726643871; cv=none; b=ha5MVdj5Dj4EBfNXuRR1UxwnCuGWVa1vY8mdAvXKNWH6y4h6vvGFZPgS3t3BWrzTz8O3f2QOghVuOG4MZU1f4Z+BJXPOnBURgl+SMYGatrz0P6C24UzyzamBSxKZRgLodEL4pdGIoRthV6B+Gow9EqzxuTfzBzS9HgZbvSgLALE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643871; c=relaxed/simple; bh=dmDG8TsClGxOxIjn+M594BdSx5YZIBkLmTIXCmpie18=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oriPhK3ULkHQEj4nTqR6P9RAY01B4vdtLotD7Tl60tKxyMJaLgD87Qi6oaIdHbRpGmRYfejc5oOiDk5RYfxhodZNo98j2q2J+gzQTpZYPSJ3w8K2lDM1DpG892sk5nzZE5SONmvum3XusCnh0tLWI8DDdgCyEcDL5ktG50KuhPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vKl2hH0P; 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="vKl2hH0P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E792C4CEC3; Wed, 18 Sep 2024 07:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643871; bh=dmDG8TsClGxOxIjn+M594BdSx5YZIBkLmTIXCmpie18=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vKl2hH0Pfe0JO8r51lHIdBfIVbP8CNPJYVxCN+YerDbVsLn5E5mdyBiKx24Af6snb kb0JftwAeKwoMPpxiEMWcEQKK+NqizTDwVNYFmCm89xkj4xZMLI5WW/vhwqigF8mfv Y1F02Tji1S5vx460oOaM/KO/TaDR5S3JOjp7AcSs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46736: smb: client: fix double put of @cfile in smb2_rename_path() Date: Wed, 18 Sep 2024 09:16:31 +0200 Message-ID: <2024091833-CVE-2024-46736-a70d@gregkh> X-Mailer: git-send-email 2.46.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=2038; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dmDG8TsClGxOxIjn+M594BdSx5YZIBkLmTIXCmpie18=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6gJXWUrUxv8SZUhJee7weYJY41bz8MUROxhDjQ4qC IXs3na1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSHMOw4PCcG9qxjy64rHy6 tnHurbntZ7VbpjIs2Lo19v9Xiy1i/TvZZh5ljTnzYHZ9KAA= 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: smb: client: fix double put of @cfile in smb2_rename_path() If smb2_set_path_attr() is called with a valid @cfile and returned -EINVAL, we need to call cifs_get_writable_path() again as the reference of @cfile was already dropped by previous smb2_compound_op() call. The Linux kernel CVE team has assigned CVE-2024-46736 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.32 with commit 1e60bc0e9543 and fixed in 6.6.51 with commit b27ea9c96efd Issue introduced in 6.9 with commit 71f15c90e785 and fixed in 6.10.10 with commit 1a46c7f6546b Issue introduced in 6.9 with commit 71f15c90e785 and fixed in 6.11 with commit 3523a3df03c6 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-46736 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/smb/client/smb2inode.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/b27ea9c96efd2c252a981fb00d0f001b86c90f3e https://git.kernel.org/stable/c/1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3 https://git.kernel.org/stable/c/3523a3df03c6f04f7ea9c2e7050102657e331a4f