# CVE-2026-89718: zram: fix out-of-bounds access in writeback\_store()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-11T19:46:31.443Z
- **Modified:** 2026-10-30T13:20:27.450Z

## Who should check

- Anyone running Linux \>= a939888ec38bf1f33e4a903056677e92a4844244, \< f1c5611f699a3aa2a85ebd5fec03dc9bc501e6d0; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< c2745e657f0974871fbc60d46d48c2b04e581330; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 4d82d60178b02797dbe529e01ac211b26670c49f; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< ef073edd7cfd31aeb90eeab23273102c601f4d8e; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 07a82a66f8c1894d92e51d97542c32ebf2c51b09; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 894913e2d35c46ff19a77530907771ae57862b96
- Anyone running Linux 5.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

zram: fix out-of-bounds access in writeback\_store()

Patch series "zram: fix stale scan bounds after reinitialization".

Both writeback\_store() and read\_block\_state() derive their table scan
bounds from zram-\>disksize before acquiring dev\_lock.  If the device is
reset and reinitialized with a smaller disksize between that read and lock
acquisition, the bound can describe the old table while the scan operates
on the new one.  This can lead to out-of-bounds slot accesses.

Move both bound calculations under dev\_lock so each bound remains
consistent with the table throughout its scan.  Keep the fixes separate
because the affected interfaces originate from different commits and can
be backported independently.


This patch (of 2):

writeback\_store() calculates the table scan bounds before taking dev\_lock.
A reset followed by reconfiguration with a smaller disksize can therefore
replace zram-\>table while writeback\_store() is waiting for the lock.  Once
it acquires the lock, it sees an initialized device but scans the new
table using the old upper bound, resulting in an out-of-bounds access.

Calculate the number of pages while holding dev\_lock so the scan bound
matches the table protected by the lock.

## Affected and fixed versions

- Linux: \>= a939888ec38bf1f33e4a903056677e92a4844244, \< f1c5611f699a3aa2a85ebd5fec03dc9bc501e6d0; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< c2745e657f0974871fbc60d46d48c2b04e581330; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 4d82d60178b02797dbe529e01ac211b26670c49f; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< ef073edd7cfd31aeb90eeab23273102c601f4d8e; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 07a82a66f8c1894d92e51d97542c32ebf2c51b09; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 894913e2d35c46ff19a77530907771ae57862b96 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 894913e2d35c46ff19a77530907771ae57862b96 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89718. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89718.md
Affected: Linux >= a939888ec38bf1f33e4a903056677e92a4844244, < f1c5611f699a3aa2a85ebd5fec03dc9bc501e6d0; >= a939888ec38bf1f33e4a903056677e92a4844244, < c2745e657f0974871fbc60d46d48c2b04e581330; >= a939888ec38bf1f33e4a903056677e92a4844244, < 4d82d60178b02797dbe529e01ac211b26670c49f; >= a939888ec38bf1f33e4a903…
Fixed in: Linux 4d82d60178b02797dbe529e01ac211b26670c49f, Linux 07a82a66f8c1894d92e51d97542c32ebf2c51b09, Linux 894913e2d35c46ff19a77530907771ae57862b96

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89718 being exploited?

There is no confirmed exploitation: CVE-2026-89718 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89718?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89718?

Linux \>= a939888ec38bf1f33e4a903056677e92a4844244, \< f1c5611f699a3aa2a85ebd5fec03dc9bc501e6d0; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< c2745e657f0974871fbc60d46d48c2b04e581330; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 4d82d60178b02797dbe529e01ac211b26670c49f; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< ef073edd7cfd31aeb90eeab23273102c601f4d8e; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 07a82a66f8c1894d92e51d97542c32ebf2c51b09; \>= a939888ec38bf1f33e4a903056677e92a4844244, \< 894913e2d35c46ff19a77530907771ae57862b96; Linux 5.0.

### Is there a fix for CVE-2026-89718?

Yes. Fixed in Linux 4d82d60178b02797dbe529e01ac211b26670c49f, Linux 07a82a66f8c1894d92e51d97542c32ebf2c51b09, Linux 894913e2d35c46ff19a77530907771ae57862b96. Upgrade Linux to 894913e2d35c46ff19a77530907771ae57862b96 or later.

### How do I check if I'm affected by CVE-2026-89718?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f1c5611f699a3aa2a85ebd5fec03dc9bc501e6d0>
- other: <https://git.kernel.org/stable/c/c2745e657f0974871fbc60d46d48c2b04e581330>
- other: <https://git.kernel.org/stable/c/4d82d60178b02797dbe529e01ac211b26670c49f>
- other: <https://git.kernel.org/stable/c/ef073edd7cfd31aeb90eeab23273102c601f4d8e>
- other: <https://git.kernel.org/stable/c/07a82a66f8c1894d92e51d97542c32ebf2c51b09>
- other: <https://git.kernel.org/stable/c/894913e2d35c46ff19a77530907771ae57862b96>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89718>

HTML: <https://flawdb.com/CVE-2026-89718> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89718>
