Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-26960

7.0 · HIGH
Published May 1, 2024 linux CWE-362 EPSS 0.18% (7th pctl)

Overview

CVE-2024-26960 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.11, < 5.10.215 Affected

Frequently Asked Questions

What is CVE-2024-26960?

CVE-2024-26960 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-26960 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.