CVE-2024-47674 mm: avoid leaving partial pfn mappings around in error case
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
10 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.112-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +26 more | 6.1.112-1 | Fixed |
| debian/linux(Debian 13) | < 6.10.11-1 | 6.10.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.10.11-1 | 6.10.11-1 | Fixed |
| Linux kernel | < 5.15.168; < 6.1.111; < 6.6.52; < 6.10.11 +19 more | 5.15.168, 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959, 6.1.111, 6.6.52, 6.10.11, 6.11, 65d0db500d7c07f0f76fc24a4d837791c4862cd2, 79a61cc3fc0466ad2b7b89618a6157785f0293b3, 954fd4c81f22c4b6ba65379a81fd252971bf4ef3, 3213fdcab961026203dd587a4533600c70b3336b, 35770ca6180caa24a2b258c99a87bd437a1ee10f, a95a24fcaee1b892e47d5e6dcc403f713874ee80 | Fixed |
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-127.137 | 5.15.0-127.137 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-50.51 | 6.8.0-50.51 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1016.18 | 6.8.0-1016.18 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 |
| debian/linux(Debian:12) | < 6.1.112-1 | 6.1.112-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
Show 36 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.10.11-1 | 6.10.11-1 |
| debian/linux(Debian:14) | < 6.10.11-1 | 6.10.11-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-127.137 | 5.15.0-127.137 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 |
| Linux kernel | >= b97a50adb37e98b940a30c4656565ff609aa8f94, < 3213fdcab961026203dd587a4533600c70b3336b | 3213fdcab961026203dd587a4533600c70b3336b |
| Linux kernel | >= 69d4e1ce9087c8767f2fe9b9426fa2755c8e9072, < 35770ca6180caa24a2b258c99a87bd437a1ee10f | 35770ca6180caa24a2b258c99a87bd437a1ee10f |
| Linux kernel | >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959 | 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959 |
| Linux kernel | >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 65d0db500d7c07f0f76fc24a4d837791c4862cd2 | 65d0db500d7c07f0f76fc24a4d837791c4862cd2 |
| Linux kernel | >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < a95a24fcaee1b892e47d5e6dcc403f713874ee80 | a95a24fcaee1b892e47d5e6dcc403f713874ee80 |
| Linux kernel | >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 954fd4c81f22c4b6ba65379a81fd252971bf4ef3 | 954fd4c81f22c4b6ba65379a81fd252971bf4ef3 |
| Linux kernel | >= 74ffa5a3e68504dd289135b1cf0422c19ffb3f2e, < 79a61cc3fc0466ad2b7b89618a6157785f0293b3 | 79a61cc3fc0466ad2b7b89618a6157785f0293b3 |
| Linux kernel | = 5.13 | No fix listed |
| Linux kernel | < 5.15.168 | 5.15.168 |
| Linux kernel | < 6.1.111 | 6.1.111 |
| Linux kernel | < 6.6.52 | 6.6.52 |
| Linux kernel | < 6.10.11 | 6.10.11 |
| Linux kernel | < 6.11 | 6.11 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-50.51 | 6.8.0-50.51 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1016.18 | 6.8.0-1016.18 |
| Linux kernel | >= 5.16, < 6.1.111 | 6.1.111 |
| Linux kernel | >= 6.2, < 6.6.52 | 6.6.52 |
| Linux kernel | >= 6.7, < 6.10.11 | 6.10.11 |
| Linux kernel | = 6.11-rc1 | No fix listed |
| Linux kernel | = 6.11-rc2 | No fix listed |
| Linux kernel | = 6.11-rc3 | No fix listed |
| Linux kernel | = 6.11-rc4 | No fix listed |
| Linux kernel | = 6.11-rc5 | No fix listed |
| Linux kernel | = 6.11-rc6 | No fix listed |
| Linux kernel | = 6.11-rc7 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-47674 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7154-1 vendor-advisory
- USN-7155-1 vendor-advisory
- USN-7156-1 vendor-advisory
- USN-7166-1 vendor-advisory
- USN-7166-2 vendor-advisory
- USN-7166-3 vendor-advisory
- USN-7154-2 vendor-advisory
- USN-7186-1 vendor-advisory
- USN-7186-2 vendor-advisory
- USN-7194-1 vendor-advisory
- USN-7196-1 vendor-advisory
- USN-7166-4 vendor-advisory
- USN-7293-1 vendor-advisory
- USN-7294-1 vendor-advisory
- USN-7295-1 vendor-advisory
- USN-7294-2 vendor-advisory
- USN-7294-3 vendor-advisory
- USN-7294-4 vendor-advisory
- USN-7393-1 vendor-advisory
- USN-7401-1 vendor-advisory
- USN-7413-1 vendor-advisory
- USN-7539-1 vendor-advisory
- USN-7540-1 vendor-advisory
- www.cve.org
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- project-zero.issues.chromium.org
- lists.debian.org
- lists.debian.org
- ENISA EUVD EUVD-2024-42595 third-party-advisory