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-2025-40006

7.8 · HIGH
Published Oct 20, 2025 EPSS 0.19% (8th pctl)

Overview

CVE-2025-40006 is a high-severity vulnerability. It was published on October 20, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, 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/hugetlb: fix folio is still mapped when deleted

Migration may be raced with fallocating hole. remove_inode_single_folio

will unmap the folio if the folio is still mapped. However, it's called

without folio lock. If the folio is migrated and the mapped pte has been

converted to migration entry, folio_mapped() returns false, and won't

unmap it. Due to extra refcount held by remove_inode_single_folio,

migration fails, restores migration entry to normal pte, and the folio is

mapped again. As a result, we triggered BUG in filemap_unaccount_folio.

The log is as follows:

BUG: Bad page cache in process hugetlb pfn:156c00

page: refcount:515 mapcount:0 mapping:0000000099fef6e1 index:0x0 pfn:0x156c00

head: order:9 mapcount:1 entire_mapcount:1 nr_pages_mapped:0 pincount:0

aops:hugetlbfs_aops ino:dcc dentry name(?):"my_hugepage_file"

flags: 0x17ffffc00000c1(locked|waiters|head|node=0|zone=2|lastcpupid=0x1fffff)

pa

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-2025-40006?

CVE-2025-40006 is a high-severity vulnerability. It was published on October 20, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-40006?

This vulnerability has a CVSS 3.1 base score of 7.8, 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-2025-40006?

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-2025-40006?

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