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 5B9D940C5C9 for ; Wed, 27 May 2026 13:05:29 +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=1779887130; cv=none; b=tY+6qHPO0YOc9tZZRyFeS8NofC3GAn69pgI2x2k4ygbxRsmiY6teOU2c18Nf86FWe2IH5mdFX3ztr9fRlRTSq3hyzw4kspnlzX679HZ06gmEGimwIruiIwN31ZYzlQTd8Hug24d7ZC07LbI8fUvxsAtyrZpPI93Exj43pQnJHr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887130; c=relaxed/simple; bh=0iyJlvq7Tel100dWnlaS0lLc1BmUp0eC8wLPP/OAYP0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MLYxbpFuMne/iwt6HXG71ojRs59MerSCdSFu7OekfzuZS+AQIKoYFxGpqmmn2DhaP6Ev86Dkj02vxN/J0yhZIafo4m7HdWe4qMMTrlMsfSqhlYz7CSJL+4HA3bP5+fwuBNkauu8qHJppCoB/qek/q1vYvBhtbASg7Zf7atPDjgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qZ82iLnd; 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="qZ82iLnd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9E11F000E9; Wed, 27 May 2026 13:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887129; bh=KHD1h/A5l01l/J4rOe7GR72PCVxug3Zz9rXpGT17ri4=; h=From:To:Cc:Subject:Date:Reply-To; b=qZ82iLndcI/ZFC1TQBiaktGBBP3WMJw63M4jY/8QKEE5IO21494WPNO/dA+AU2HaL wJ4gY1cxJyUelccNOZdpSGv+s3jYeVn4h8B++tuKSAbB2m374bu6YZsGNXLIEQpDBb RRh5tBaQzhJ6UODYRVYm2yAC71hMo/MIjhvC5KVA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46089: zram: do not forget to endio for partial discard requests Date: Wed, 27 May 2026 15:00:20 +0200 Message-ID: <2026052702-CVE-2026-46089-7cbd@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=2894; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vu0E5tHx3tq7Qh8a2WkwghaZ5MGEDZNYt9G4o9PHO9M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir6ZNq7MUf/w2Ru331c6pnqWWSYdLJuc9+O6dMpmjT DEwZ7psRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykawbDPLOM809trNuWTtPZ kqsn1v38SbP/M4Z5Bt13W57E1+umHljFIqubJz/rBP9DAA== 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: zram: do not forget to endio for partial discard requests As reported by Qu Wenruo and Avinesh Kumar, the following getconf PAGESIZE 65536 blkdiscard -p 4k /dev/zram0 takes literally forever to complete. zram doesn't support partial discards and just returns immediately w/o doing any discard work in such cases. The problem is that we forget to endio on our way out, so blkdiscard sleeps forever in submit_bio_wait(). Fix this by jumping to end_bio label, which does bio_endio(). The Linux kernel CVE team has assigned CVE-2026-46089 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 0120dd6e4e202e19a0e011e486fb2da40a5ea279 and fixed in 6.6.140 with commit 2d1f18efccdb8b29552399d024c36b705447e975 Issue introduced in 6.4 with commit 0120dd6e4e202e19a0e011e486fb2da40a5ea279 and fixed in 6.12.86 with commit 35d3300f6357cfaa72db2721dc2b345b19bac5df Issue introduced in 6.4 with commit 0120dd6e4e202e19a0e011e486fb2da40a5ea279 and fixed in 6.18.27 with commit a02363f71a79b755daa78a70d6b217f9c13c8c85 Issue introduced in 6.4 with commit 0120dd6e4e202e19a0e011e486fb2da40a5ea279 and fixed in 7.0.4 with commit 68ce397e8236088fc53b9532d383a722288c8194 Issue introduced in 6.4 with commit 0120dd6e4e202e19a0e011e486fb2da40a5ea279 and fixed in 7.1-rc1 with commit e3668b371329ea036ff022ce8ecc82f8befcf003 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-46089 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: drivers/block/zram/zram_drv.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/2d1f18efccdb8b29552399d024c36b705447e975 https://git.kernel.org/stable/c/35d3300f6357cfaa72db2721dc2b345b19bac5df https://git.kernel.org/stable/c/a02363f71a79b755daa78a70d6b217f9c13c8c85 https://git.kernel.org/stable/c/68ce397e8236088fc53b9532d383a722288c8194 https://git.kernel.org/stable/c/e3668b371329ea036ff022ce8ecc82f8befcf003