CVE-2024-26832

mm: zswap: fix missing folio cleanup in writeback race path

MEDIUM
5.5
CVSS Score
Published: April 17, 2024 at 10:10 AM UTC
Updated: June 17, 2026 at 07:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: mm: zswap: fix missing folio cleanup in writeback race path In zswap_writeback_entry(), after we get a folio from __read_swap_cache_async(), we grab the tree lock again to check that the swap entry was not invalidated and recycled. If it was, we delete the folio we just added to the swap cache and exit. However, __read_swap_cache_async() returns the folio locked when it is newly allocated, which is always true for this path, and the folio is ref'd. Make sure to unlock and put the folio before returning. This was discovered by code inspection, probably because this path handles a race condition that should not happen often, and the bug would not crash the system, it will only strand the folio indefinitely.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.3.46.1.30 ≤ v < 6.1.806.3.4 ≤ v < 6.46.4 ≤ v < 6.6.196.4 ≤ v < 6.7.76.4 ≤ v < 6.86.7 ≤ v < 6.7.72cab13f500a6333bd2b853783ac76be9e4956f8a4fc7816089c5a32c29a4ec94b998e219dfb9466.1.306.3.46.8 rc16.8 rc26.8 rc36.8 rc46.8 rc5ba700ea13bf0105a4773c654f7d3bef8adb64ab2
Vendor states this is fixed in 14f1992430ef9e647b02aa8ca12c5bcb9a1dffea (fixed)
Vendor states this is fixed in 6156277d1b26cb3fdb6fcbf0686ab78268571644 (fixed)
Vendor states this is fixed in e2891c763aa2cff74dd6b5e978411ccf0cf94abe (fixed)
Vendor states this is fixed in e3b63e966cac0bf78aaa1efede1827a252815a1d (fixed)
Vendor states this is fixed in 6.1.80 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.6.19 (unaffected)
Vendor states this is fixed in 6.7.7 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/14f1992430ef9e647b02aa8ca12c5bcb9a1dffea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6156277d1b26cb3fdb6fcbf0686ab78268571644
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e2891c763aa2cff74dd6b5e978411ccf0cf94abe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3b63e966cac0bf78aaa1efede1827a252815a1d

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-459

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card