Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2025-40006: mm/hugetlb: fix folio is still mapped when deleted

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 31/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.20% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 21ee79ce938127f88fe07e409c1817f477dbe7ea, 3e851448078f5b01f6264915df3cfef75e323a12, 7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7.

Low priority for now. Upgrade to Linux Linux 21ee79ce938127f88fe07e409c1817f477dbe7ea, 3e851448078f5b01f6264915df3cfef75e323a12, 7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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) page_type: f4(hugetlb) page dumped because: still mapped when deleted CPU: 1 UID: 0 PID: 395 Comm: hugetlb Not tainted 6.17.0-rc5-00044-g7aac71907bde-dirty #484 NONE Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015 Call Trace: <TASK> dump_stack_lvl+0x4f/0x70 filemap_unaccount_folio+0xc4/0x1c0 __filemap_remove_folio+0x38/0x1c0 filemap_remove_folio+0x41/0xd0 remove_inode_hugepages+0x142/0x250 hugetlbfs_fallocate+0x471/0x5a0 vfs_fallocate+0x149/0x380 Hold folio lock before checking if the folio is mapped to avold race with migration.

Published
Oct 20, 2025
Updated
Oct 19, 2026
EPSS
0.2% · 10th percentile
CWE
—

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CNA vs NVD score

NVD
—
CNA · Linux
7.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-40006

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 4.5affected
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before bc1c9ce8aeff45318332035dbef9713fb9e982d7affected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before 91f548e920fbf8be3f285bfa3fa045ae017e836daffected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before 3e851448078f5b01f6264915df3cfef75e323a12affected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before c1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39affected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before c9c2a51f91aea70e89b496cac360cd795a2b3c26affected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before 910d7749346c4b0acdc6e4adfdc4a9984281a206affected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before 21ee79ce938127f88fe07e409c1817f477dbe7eaaffected · git
    • 4aae8d1c051ea00b456da6811bc36d1f69de5445 and later · before 7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7affected · git
    • before 4.5not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.158-16.1.158-1
Debian:13linuxbefore 6.12.57-16.12.57-1
Debian:14linuxbefore 6.16.10-16.16.10-1
openSUSE:Leap 16.0dtb-aarch64before 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-64kbbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-defaultbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-default-basebefore 6.12.0-160000.8.1.160000.2.56.12.0-160000.8.1.160000.2.5
openSUSE:Leap 16.0kernel-docsbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-kvmsmallbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-obs-buildbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-obs-qabefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-rtbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-sourcebefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-symsbefore 6.12.0-160000.8.16.12.0-160000.8.1
openSUSE:Leap 16.0kernel-zfcpdumpbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Enterprise Server 16.0kernel-docsbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Enterprise Server 16.0kernel-kvmsmallbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Enterprise Server 16.0kernel-obs-qabefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Enterprise Server 16.0kernel-symsbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Enterprise Server 16.0kernel-zfcpdumpbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Micro 6.2kernel-64kbbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Micro 6.2kernel-defaultbefore 6.12.0-160000.8.16.12.0-160000.8.1
SUSE:Linux Micro 6.2kernel-default-basebefore 6.12.0-160000.8.1.160000.2.56.12.0-160000.8.1.160000.2.5
SUSE:Linux Micro 6.2kernel-rtbefore 6.12.0-160000.8.16.12.0-160000.8.1

+2

Other highest-scoring records for the same primary product.

  • CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation
    40Plan
  • CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment
    40Plan
  • CVE-2026-74475vxlan: use neigh_ha_snapshot() in route_shortcircuit()
    40Plan

Published before and after this one in the same product

  • ← EarlierCVE-2025-40003Oct 18, 2025 · net: mscc: ocelot: Fix use-after-free caused by cyclic delayed work
    0Monitor
  • ← EarlierCVE-2025-40004Oct 20, 2025 · net/9p: Fix buffer overflow in USB transport layer
    0Monitor
  • Later →CVE-2025-40007Oct 20, 2025 · netfs: fix reference leak
    0Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux21ee79ce938127f88fe07e409c1817f477dbe7eaVendor (CNA)
Linux Linux3e851448078f5b01f6264915df3cfef75e323a12Vendor (CNA)
Linux Linux7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7Vendor (CNA)
Linux Linux910d7749346c4b0acdc6e4adfdc4a9984281a206Vendor (CNA)
Linux Linux91f548e920fbf8be3f285bfa3fa045ae017e836dVendor (CNA)
Linux Linuxbc1c9ce8aeff45318332035dbef9713fb9e982d7Vendor (CNA)
Linux Linuxc1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39Vendor (CNA)
Linux Linuxc9c2a51f91aea70e89b496cac360cd795a2b3c26Vendor (CNA)
debian:linux6.1.158-1 · Debian:12Package registry (OSV)
opensuse:dtb-aarch646.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-64kb6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default-base6.12.0-160000.8.1.160000.2.5 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-docs6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-kvmsmall6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-build6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-qa6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-rt6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-source6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-syms6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-zfcpdump6.12.0-160000.8.1 · openSUSE:Leap 16.0Package registry (OSV)
suse:kernel-64kb6.12.0-160000.8.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-default6.12.0-160000.8.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-default-base6.12.0-160000.8.1.160000.2.5 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-docs6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-kvmsmall6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-obs-build6.12.0-160000.8.1 · SUSE:Linux Micro Extras 6.2Package registry (OSV)
suse:kernel-obs-qa6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-rt6.12.0-160000.8.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-source6.12.0-160000.8.1 · SUSE:Linux Micro 6.2Package registry (OSV)

+2

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

—

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records