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 0AD5D25A64C for ; Fri, 2 May 2025 15:59:07 +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=1746201547; cv=none; b=eAOLiBmpeH2sZh5l1aIEaBh8lzvG8qbuMhQ3XWvxm2mGGtiRJxYi9cBaN+DXa2J6259thLs3lpEAzSYIHn1hT0N8dBLKE6plkthGeaObtxThyM2nPvg4PNKI55jQfLO+HGOTB5KoG1frfk0jxGBE4Nck690GNwXPywN9i+qcaP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201547; c=relaxed/simple; bh=Om35+QZXTVToyKHo9/MP/Tfx5AliahthpytpoZbrNTI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lMK4unfr/T+OgSLOILDQunHwjgv5wly4nSK+jPt81IbxPkvOz54efxuWHelZplGRiy0kYbguMyM01WvXPq/8JmQEpm3wjU0iH9MHM/djyJzZs13DY+lu6FfekuQG82AwqtWRcshaxyNpp4XqHzjg89DS4kqdyGxch7ve9DwvudM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S3P5WVTS; 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="S3P5WVTS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5D69C4CEE4; Fri, 2 May 2025 15:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201546; bh=Om35+QZXTVToyKHo9/MP/Tfx5AliahthpytpoZbrNTI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S3P5WVTS/gOUOYyM/JljfUcmA5eSiWNAj7Pe7GiJ5k7pMnGNgpQpyLVxDqVIXdJTn JEDpzGwYvUE3Nirdk/95IJlvNu9cEN8wvQvWTjU2IDn3urR0ygJykdyKeypYbFEGfu T/TbDHTjkPYzqfFpJzeqq/ZDNL/Pcc2jEDSZwkXs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53091: ext4: update s_journal_inum if it changes after journal replay Date: Fri, 2 May 2025 17:55:56 +0200 Message-ID: <2025050220-CVE-2023-53091-9433@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=2368; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uZdcQ35na+VUVe94aAwupa/GTPhchCvN80pMNjzDPks=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir15U9S55feA8K2vJhZVLGIUqrOqusXAL+6tM3S71p XH63eCujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIWweG+blv27a7Bq/3OZxh No2nQaVd/dn5/wwLOsNrog/qx5tz/T1kv9laVP30c9tWAA== 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: update s_journal_inum if it changes after journal replay When mounting a crafted ext4 image, s_journal_inum may change after journal replay, which is obviously unreasonable because we have successfully loaded and replayed the journal through the old s_journal_inum. And the new s_journal_inum bypasses some of the checks in ext4_get_journal(), which may trigger a null pointer dereference problem. So if s_journal_inum changes after the journal replay, we ignore the change, and rewrite the current journal_inum to the superblock. The Linux kernel CVE team has assigned CVE-2023-53091 to this issue. Affected and fixed versions =========================== Fixed in 5.15.104 with commit 499fef2030fb754c68b1c7cb3a799a3bc1d0d925 Fixed in 6.1.21 with commit 70e66bdeae4d0f7c8e87762f425b68aedd5e8955 Fixed in 6.2.8 with commit ee0c5277d4fab920bd31345c49e193ecede9ecef Fixed in 6.3 with commit 3039d8b8692408438a618fac2776b629852663c3 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-53091 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/super.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/499fef2030fb754c68b1c7cb3a799a3bc1d0d925 https://git.kernel.org/stable/c/70e66bdeae4d0f7c8e87762f425b68aedd5e8955 https://git.kernel.org/stable/c/ee0c5277d4fab920bd31345c49e193ecede9ecef https://git.kernel.org/stable/c/3039d8b8692408438a618fac2776b629852663c3