CVE-2026-89719: zram: fix out-of-bounds access in read_block_state()

Published Sep 11, 2026
·
Updated

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

zram: fix out-of-bounds access in readblockstate()

readblockstate() calculates nrpages before taking devlock. If the device is reset and reinitialized with a smaller disksize before lock acquisition, nrpages still describes the old table. The subsequent loop can then call slotlock() past the end of the newly allocated table.

Read disksize after acquiring devlock and checking that the device is initialized. The read lock then keeps the table and its bound stable for the duration of the scan.

Affected Software

1 affected component
Linux Kernel zram

Event History

Sep 11, 2026
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
Description

Frequently Asked Questions

1

What runtime sequence is required for the unsafe access to occur?

A zram device must be reset and reinitialized with a smaller disksize after read_block_state() calculates its page count but before it acquires dev_lock. The later scan can then use the stale, larger count against the newly allocated table.

2

What does the fix change to prevent the race?

It reads disksize only after acquiring dev_lock and confirming that the device is initialized. The read lock keeps the table and its bounds stable for the scan.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203