Bug 2333970 (CVE-2024-53148) - CVE-2024-53148 kernel: comedi: Flush partial mappings in error case
Summary: CVE-2024-53148 kernel: comedi: Flush partial mappings in error case
Keywords:
Status: NEW
Alias: CVE-2024-53148
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-24 12:01 UTC by OSIDB Bzimport
Modified: 2024-12-24 14:16 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-24 12:01:23 UTC
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").

Comment 1 Mauro Matteo Cascella 2024-12-24 14:03:36 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122426-CVE-2024-53148-2c24@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.