From mboxrd@z Thu Jan 1 00:00:00 1970 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 E538E45C70F for ; Fri, 11 Sep 2026 20:04:08 +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=1789157057; cv=none; b=kKa6SulJNkZPV9QRcyTjsrWSsou2qPIrzP6igIrGIZx9eJWAUa2dkiT105f47EjkXFAigYrcAPct/5B3fGje2IljQzva77C47CksXiSpCJ8AROs+pVyg0vMXh9eFnLz8LSzAQxlDP2eaejqD+XP3BlQJDcCCDjZCyl+7EPktqGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157057; c=relaxed/simple; bh=dEodbOKtOXfFZMCOJ9pa2Y9oaMDmEZjwmTkqd6+3YyQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DV7fPyfCo/AwlZrl4dsGKaaqraIgxLIpcww1jtMZbo5NfMn/XmdpnHRPIC7aNsjlq9TKfItSotTdVRGRFlrtbpYisX7Dh8+RYzT/6U1iUxzZ0lB1yb1QEtU4BeIBDJKTga85UFwWWN+pJQEBv4mP7YwXsVPj5USZnLFOI5SaRsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pQAI0GFS; 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="pQAI0GFS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0655E1F00893; Fri, 11 Sep 2026 20:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157048; bh=4P5k1MCahQCiE8AllKp6MrSeLs+ey9gk0qOgGBuT+HA=; h=From:To:Cc:Subject:Date:Reply-To; b=pQAI0GFSDy414YaODPfKlqpg2KJ89w04NbvJpLxM8bB4G1HYbWvVCqQ5glZdrf9ui I0fMtDYUylkBbz+R9P/mj9OrCZfiYoDnioV209qamg4dFwM57R102JH0bMNuIBlRBn hjJ+3YIEoBQ3UyMv771oCQRIvJIG17/Rpd2rWb70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89719: zram: fix out-of-bounds access in read_block_state() Date: Fri, 11 Sep 2026 21:46:48 +0200 Message-ID: <2026091159-CVE-2026-89719-b710@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=2458; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ng8YKAnwShM50K0SaaS7xKm7sBOBqNVoY7ZPsoicvWA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIjvOvLK8UPWgNurb93O1/ZcZsyaK+Fw+/vpQsFiX4 jSXzLCJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+aYM82x9Lijd72Hb/qco o2rS+iU3Ba/FRzMsmPmX3ZaPWf3ipsUZZx8az+RebdfEBwA= 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 out-of-bounds access in read_block_state() read_block_state() calculates nr_pages before taking dev_lock. If the device is reset and reinitialized with a smaller disksize before lock acquisition, nr_pages still describes the old table. The subsequent loop can then call slot_lock() past the end of the newly allocated table. Read disksize after acquiring dev_lock and checking that the device is initialized. The read lock then keeps the table and its bound stable for the duration of the scan. The Linux kernel CVE team has assigned CVE-2026-89719 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 and fixed in 6.18.51 with commit e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d Issue introduced in 4.18 with commit c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 and fixed in 7.2.4 with commit 5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3 Issue introduced in 4.18 with commit c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 and fixed in 7.3-rc1 with commit 391f057f44a51cc9418da5cba78b014324174264 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-89719 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/e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d https://git.kernel.org/stable/c/5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3 https://git.kernel.org/stable/c/391f057f44a51cc9418da5cba78b014324174264