CVE-2023-53178: Linux kernel zswap writeback race condition
- Vendor
- Linux
CVE-2023-53178 is a race condition in the Linux kernel's zswap writeback mechanism that can corrupt memory by restoring data belonging to a different page. During writeback, zswap-shrink work retains a reference to an entry after its swap offset has been invalidated and reused for another page. Replacing the entry in the zswap tree does not invalidate that local reference, allowing stale writeback work to overwrite the reused swap slot with the previous page's data. A subsequent swap-in therefore returns incorrect data. The fix checks, after swap-cache allocation in the ZSWAP_SWAPCACHE_NEW case, that the locally referenced zswap_entry still matches the entry in the zswap tree and aborts writeback if it has been invalidated or replaced.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local unprivileged user may trigger incorrect page contents, causing application data corruption, system instability, or denial of service. Triggering the race requires specific concurrent memory-management activity and is timing-dependent. Arbitrary code execution, privilege escalation, and confidentiality compromise are not established.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific vendor workaround is available. Upgrade to a fixed release; if the current product branch has no fix, migrate to a branch that includes one.
Remediation
Patch, then assume compromise.
Install the distribution- or product-specific kernel update addressing CVE-2023-53178 and reboot into the updated kernel. Fixed releases include Amazon Linux 2 kernel 5.4.302-229.501, RHEL 8.10 kernel 4.18.0-553.83.1.el8_10, RHEL 8.10 kernel-rt 4.18.0-553.83.1.rt7.424.el8_10, and RHEL 9.4 kernel 5.14.0-427.97.1.el9_4. On Amazon Linux 2, use 'yum update kernel' or 'yum update --advisory ALAS2KERNEL-5.4-2026-133'. Other supported release streams require their corresponding vendor updates. The underlying correction validates the current zswap tree entry before committing writeback and rejects stale entries.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-53178 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2023-53178 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-53178?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2023-53178.
- Is there a patch for CVE-2023-53178?
- Install the distribution- or product-specific kernel update addressing CVE-2023-53178 and reboot into the updated kernel. Fixed releases include Amazon Linux 2 kernel 5.4.302-229.501, RHEL 8.10 kernel 4.18.0-553.83.1.el8_10, RHEL 8.10 kernel-rt 4.18.0-553.83.1.rt7.424.el8_10, and RHEL 9.4 kernel 5.14.0-427.97.1.el9_4.
- What products are affected by CVE-2023-53178?
- Linux Kernel.
- How severe is CVE-2023-53178?
- CVE-2023-53178 has a CVSS v3.1 score of 4.7 (Medium) and an EPSS score of 0.18% (4th percentile) as of Oct 25, 2026.
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.