CVE-2024-47674
MediumIn 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 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-459CVE-2024-47674 is classified as CWE-459
See CWE-459 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
5.13
and later are affected. Fixed in
5.15.168,
6.1.111,
6.6.52,
6.10.11,
6.11
and their respective stable series.
References
The following references provide additional information about CVE-2024-47674 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3213fdcab961026203dd587a4533600c70b3336b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/35770ca6180caa24a2b258c99a87bd437a1ee10f
-
PatchKernel patch commithttps://git.kernel.org/stable/c/5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959
Frequently asked questions
-
What is CVE-2024-47674?
CVE-2024-47674 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 5.13 onward and has been patched in 5.15.168, 6.1.111, 6.6.52 and others. CVE-2024-47674 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-47674?
CVE-2024-47674 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-47674?
Yes — CVE-2024-47674 has been patched. Fixed versions include 5.15.168, 6.1.111, 6.6.52 and others. If you are running Linux kernel 5.13 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-47674 actively exploited?
No — CVE-2024-47674 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.