zram: fix out-of-bounds access in read_block_state()
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.
CVE-2026-89719
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89719
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "c0265342bff4fcaa2cdf13f4596244c18d4a7ae5",
"lessThan": "f5e9f3a75efc774f17ab3f33826630d7fe30c7ea",
"versionType": "git"
},
{
"status": "affected",
"version": "c0265342bff4fcaa2cdf13f4596244c18d4a7ae5",
"lessThan": "6d52c1f43ff39ea1ebf8f016e847677f0b60cf2b",
"versionType": "git"
},
{
"status": "affected",
"version": "c0265342bff4fcaa2cdf13f4596244c18d4a7ae5",
"lessThan": "e7dbcb7a561a21e9a8f5b5fa90bb95aefbd0739d",
"versionType": "git"
},
{
"status": "affected",
"version": "c0265342bff4fcaa2cdf13f4596244c18d4a7ae5",
"lessThan": "5e458fa714a55b6b64a9fe0c6d4fa609609f9ec3",
"versionType": "git"
},
{
"status": "affected",
"version": "c0265342bff4fcaa2cdf13f4596244c18d4a7ae5",
"lessThan": "391f057f44a51cc9418da5cba78b014324174264",
"versionType": "git"
}
],
"programFiles": [
"drivers/block/zram/zram_drv.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.18"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.18",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.51",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/block/zram/zram_drv.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89719
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46716 · Revision 1
- Added to Heist Feed
- Publisher date