Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 09D3F3DDDA1 for ; Wed, 27 May 2026 12:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884536; cv=none; b=Jjl/oN7xSaOa/Ql1hhHimB9axiDc1hUWiN0B9U2riGJdtc1sSW3C/0aX1PTSLxX4rrlf9DqMWIUGWqG1Xmf55ju7Pdzx8zSThlG3eFzLnE8Zn6a5fRTK+0uUa9hZZiW3C7vf0pOezdDixRXwjwAsBTUqyCuUqkYDbxRtIDlzI2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884536; c=relaxed/simple; bh=Z50tmGvxqXfcKO+3+PQWmLaEH+ZDEWhXxb3Cyzv5feo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EzqL2YX0OmdDG8P2RvPZL9eiFTlNwz0cE0D7juZOzFVOCv3dkExiUC1UPdZbtCJd0yLb5Jub5Im7d024i3ys7IJr+YLWmiz57XmRwT1DOTbrohQ7nuM8J8c3qAoCo2iyFdulEMN7qcqBrzZobf/qpyQnyV/K3+D4ozlc48oYHzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KGgTRz/B; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KGgTRz/B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63FA41F000E9; Wed, 27 May 2026 12:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884534; bh=ycfQN5ujIfiJmn5d7OBTuiqCRUOzH/gHiCUGmw2Uay4=; h=From:To:Cc:Subject:Date:Reply-To; b=KGgTRz/Be33oNnr7enOQaGLgjQ6jyu2c8qD3YmmVqFBKy0tX1LLpyG7JPlPEm+Dhm 96Gb+pVg01nlcshQwiva9UWFits9wMMBRrq0CPbYF2Cnmll+EdnIqTaoG326/Yl1JS dGQxlLnUNrSvMkHoT9GPujA4o58zogpNiqQ0ciFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45892: ext4: drop extent cache after doing PARTIAL_VALID1 zeroout Date: Wed, 27 May 2026 14:18:54 +0200 Message-ID: <2026052718-CVE-2026-45892-b406@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3798; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FGd76kNim0KCMA8q2Z2a9DU2v2D6uBO3k7Glr5uvOhM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD7nWyWXf/HHi6blb81RKOzg9+JjfzTmr9GPmTMng5 rt7H5672RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOWHFML/C+/u/qK6zzXvP ur+Z026vLb78zAaGOdxVhv9K64+qXN76Nv/+6o9KJpOaPAA= 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: drop extent cache after doing PARTIAL_VALID1 zeroout When splitting an unwritten extent in the middle and converting it to initialized in ext4_split_extent() with the EXT4_EXT_MAY_ZEROOUT and EXT4_EXT_DATA_VALID2 flags set, it could leave a stale unwritten extent. Assume we have an unwritten file and buffered write in the middle of it without dioread_nolock enabled, it will allocate blocks as written extent. 0 A B N [UUUUUUUUUUUU] on-disk extent U: unwritten extent [UUUUUUUUUUUU] extent status tree [--DDDDDDDD--] D: valid data |<- ->| ----> this range needs to be initialized ext4_split_extent() first try to split this extent at B with EXT4_EXT_DATA_PARTIAL_VALID1 and EXT4_EXT_MAY_ZEROOUT flag set, but ext4_split_extent_at() failed to split this extent due to temporary lack of space. It zeroout B to N and leave the entire extent as unwritten. 0 A B N [UUUUUUUUUUUU] on-disk extent [UUUUUUUUUUUU] extent status tree [--DDDDDDDDZZ] Z: zeroed data ext4_split_extent() then try to split this extent at A with EXT4_EXT_DATA_VALID2 flag set. This time, it split successfully and leave an written extent from A to N. 0 A B N [UUWWWWWWWWWW] on-disk extent W: written extent [UUUUUUUUUUUU] extent status tree [--DDDDDDDDZZ] Finally ext4_map_create_blocks() only insert extent A to B to the extent status tree, and leave an stale unwritten extent in the status tree. 0 A B N [UUWWWWWWWWWW] on-disk extent W: written extent [UUWWWWWWWWUU] extent status tree [--DDDDDDDDZZ] Fix this issue by always cached extent status entry after zeroing out the second part. The Linux kernel CVE team has assigned CVE-2026-45892 to this issue. Affected and fixed versions =========================== Fixed in 6.6.130 with commit f0931a5c17005a0c4fc35bd1a001245effc3354b Fixed in 6.12.75 with commit d8ee559fccdef713f058cfe5f2c03dc9b18be3b1 Fixed in 6.18.14 with commit c2ee51d684adca7645e4aa74adca13f6750390bc Fixed in 6.19.4 with commit a1b962a821e7a52d48212ae269b45808b4411267 Fixed in 7.0 with commit 6d882ea3b0931b43530d44149b79fcd4ffc13030 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-2026-45892 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/extents.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/f0931a5c17005a0c4fc35bd1a001245effc3354b https://git.kernel.org/stable/c/d8ee559fccdef713f058cfe5f2c03dc9b18be3b1 https://git.kernel.org/stable/c/c2ee51d684adca7645e4aa74adca13f6750390bc https://git.kernel.org/stable/c/a1b962a821e7a52d48212ae269b45808b4411267 https://git.kernel.org/stable/c/6d882ea3b0931b43530d44149b79fcd4ffc13030