CVE-2025-40006: mm/hugetlb: fix folio is still mapped when deleted
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
Action score
31
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.158-1 | 6.1.158-1 |
| Debian:13 | linux | before 6.12.57-1 | 6.12.57-1 |
| Debian:14 | linux | before 6.16.10-1 | 6.16.10-1 |
| openSUSE:Leap 16.0 | dtb-aarch64 | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-64kb | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-default | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-default-base | before 6.12.0-160000.8.1.160000.2.5 | 6.12.0-160000.8.1.160000.2.5 |
| openSUSE:Leap 16.0 | kernel-docs | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-rt | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-source | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-syms | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-docs | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-kvmsmall | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-obs-qa | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-syms | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-zfcpdump | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Micro 6.2 | kernel-64kb | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Micro 6.2 | kernel-default | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
| SUSE:Linux Micro 6.2 | kernel-default-base | before 6.12.0-160000.8.1.160000.2.5 | 6.12.0-160000.8.1.160000.2.5 |
| SUSE:Linux Micro 6.2 | kernel-rt | before 6.12.0-160000.8.1 | 6.12.0-160000.8.1 |
+2
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation40Plan
- CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment40Plan
- 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 work0Monitor
- ← EarlierCVE-2025-40004Oct 20, 2025 · net/9p: Fix buffer overflow in USB transport layer0Monitor
- Later →CVE-2025-40007Oct 20, 2025 · netfs: fix reference leak0Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 21ee79ce938127f88fe07e409c1817f477dbe7ea | Vendor (CNA) |
| Linux Linux | 3e851448078f5b01f6264915df3cfef75e323a12 | Vendor (CNA) |
| Linux Linux | 7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7 | Vendor (CNA) |
| Linux Linux | 910d7749346c4b0acdc6e4adfdc4a9984281a206 | Vendor (CNA) |
| Linux Linux | 91f548e920fbf8be3f285bfa3fa045ae017e836d | Vendor (CNA) |
| Linux Linux | bc1c9ce8aeff45318332035dbef9713fb9e982d7 | Vendor (CNA) |
| Linux Linux | c1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39 | Vendor (CNA) |
| Linux Linux | c9c2a51f91aea70e89b496cac360cd795a2b3c26 | Vendor (CNA) |
| debian:linux | 6.1.158-1 · Debian:12 | Package registry (OSV) |
| opensuse:dtb-aarch64 | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-64kb | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default-base | 6.12.0-160000.8.1.160000.2.5 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-docs | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-kvmsmall | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-build | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-qa | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-rt | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-source | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-syms | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-zfcpdump | 6.12.0-160000.8.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| suse:kernel-64kb | 6.12.0-160000.8.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-default | 6.12.0-160000.8.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-default-base | 6.12.0-160000.8.1.160000.2.5 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-docs | 6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-kvmsmall | 6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-obs-build | 6.12.0-160000.8.1 · SUSE:Linux Micro Extras 6.2 | Package registry (OSV) |
| suse:kernel-obs-qa | 6.12.0-160000.8.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-rt | 6.12.0-160000.8.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-source | 6.12.0-160000.8.1 · SUSE:Linux Micro 6.2 | Package 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.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- git.kernel.org/stable/c/3e851448078f5b01f6264915df3cfef75e323a12
- git.kernel.org/stable/c/7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7
- git.kernel.org/stable/c/910d7749346c4b0acdc6e4adfdc4a9984281a206
- git.kernel.org/stable/c/91f548e920fbf8be3f285bfa3fa045ae017e836d
- git.kernel.org/stable/c/bc1c9ce8aeff45318332035dbef9713fb9e982d7
- git.kernel.org/stable/c/c1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39
- git.kernel.org/stable/c/c9c2a51f91aea70e89b496cac360cd795a2b3c26
Vendor advisories and official records. Exploit/PoC links are deliberately left out.