{"id":"CVE-2026-89719","state":"PUBLISHED","title":"zram: fix out-of-bounds access in read_block_state()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nzram: fix out-of-bounds access in read_block_state()\n\nread_block_state() calculates nr_pages before taking dev_lock.  If the\ndevice is reset and reinitialized with a smaller disksize before lock\nacquisition, nr_pages still describes the old table.  The subsequent loop\ncan then call slot_lock() past the end of the newly allocated table.\n\nRead disksize after acquiring dev_lock and checking that the device is\ninitialized.  The read lock then keeps the table and its bound stable for\nthe duration of the scan.","publishedAt":"2026-09-11T19:46:32.185Z","updatedAt":"2026-10-30T12:32:51.769Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"fee53224c8261541cf310b57ac7c77a80e144483","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"26a55336be91004dbd438f3b89b0c31617459976","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"a189cae92e97d90a9553740f5558d6f74446d3d1","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"f5e9f3a75efc774f17ab3f33826630d7fe30c7ea","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"391f057f44a51cc9418da5cba78b014324174264","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]}],"references":["https://git.kernel.org/stable/c/fee53224c8261541cf310b57ac7c77a80e144483","https://git.kernel.org/stable/c/26a55336be91004dbd438f3b89b0c31617459976","https://git.kernel.org/stable/c/a189cae92e97d90a9553740f5558d6f74446d3d1","https://git.kernel.org/stable/c/f5e9f3a75efc774f17ab3f33826630d7fe30c7ea","https://git.kernel.org/stable/c/6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b","https://git.kernel.org/stable/c/e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d","https://git.kernel.org/stable/c/5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3","https://git.kernel.org/stable/c/391f057f44a51cc9418da5cba78b014324174264"],"weaknesses":[],"ingestedAt":"2026-10-30T12:52:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89719.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89719","state":"PUBLISHED","datePublished":"2026-09-11T19:46:32.185Z","dateUpdated":"2026-10-30T12:32:51.769Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.752Z"},"containers":{"cna":{"title":"zram: fix out-of-bounds access in read_block_state()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nzram: fix out-of-bounds access in read_block_state()\n\nread_block_state() calculates nr_pages before taking dev_lock.  If the\ndevice is reset and reinitialized with a smaller disksize before lock\nacquisition, nr_pages still describes the old table.  The subsequent loop\ncan then call slot_lock() past the end of the newly allocated table.\n\nRead disksize after acquiring dev_lock and checking that the device is\ninitialized.  The read lock then keeps the table and its bound stable for\nthe duration of the scan."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"fee53224c8261541cf310b57ac7c77a80e144483","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"26a55336be91004dbd438f3b89b0c31617459976","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"a189cae92e97d90a9553740f5558d6f74446d3d1","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"f5e9f3a75efc774f17ab3f33826630d7fe30c7ea","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3","versionType":"git"},{"version":"c0265342bff4fcaa2cdf13f4596244c18d4a7ae5","status":"affected","lessThan":"391f057f44a51cc9418da5cba78b014324174264","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fee53224c8261541cf310b57ac7c77a80e144483"},{"url":"https://git.kernel.org/stable/c/26a55336be91004dbd438f3b89b0c31617459976"},{"url":"https://git.kernel.org/stable/c/a189cae92e97d90a9553740f5558d6f74446d3d1"},{"url":"https://git.kernel.org/stable/c/f5e9f3a75efc774f17ab3f33826630d7fe30c7ea"},{"url":"https://git.kernel.org/stable/c/6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b"},{"url":"https://git.kernel.org/stable/c/e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d"},{"url":"https://git.kernel.org/stable/c/5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3"},{"url":"https://git.kernel.org/stable/c/391f057f44a51cc9418da5cba78b014324174264"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:32:51.769Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.10.273"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.15.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.12.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}