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 A59A1370D4C for ; Thu, 25 Jun 2026 08:45:13 +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=1782377114; cv=none; b=ooiaq9pGzBydFSMOB82eLRNbSkL4APu6tRl2ZZaFyvDx61EjX9y5xjuaHYb08WdGmu+4kAPnFLwY7UqqROGZIdl3HrBW1gU637f/ExQ176ikrTquADi67BhW1MBjfVVbgzJBCCFM0Pbwv2oL1N6XoAduyBalZG9YYfocPiKnhiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377114; c=relaxed/simple; bh=SUbZWkIf7brpZ7dCy5GFUWPor3DpQpcjOCWFd4bvNKs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o3tkCTUET/c6zfcclN8IgGXk0Lk8/wFGpazwN9DVR/HkDrLPPHGjpUhW2FeEkTtksHT0eQ408R7RXr3qMlFafoJzHKZIrCtaMNeP3qPQEmtr244SDcyEFpicsORmMzvrPU/MjBW2R9VQpoXVMZpYZChMY9FTSvHO8AYWIa7/srI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HbvLsqDd; 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="HbvLsqDd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD8DD1F000E9; Thu, 25 Jun 2026 08:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377113; bh=riiVoizaWzmU5+7ZJSHwELnlAf49Uf+mU76D461VmbA=; h=From:To:Cc:Subject:Date:Reply-To; b=HbvLsqDdZnDMJGc9Qv8JIDYUEWulD7MNBZqWJEFauBc+B93+K2kAuERqV2vUihIsx fxlHOSGUFRJifclxo5+n0V6uasQCK6WOdkuzgpBPHviVsDIXI18AcJHkYuOS+PJx31 5JOkJdPztbt5C4UOAxVsm1p1dZETiGTvgwVmG74M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53185: zram: fix use-after-free in zram_bvec_write_partial() Date: Thu, 25 Jun 2026 09:40:33 +0100 Message-ID: <2026062556-CVE-2026-53185-0922@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=3056; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Yj0XpYygkCdCgZ15kXtVYUJuNC/JbSSSNxUB8vyQVPc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L2P8lpRbsF1Nvyu4ojxdZb9Qm8fOtOfrD9X7HHdka zqTWf28I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyyJBhfsHTfNE1xxZp5iXx Po7rCdj5Zt9XBYb5fusLJkb4P1Xf4hYZ4rR14d8rnVN7AQ== 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: fix use-after-free in zram_bvec_write_partial() zram_read_page() picks the sync or async backing device read path based on whether the parent bio is NULL. zram_bvec_write_partial() passes its parent bio down, so for ZRAM_WB slots the read is dispatched asynchronously and zram_read_page() returns 0 while the bio is still in flight. The caller then runs memcpy_from_bvec(), zram_write_page() and __free_page() on the buffer, leaving the async read to write into a freed page. zram_bvec_read_partial() was switched to NULL in commit 4e3c87b9421d ("zram: fix synchronous reads") for the same reason; the write_partial counterpart was missed. The Linux kernel CVE team has assigned CVE-2026-53185 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 8e654f8fbff52ac483fb69957222853d7e2fc588 and fixed in 6.6.143 with commit 0c2821665ff71be3f4b07ecece384669f2877f6a Issue introduced in 4.14 with commit 8e654f8fbff52ac483fb69957222853d7e2fc588 and fixed in 6.12.94 with commit 77a602b505ce4802915853cfc435a4722fab3e64 Issue introduced in 4.14 with commit 8e654f8fbff52ac483fb69957222853d7e2fc588 and fixed in 6.18.36 with commit c96786d6ff1acc1d54d9241e97767554c1dfdd5b Issue introduced in 4.14 with commit 8e654f8fbff52ac483fb69957222853d7e2fc588 and fixed in 7.0.13 with commit 198b5a14cca27263b9c14b20114c8092de15dfcb Issue introduced in 4.14 with commit 8e654f8fbff52ac483fb69957222853d7e2fc588 and fixed in 7.1 with commit 732fd9f0b9c1cdc6dfd77162ded60df005182cc0 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-53185 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/0c2821665ff71be3f4b07ecece384669f2877f6a https://git.kernel.org/stable/c/77a602b505ce4802915853cfc435a4722fab3e64 https://git.kernel.org/stable/c/c96786d6ff1acc1d54d9241e97767554c1dfdd5b https://git.kernel.org/stable/c/198b5a14cca27263b9c14b20114c8092de15dfcb https://git.kernel.org/stable/c/732fd9f0b9c1cdc6dfd77162ded60df005182cc0