CVE-2024-26759
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-26759 is a race condition vulnerability in the Linux kernel's memory management subsystem, specifically in the swap cache handling mechanism. The vulnerability was discovered in early 2024 and affects the Linux kernel's memory management when skipping swapcache for SWP_SYNCHRONOUS_IO operations (Kernel Git).

Technical details

The vulnerability occurs when two or more threads attempt to swap in the same entry simultaneously, resulting in different pages (A, B) being allocated. The race condition manifests when one thread (T0) hasn't finished installing page A to the PTE while another thread (T1) completes swapping in page B, frees the entry, and potentially reuses it for swap out. This breaks the pte_same check because the PTE value remains unchanged, leading to an ABA problem where thread T0 installs a stale page A into the PTE (Kernel Git).

Impact

The vulnerability can lead to data corruption and potential data loss. For ZRAM devices, the issue is particularly severe as swap_free() allows the swap device to discard entry content, potentially causing data loss even if page B is not modified. The issue has been demonstrated to cause data loss in test environments with a reproduction rate of approximately once every 5 minutes (Kernel Git).

Exploitability

The vulnerability can be reliably triggered using a specially constructed reproducer that spawns multiple threads sharing the same memory region with a small swap device. The reproducer demonstrates the race condition by having pairs of threads update mapped pages in opposite directions while a dedicated thread continuously swaps out data using madvise (Kernel Git).

Mitigation and workarounds

The issue has been fixed by implementing a solution that reuses swapcache_prepare to pin the swap entry using the cache flag. This ensures only one thread can swap it in and prevents parallel code from putting the entry in the cache. The fix includes releasing the pin after PT unlock and adding a schedule_timeout_uninterruptible(1) call to prevent repeated page faults from wasting CPU resources (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80913NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesSep 04, 2026
CVE-2026-80905NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 04, 2026
CVE-2026-80898NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.18
NoYesSep 04, 2026
CVE-2026-80897NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80892NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management