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-40950

5.5 · MEDIUM
Published Jul 12, 2024 linux EPSS 0.21% (11th pctl)

Overview

CVE-2024-40950 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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: huge_memory: fix misused mapping_large_folio_support() for anon folios

When I did a large folios split test, a WARNING "[ 5059.122759][ T166]

Cannot split file folio to non-0 order" was triggered. But the test cases

are only for anonmous folios. while mapping_large_folio_support() is only

reasonable for page cache folios.

In split_huge_page_to_list_to_order(), the folio passed to

mapping_large_folio_support() maybe anonmous folio. The folio_test_anon()

check is missing. So the split of the anonmous THP is failed. This is

also the same for shmem_mapping(). We'd better add a check for both. But

the shmem_mapping() in __split_huge_page() is not involved, as for

anonmous folios, the end parameter is set to -1, so (head[i].index >= end)

is always false. shmem_mapping() is not called.

Also add a VM_WARN_ON_ONCE() in mapping_large_folio_support() for anon

mapping, So we can detect the wrong use more easily.

T

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 >= 6.9, < 6.9.7 Affected

Frequently Asked Questions

What is CVE-2024-40950?

CVE-2024-40950 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-40950?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-40950?

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-40950?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-40950 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.