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 51CE125B69B for ; Fri, 2 May 2025 16:01:06 +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=1746201666; cv=none; b=CwIhy3qXIrzf+86hAi82Ps1AGanU1f92SBxcSre1QlDLgfn8CIrhMa35HSJ+S0J8rZzKNYK0ZBtxd5nubKrPyrNzFVuVtBijxZiSqJD3ki6ptdFh0E4iu+M4/xuprb3Q6LEI5fL4oZAbS+KCoQ+084KQpKcFUK5PGjvb/pIHCd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201666; c=relaxed/simple; bh=dfXj67oQZQCs43kNtdC6cMoj8qYtOXyUFNp4G4EDCa8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hlczfl8Lf18AoLVQKD4TIi+MXkieXhy5CZe4Ao/mcYUi0CU8pZcthAA6fTOo29MJWysLRJ2mmUVbVxwfAOQqM7VyMMhV252WIqn4WsVPgZvrLUYEiz6i+wWt20TkgIHSAKMIl4W308Dh+Mp+WprvFtiB7riMz0nGxzKY+Ugy7jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mh/q2u4s; 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="Mh/q2u4s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9D54C4CEE4; Fri, 2 May 2025 16:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201666; bh=dfXj67oQZQCs43kNtdC6cMoj8qYtOXyUFNp4G4EDCa8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Mh/q2u4sfSurOXD2MQMORzQ4czCgTjBf1tYAZZ4y8T8gIopJlDdmyf770U1rI6vMm tDHBpnPgwtFBUAQCnEp6S1n0SMdLSnlkBRJMsoF1eNs05vtv3Xmwj/0+QaOuqj1Req c1jUCcli8P+Gg+FHs3YnIY7yvD84ZfxwZKB/AXPI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53129: ext4: Fix deadlock during directory rename Date: Fri, 2 May 2025 17:56:34 +0200 Message-ID: <2025050234-CVE-2023-53129-038a@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=2070; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YPHFe8Eg8iu5Nwm44K9QuEMn5B6TmmmYACwNiho64G4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir75NKsh5Ulu/8d08G3m1g7Zen/Zq/e43LN9gWzaj4 1nysxLBjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIn7cMC9bu0Th0MflmgdUL i2y5GSdZ/q8x/suwYErPBZbKFdUrv02Z1PdkT+Dr0xOnXQYA 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 deadlock during directory rename As lockdep properly warns, we should not be locking i_rwsem while having transactions started as the proper lock ordering used by all directory handling operations is i_rwsem -> transaction start. Fix the lock ordering by moving the locking of the directory earlier in ext4_rename(). The Linux kernel CVE team has assigned CVE-2023-53129 to this issue. Affected and fixed versions =========================== Issue fixed in mainline with commit 3c92792 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-53129 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/6b06c4ae64e3557a19b3bb0b6dbf641bc41fc218 https://git.kernel.org/stable/c/b113f90204479f55a17295bedf0cc966a60c7a56 https://git.kernel.org/stable/c/a2bc806e95bde8de3a0d675051d9ae78dcf6c691 https://git.kernel.org/stable/c/2ef7f829214fa8f428d953b49557b89b2b02db66 https://git.kernel.org/stable/c/352c728653a1179ce7bb37a4c8aa8404d83914a2 https://git.kernel.org/stable/c/3c92792da8506a295afb6d032b4476e46f979725