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 ED1B425C6F8 for ; Fri, 2 May 2025 16:01:30 +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=1746201692; cv=none; b=tF/WEv0VQZ2zKLDm/ghTwiF6rU/p+Qp7G7zwSDYYfymsU+vEePobmZcl1TQ35cHDKPTlHbohIMEHpW6vxt2E7nCaC0cu3d+pHIeE2bIJSROoTkS9irNLWB6mjEIiypaCp6uLUbUzI5ckv7UCdw7EcmE7t5DC/bq+1cSCP3WvB5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201692; c=relaxed/simple; bh=Qp2JKwdbpx9t8Px6Cq44I4kIziS6KABZ2A38/n5CzQ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CItruMVZmfXCLuiTKqhmLnxdpIpU/jZsuLZ2Q1dzFAq0U3jfRci6j+gJplQqPogmG6JRkJxeN/SXI33b3q6cWlBo5gLXa8g3ZPmBQi9Fv2ZtwEawnEJcOTUt3GwA0uwO6uaKoeoMZaTWhe5029qXIa7sECphU77A/OWj5W8b0tg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lFzp2LvU; 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="lFzp2LvU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14CB8C4CEE4; Fri, 2 May 2025 16:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201690; bh=Qp2JKwdbpx9t8Px6Cq44I4kIziS6KABZ2A38/n5CzQ4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lFzp2LvUjRXHdBoP+N6tm68j63ADFseeauYZAdLFi7IaL2ndVUOVUCfCuJ5diT7YC cc9JT8RSu9fNdCj1QJcFWB+E1MxhGDZLkcsK5Ncpf/hJwTKP/RN+ayupk5fxpGvuTH WGH9e2dBZEE/uQlgQz8qQ7z0m79CNHEaiLAT9X6U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53137: ext4: Fix possible corruption when moving a directory Date: Fri, 2 May 2025 17:56:42 +0200 Message-ID: <2025050237-CVE-2023-53137-f8bc@gregkh> X-Mailer: git-send-email 2.49.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=3016; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y6i4ZE4sgnceX+Vm97vLJqGXuoY65nVmXnn+NnLvfu8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir35OOVrg7Tpxe+6+A5+cxZWlFkS76HTOY7uhXXw8Y NrCBvWSjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIz2+GBctXBMl8l+5TqrwR WzVjohjvmcTTqxkWXL9aF7t7+ow+l6mRYjUPTu1e6pTfCQA= 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: ext4: Fix possible corruption when moving a directory When we are renaming a directory to a different directory, we need to update '..' entry in the moved directory. However nothing prevents moved directory from being modified and even converted from the inline format to the normal format. When such race happens the rename code gets confused and we crash. Fix the problem by locking the moved directory. The Linux kernel CVE team has assigned CVE-2023-53137 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 5.4.237 with commit 8dac5a63cf79707b547ea3d425fead5f4482198f Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 5.10.175 with commit 0c440f14558bfacd22c6935ae1fd4b2a09e96b5d Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 5.15.103 with commit c50fc503ee1b97f12c98e26afc39fdaebebcf04f Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 6.1.20 with commit b0bb13612292ca90fa4c2a7e425375649bc50d3e Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 6.2.7 with commit 291cd19d107e197306869cb3237c1bba62d13182 Issue introduced in 3.8 with commit 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 and fixed in 6.3 with commit 0813299c586b175d7edb25f56412c54b812d0379 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-2023-53137 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/ext4/namei.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/8dac5a63cf79707b547ea3d425fead5f4482198f https://git.kernel.org/stable/c/0c440f14558bfacd22c6935ae1fd4b2a09e96b5d https://git.kernel.org/stable/c/c50fc503ee1b97f12c98e26afc39fdaebebcf04f https://git.kernel.org/stable/c/b0bb13612292ca90fa4c2a7e425375649bc50d3e https://git.kernel.org/stable/c/291cd19d107e197306869cb3237c1bba62d13182 https://git.kernel.org/stable/c/0813299c586b175d7edb25f56412c54b812d0379