Menu

Star on GitHub · 3.2k

CVE-2024-26960

7.0 · HIGH

In the Linux kernel, the following vulnerability has been resolved: mm: swap: fix race between free_swap_and_cache() and swapoff() There was previously a theoretical window where swapoff() could…

Published May 1, 2024CWE-362EPSS 0.18%

Overview

CVE-2024-26960 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

mm: swap: fix race between free_swap_and_cache() and swapoff()

There was previously a theoretical window where swapoff() could run and

teardown a swap_info_struct while a call to free_swap_and_cache() was

running in another thread. This could cause, amongst other bad

possibilities, swap_page_trans_huge_swapped() (called by

free_swap_and_cache()) to access the freed memory for swap_map.

This is a theoretical problem and I haven't been able to provoke it from a

test case. But there has been agreement based on code review that this is

possible (see link below).

Fix it by using get_swap_device()/put_swap_device(), which will stall

swapoff(). There was an extra check in _swap_info_get() to confirm that

the swap entry was not free. This isn't present in get_swap_device()

because it doesn't make sense in general due to the race between getting

the reference and swapoff. So I've added an equivalent check directly in

f

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26960?

CVE-2024-26960 is a high-severity vulnerability. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

How severe is CVE-2024-26960?

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26960?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26960?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26960 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all