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 8EC11490BF3 for ; Fri, 25 Sep 2026 10:26:36 +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=1790331997; cv=none; b=YDSUK4ICgj1IxS5IfWbH3A7ShyQqF8udd0Jy8AWV6qni331Sx0Yv9dmoVtzNCH9S3ZD92+kktIf5JLKls4CrUnwMJpGgQqQfU8FYib49Z8zqZ80+BDVen6uCmhBVwMWPZFJpwB87ld22/qxUqoPCfvPQdri+sRpQFZhs4X2dmnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331997; c=relaxed/simple; bh=W1YMTnyUu6z6kk3Nkbs+UZdt7QawJncutTKxGlC5tRc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XctXEKnGlL65OkSaql6sSE6CU69yhO4RSckGEN2FLHL6XAZF4NQgPan/dixcI2tab3OEGobEfxVDJH+wTvhObuz+lBsyZLTcDPBkXiHk2xr/6P+CW5XpwhDL7wYrAZUyfvjKoTiGYexHf0b+dAtkp8fhxwi2zrNsbuXA9zXD3LU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FvgEzSes; 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="FvgEzSes" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 859991F000FF; Fri, 25 Sep 2026 10:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331996; bh=dLdUPoUCcH/pOTF5A80PzCU+DBClRh6ai8CWC+mlYSo=; h=From:To:Cc:Subject:Date:Reply-To; b=FvgEzSesLnxb6uoIHf+sLgY7NfStNGSd+vKebbAi00p8rne+klsngJ9L8gG99suW/ fuz53ydyJkHotszSiynU1/UeFV+vJpswP23jBlyNu2Jt2dbpkqpoMSgWVylSETMc+7 o33PiN2ljR0QhkyRrqnCfTdRyNCb8g7TDEKwb6wU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97605: erofs: preserve LZMA decoders on resize failure Date: Fri, 25 Sep 2026 12:23:05 +0200 Message-ID: <2026092501-CVE-2026-97605-c1c3@gregkh> X-Mailer: git-send-email 2.55.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=3114; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Habv79IhTzY9hpap14JhASKJiIZTQsQIpnXUtR8m3ss=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvD3Fp6Z7e5/wf1gj3xLhVipkoG8ZfuZ2xWbVoCAPW fHK95kdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMBFbS4b5EU4sHjtuti35yZhm fJ1x4+34lw+CGeZniJUprgg6NynT7kQsQ3C7q+iriMsA 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: erofs: preserve LZMA decoders on resize failure The pool-resize path frees each stream's old decoder before allocating its replacement. If an allocation fails after some streams have already been replaced, the failed stream is put back on the list with state == NULL. z_erofs_lzma_max_dictsize is still advanced as if the whole pool had been resized. An existing LZMA mount can select the broken stream and pass NULL to xz_dec_microlzma_reset(). A retry at the same size also skip another resize attempt. Since the global maximum was advanced, thus, the invalid state is left unrepaired. Allocate each replacement before freeing the old decoder, temporarily retaining one old decoder during allocation. Stop at the first failure and advance z_erofs_lzma_max_dictsize only after all streams satisfy the request. Record each stream's dictionary capacity so retries can skip streams already enlarged before a partial failure. The Linux kernel CVE team has assigned CVE-2026-97605 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 6.12.111 with commit 604ce546e1b9f35b1f45588004f53fac6b2869c1 Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 6.18.53 with commit 0b3c8c39e50249470f00a5f73c288b95a55ab576 Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 7.2.7 with commit 38e9e07ac02a9453a117410776f1502a9980997e Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 7.3-rc3 with commit 617d0d8d199ba1790c94310fd75a22d01c97a8d6 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-97605 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/erofs/decompressor_lzma.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/604ce546e1b9f35b1f45588004f53fac6b2869c1 https://git.kernel.org/stable/c/0b3c8c39e50249470f00a5f73c288b95a55ab576 https://git.kernel.org/stable/c/38e9e07ac02a9453a117410776f1502a9980997e https://git.kernel.org/stable/c/617d0d8d199ba1790c94310fd75a22d01c97a8d6