CVE-2026-89716: zram: validate deflate params
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
zram: validate deflate params
We must validate user-supplied deflate winbits before we pass it to zlib_deflate_workspacesize(), which triggers BUG_ON() if winbits value is outside of valid ranges.
The Linux kernel CVE team has assigned CVE-2026-89716 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit dc75a0d93bd5a1c64104efb4ec680463afbdd755 and fixed in 6.18.50 with commit 923578d0f0d0703c3db61ab35dc37075ae53b0bd Issue introduced in 6.16 with commit dc75a0d93bd5a1c64104efb4ec680463afbdd755 and fixed in 7.2.4 with commit e23fac4ab2a5728386477b98a402a1042b21bffb Issue introduced in 6.16 with commit dc75a0d93bd5a1c64104efb4ec680463afbdd755 and fixed in 7.3-rc1 with commit ec7607ac4717ff521c9c1e9d8271c26293345513
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-89716
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/backend_deflate.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/923578d0f0d0703c3db61ab35dc37075ae53b0bd https://git.kernel.org/stable/c/e23fac4ab2a5728386477b98a402a1042b21bffb https://git.kernel.org/stable/c/ec7607ac4717ff521c9c1e9d8271c26293345513