CVE-2024-47674

mm: avoid leaving partial pfn mappings around in error case

MEDIUM
5.5
CVSS Score
Published: October 15, 2024 at 10:48 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.15.1685.13 ≤ v < 5.15.1685.13 ≤ v < 6.1.1115.13 ≤ v < 6.10.115.13 ≤ v < 6.115.13 ≤ v < 6.6.525.16 ≤ v < 6.1.1116.2 ≤ v < 6.6.526.7 ≤ v < 6.10.116.11 rc16.11 rc26.11 rc36.11 rc46.11 rc56.11 rc66.11 rc769d4e1ce9087c8767f2fe9b9426fa2755c8e907274ffa5a3e68504dd289135b1cf0422c19ffb3f2eb97a50adb37e98b940a30c4656565ff609aa8f94
Vendor states this is fixed in 3213fdcab961026203dd587a4533600c70b3336b (fixed)
Vendor states this is fixed in 35770ca6180caa24a2b258c99a87bd437a1ee10f (fixed)
Vendor states this is fixed in 5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959 (fixed)
Vendor states this is fixed in 65d0db500d7c07f0f76fc24a4d837791c4862cd2 (fixed)
Vendor states this is fixed in 79a61cc3fc0466ad2b7b89618a6157785f0293b3 (fixed)
Vendor states this is fixed in 954fd4c81f22c4b6ba65379a81fd252971bf4ef3 (fixed)
Vendor states this is fixed in a95a24fcaee1b892e47d5e6dcc403f713874ee80 (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.168 (unaffected)
Vendor states this is fixed in 6.1.111 (unaffected)
Vendor states this is fixed in 6.10.11 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.52 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5b2c8b34f6d76bfbd1dd4936eb8a0fbfb9af3959
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/65d0db500d7c07f0f76fc24a4d837791c4862cd2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/79a61cc3fc0466ad2b7b89618a6157785f0293b3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/954fd4c81f22c4b6ba65379a81fd252971bf4ef3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a95a24fcaee1b892e47d5e6dcc403f713874ee80
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://project-zero.issues.chromium.org/issues/366053091

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-459

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card