CVE-2024-53148

comedi: Flush partial mappings in error case

State
Published
Severity
7.8 High
Published
Dec 24, 2024
Updated
Aug 5, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

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").

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before 57f048c2d205b85e34282a9b0b0ae177e84c2f44Affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before b9322408d83accc8b96322bc7356593206288c56Affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before 8797b7712de704dc231f9e821d8eb3b9aeb3a032Affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before 16c507df509113c037cdc0ba642b9ab3389bd26cAffected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before 9b07fb464eb69a752406e78e62ab3a60bfa7b00dAffected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before c6963a06ce5c61d3238751ada04ee1569663a828Affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before 297f14fbb81895f4ccdb0ad25d196786d6461e00Affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to before ce8f9fb651fac95dd41f69afe54d935420b945bdAffected
LinuxLinux
  • 2.6.29Affected
  • before 2.6.29Not affected
  • 5.4.287 through 5.4.*Not affected
  • 5.10.231 through 5.10.*Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.120 through 6.1.*Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.