CVE-2024-47674
mm: avoid leaving partial pfn mappings around in error case
Mitigation
- Upgrade Linux to 79a61cc3fc0466ad2b7b89618a6157785f0293b3 or later.
Who should check
- Anyone running Linux >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b; >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3
- Anyone running Linux 5.13
Vulnerability facts
- Affected
- Linux >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b; >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3; Linux 5.13
- Fixed in
- Linux 3213fdcab961026203dd587a4533600c70b3336b, Linux 35770ca6180caa24a2b258c99a87bd437a1ee10f, Linux 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959, Linux 65d0db500d7c07f0f76fc24a4d837791c4862cd2, Linux 954fd4c81f22c4b6ba65379a81fd252971bf4ef3, Linux 79a61cc3fc0466ad2b7b89618a6157785f0293b3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-459
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b; >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3 | — | cvelist |
| Linux | 5.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-47674. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-47674.md Affected: Linux >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b; >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959; >= 74ffa5a3e68504dd289135b… Fixed in: Linux 3213fdcab961026203dd587a4533600c70b3336b, Linux 35770ca6180caa24a2b258c99a87bd437a1ee10f, Linux 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959, Linux 65d0db500d7c07f0f76fc24a4d837791c4862cd2, Linux 954fd4c81f22c4b6ba65379a81fd252971bf4ef3, Linux 79a61cc3fc0466ad2b7b89618a6157785f0293b3 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959
- https://git.kernel.org/stable/c/65d0db500d7c07f0f76fc24a4d837791c4862cd2
- https://git.kernel.org/stable/c/a95a24fcaee1b892e47d5e6dcc403f713874ee80
- https://git.kernel.org/stable/c/954fd4c81f22c4b6ba65379a81fd252971bf4ef3
- https://git.kernel.org/stable/c/79a61cc3fc0466ad2b7b89618a6157785f0293b3
Other
- https://git.kernel.org/stable/c/3213fdcab961026203dd587a4533600c70b3336b
- https://git.kernel.org/stable/c/35770ca6180caa24a2b258c99a87bd437a1ee10f
- https://project-zero.issues.chromium.org/issues/366053091
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
FAQ
Is CVE-2024-47674 being exploited?
There is no confirmed exploitation: CVE-2024-47674 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-47674?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-47674?
Linux >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b; >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3; >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3; Linux 5.13.
Is there a fix for CVE-2024-47674?
Yes. Fixed in Linux 3213fdcab961026203dd587a4533600c70b3336b, Linux 35770ca6180caa24a2b258c99a87bd437a1ee10f, Linux 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959, Linux 65d0db500d7c07f0f76fc24a4d837791c4862cd2, Linux 954fd4c81f22c4b6ba65379a81fd252971bf4ef3, Linux 79a61cc3fc0466ad2b7b89618a6157785f0293b3. Upgrade Linux to 79a61cc3fc0466ad2b7b89618a6157785f0293b3 or later.
How do I check if I'm affected by CVE-2024-47674?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.