zram: fix out-of-bounds access in read_block_state() (Linux Linux)

CVE-2026-89719
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < fee53224c8261541cf310b57ac7c77a80e144483 ; affected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < 26a55336be91004dbd438f3b89b0c31617459976 ; affected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < a189cae92e97d90a9553740f5558d6f74446d3d1 ; affected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < f5e9f3a75efc774f17ab3f33826630d7fe30c7ea ; affected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < 6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b ; affected c0265342bff4fcaa2cdf13f4596244c18d4a7ae5 < e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d
Linux · Linuxaffected 4.18 ; unaffected 0 < 4.18 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD