Menu

Star on GitHub · 3.4k

CVE-2024-40950

5.5 · MEDIUM

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 "[ 5…

Published Jul 12, 2024EPSS 0.21%

Overview

CVE-2024-40950 is a medium-severity vulnerability. 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, 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-40950?

CVE-2024-40950 is a medium-severity vulnerability. 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, 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-40950?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40950 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 MEDIUM CVEs from 2024

View all
LiveWatch live →