CVE-2024-26960: Linux kernel swapoff race in free_swap_and_cache()
- Vendors
- Debian ProjectLinux
CVE-2024-26960 is a race condition in the Linux kernel memory-management swap subsystem between free_swap_and_cache() and swapoff(). While free_swap_and_cache() is processing a swap entry, swapoff() can tear down the associated swap_info_struct. This can cause swap_page_trans_huge_swapped(), which is called by free_swap_and_cache(), to access freed swap_map memory. The upstream fix protects the operation with get_swap_device()/put_swap_device(), preventing swapoff() from completing teardown during the affected operation, and adds an equivalent check that the swap entry is not free within free_swap_and_cache().
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.
Successful triggering may result in a use-after-free access to swap_map memory during swap-page handling. The issue was identified through code review and described as theoretical; a reproducible test case was not available, so further consequences are not established.
Mitigation
If you can’t patch tonight, do this now.
Apply the applicable vendor kernel update. No separate workaround is described.
Remediation
Patch, then assume compromise.
Install a Linux kernel update containing the upstream fix for CVE-2024-26960. The fix uses get_swap_device()/put_swap_device() around the affected processing so swapoff() is stalled until the operation completes, and adds a swap-entry-free check directly in free_swap_and_cache(). For SUSE systems, install the updated kernel packages supplied in SUSE-2024-2203 through the applicable product update channel.
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-2024-26960 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-26960 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-26960?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2024-26960.
- Is there a patch for CVE-2024-26960?
- Install a Linux kernel update containing the upstream fix for CVE-2024-26960. The fix uses get_swap_device()/put_swap_device() around the affected processing so swapoff() is stalled until the operation completes, and adds a swap-entry-free check directly in free_swap_and_cache().
- What products are affected by CVE-2024-26960?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2024-26960?
- CVE-2024-26960 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.26% (11th percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.