CVE-2024-53148

comedi: Flush partial mappings in error case

MEDIUM
5.5
CVSS Score
Published: December 24, 2024 at 11:28 AM UTC
Updated: August 5, 2026 at 12:05 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.3%

Description

In the Linux kernel, the following vulnerability has been resolved: comedi: Flush partial mappings in error case If some remap_pfn_range() calls succeeded before one failed, we still have buffer pages mapped into the userspace page tables when we drop the buffer reference with comedi_buf_map_put(bm). The userspace mappings are only cleaned up later in the mmap error path. Fix it by explicitly flushing all mappings in our VMA on the error path. See commit 79a61cc3fc04 ("mm: avoid leaving partial pfn mappings around in error case").

Affected

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

2.6.29 ≤ v < 5.10.2312.6.29 ≤ v < 5.15.1742.6.29 ≤ v < 5.4.2872.6.29 ≤ v < 6.1.1202.6.29 ≤ v < 6.11.112.6.29 ≤ v < 6.12.22.6.29 ≤ v < 6.132.6.29 ≤ v < 6.6.645.11 ≤ v < 5.15.1745.16 ≤ v < 6.1.1205.5 ≤ v < 5.10.2316.12 ≤ v < 6.12.26.2 ≤ v < 6.6.646.7 ≤ v < 6.11.112.6.29ed9eccbe8970f6eedc1b978c157caf1251a896d4
Vendor states this is fixed in 16c507df509113c037cdc0ba642b9ab3389bd26c (fixed)
Vendor states this is fixed in 297f14fbb81895f4ccdb0ad25d196786d6461e00 (fixed)
Vendor states this is fixed in 57f048c2d205b85e34282a9b0b0ae177e84c2f44 (fixed)
Vendor states this is fixed in 8797b7712de704dc231f9e821d8eb3b9aeb3a032 (fixed)
Vendor states this is fixed in 9b07fb464eb69a752406e78e62ab3a60bfa7b00d (fixed)
Vendor states this is fixed in b9322408d83accc8b96322bc7356593206288c56 (fixed)
Vendor states this is fixed in c6963a06ce5c61d3238751ada04ee1569663a828 (fixed)
Vendor states this is fixed in ce8f9fb651fac95dd41f69afe54d935420b945bd (fixed)
Vendor states this is fixed in 2.6.29 (unaffected)
Vendor states this is fixed in 5.10.231 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 5.4.287 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.11.11 (unaffected)
Vendor states this is fixed in 6.12.2 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.64 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/16c507df509113c037cdc0ba642b9ab3389bd26c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/297f14fbb81895f4ccdb0ad25d196786d6461e00
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/57f048c2d205b85e34282a9b0b0ae177e84c2f44
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8797b7712de704dc231f9e821d8eb3b9aeb3a032
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b07fb464eb69a752406e78e62ab3a60bfa7b00d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9322408d83accc8b96322bc7356593206288c56
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6963a06ce5c61d3238751ada04ee1569663a828
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ce8f9fb651fac95dd41f69afe54d935420b945bd

CVSS

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

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

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