CVE-2024-47674: mm: avoid leaving partial pfn mappings around in error case
Vulnerability summary
CVE-2024-47674 is a high (CVSS 7.8) Incomplete Cleanup vulnerability in linux. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 15.9% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 65 · Related 63Timeline
- 15-10-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: mm: avoid leaving partial pfn mappings around in error case As Jann points out, PFN mappings are special, because unlike normal memory mappings, there is no lifetime information associated with the mapping - it is just a raw mapping of PFNs with no reference counting of a 'struct page'. That's all very much intentional, but it does mean that it's easy to mess up the cleanup in case of errors. Yes, a failed mmap() will always eventually clean up any partial mappings, but without any explicit lifetime in the page table mapping itself, it's very easy to do the error handling in the wrong order. In particular, it's easy to mistakenly free the physical backing store before the page tables are actually cleaned up and (temporarily) have stale dangling PTE entries. To make this situation less error-prone, just make sure that any partial pfn mapping is torn down early, before any other error handling.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu130 products
- linuxAll versions (No fix recorded) | < 5.4.0-208.228 | < 5.15.0-127.137 | < 6.8.0-50.51
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1140.150 | < 5.15.0-1073.79 | < 6.8.0-1020.22
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b | ≥ 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f | ≥ 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959 | ≥ 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2 | ≥ 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80 | ≥ 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3 | ≥ 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3 | 5.13
- linux_kernel< 5.15.168 | ≥ 5.16, < 6.1.111 | ≥ 6.2, < 6.6.52 | ≥ 6.7, < 6.10.11 | 6.11:rc1 | 6.11:rc2 | 6.11:rc3 | 6.11:rc4 | 6.11:rc5 | 6.11:rc6 | 6.11:rc7
Debian1 product
- linux< 6.1.112-1 | < 6.10.11-1
3 vendors · 133 products