CVE-2026-53185: zram: fix use-after-free in zram_bvec_write_partial()

Published Jun 25, 2026
·
Updated

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

zram: fix use-after-free in zrambvecwritepartial()

zramreadpage() picks the sync or async backing device read path based on whether the parent bio is NULL. zrambvecwritepartial() passes its parent bio down, so for ZRAMWB slots the read is dispatched asynchronously and zramreadpage() returns 0 while the bio is still in flight. The caller then runs memcpyfrombvec(), zramwritepage() and freepage() on the buffer, leaving the async read to write into a freed page.

zrambvecreadpartial() was switched to NULL in commit 4e3c87b9421d ("zram: fix synchronous reads") for the same reason; the writepartial counterpart was missed.

Affected Software

12 affected components
Linux Kernel
Linux Linux kernel>=4.14<6.6.143
Linux Linux kernel>=6.7<6.12.94
Linux Linux kernel>=6.13<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6
Linux Linux kernel=7.1-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel zram to a version that resolves this vulnerability.

    Fixed in 4e3c87b9421d
  2. Configuration

    Patch the kernel to include the resolution of the ZRAM use-after-free in zram_bvec_write_partial(), which was caused by memcpy_from_bvec()/zram_write_page()/__free_page() leaving an async read to write into a freed buffer while zram_read_page() returns 0; incorporate the missing counterpart missed after the NULL switch in zram_bvec_read_partial() (commit 4e3c87b9421d).

    Linux kernel zram zram_bvec_write_partial() / zram_bvec_read_partial() buffer handling = Apply the fix for the use-after-free described (ensure the freed buffer is not used by the async read and missed counterpart is handled)

Event History

Jun 25, 2026
CVE Published
via MITRE·08:38 AM
Data Sourced
via MITRE·08:38 AM
DescriptionSeverity
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·10:02 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What level of access is required to exploit this issue?

The CVSS vector indicates local access is required, with low privileges and no user interaction. It does not indicate a network-accessible attack path.

2

What is the potential security impact if exploitation succeeds?

The CVSS assessment rates confidentiality, integrity, and availability impact as high. The use-after-free occurs when an asynchronous backing-device read can write to a page after that page has been freed.

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