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 933D748097C for ; Tue, 5 May 2026 15:23:58 +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=1777994638; cv=none; b=lhq1seRuonmPkwJ7d2Efj6JQ5CorAMSe409vdO6DauyKtvIiRjyH/nvaHqNqgA0x3JXjQtMyNavH4MwqEdsb6IzR0NSTQylIANbl43iyJnIHP/tMjqRsuxRioMjwM76GFLSWUd2cjXVbzZP2eH86dnN1gLv3YtCDYGe/cCmShrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777994638; c=relaxed/simple; bh=gq6zVuX6cwUolIR4SDRP8Go0QInBulQIFj7+jFJod4M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EXuPNkM6U/ZjTK8WNRt2NwJ33JrWnRDbPOTAcriMj/stfQx7sWQ+z3EpHY8ory7WEskEKcSgNfJbneluwxscQBmP72VMwZomZ4SRtOJX8f+kNKM/Geg8wV8eQe57bms5/4eZ16CIOzXWQ5k2ZRc9dLjl0P4lETL7rVUv6aO9iHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V3fDNOgW; 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="V3fDNOgW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD557C2BCB4; Tue, 5 May 2026 15:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777994638; bh=gq6zVuX6cwUolIR4SDRP8Go0QInBulQIFj7+jFJod4M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=V3fDNOgWcnudHAadww6u1vcdtCAQFz+DaewOTDxCOg/Dip+RKpJ+cErw8YadntbAJ 3b+77E7NG1kCWPjUR7t6IBJqc9MzOCX779Hr5cEEHerabTmj5ArsM1cqM1pQKGWT9p DGlAcj+bpcvljGUvAKZWjK3yEQFLvZe+0rkLh4AE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43065: ext4: always drain queued discard work in ext4_mb_release() Date: Tue, 5 May 2026 17:23:34 +0200 Message-ID: <2026050532-CVE-2026-43065-4766@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=4188; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Q2X0yG0BhlrMz/odvLHf8MbDudvzB8Uz9wEOqImn/0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/uEua/h//JpCnuGHL8yCbNb6Xy4KXnShRmmk+K7pLp SZp2Z2CjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIzAaGBf2PFF7NPPtmvgv3 C+GP2kL8819MFGKYw6P8YtZrVxZ3fbvfvH3ZfIz9rfOvAwA= 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: always drain queued discard work in ext4_mb_release() While reviewing recent ext4 patch[1], Sashiko raised the following concern[2]: > If the filesystem is initially mounted with the discard option, > deleting files will populate sbi->s_discard_list and queue > s_discard_work. If it is then remounted with nodiscard, the > EXT4_MOUNT_DISCARD flag is cleared, but the pending s_discard_work is > neither cancelled nor flushed. [1] https://lore.kernel.org/r/20260319094545.19291-1-qiang.zhang@linux.dev/ [2] https://sashiko.dev/#/patchset/20260319094545.19291-1-qiang.zhang%40linux.dev The concern was valid, but it had nothing to do with the patch[1]. One of the problems with Sashiko in its current (early) form is that it will detect pre-existing issues and report it as a problem with the patch that it is reviewing. In practice, it would be hard to hit deliberately (unless you are a malicious syzkaller fuzzer), since it would involve mounting the file system with -o discard, and then deleting a large number of files, remounting the file system with -o nodiscard, and then immediately unmounting the file system before the queued discard work has a change to drain on its own. Fix it because it's a real bug, and to avoid Sashiko from raising this concern when analyzing future patches to mballoc.c. The Linux kernel CVE team has assigned CVE-2026-43065 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 5.15.203 with commit e96c2354b170aaa53300c8e8fd59e41b133160f7 Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 6.1.168 with commit c360e9d0def4f4ae03254a67c683103908555b75 Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 6.6.131 with commit 1c82f863f090ab899085bdfade073313384b514b Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 6.12.80 with commit 9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8 Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 6.18.21 with commit 812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098 Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 6.19.11 with commit b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327 Issue introduced in 5.15 with commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33 and fixed in 7.0 with commit 9ee29d20aab228adfb02ca93f87fb53c56c2f3af 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-43065 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/mballoc.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/e96c2354b170aaa53300c8e8fd59e41b133160f7 https://git.kernel.org/stable/c/c360e9d0def4f4ae03254a67c683103908555b75 https://git.kernel.org/stable/c/1c82f863f090ab899085bdfade073313384b514b https://git.kernel.org/stable/c/9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8 https://git.kernel.org/stable/c/812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098 https://git.kernel.org/stable/c/b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327 https://git.kernel.org/stable/c/9ee29d20aab228adfb02ca93f87fb53c56c2f3af