Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-53148

comedi: Flush partial mappings in error case

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < 57f048c2d205b85e34282a9b0b0ae177e84c2f44affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < b9322408d83accc8b96322bc7356593206288c56affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < 8797b7712de704dc231f9e821d8eb3b9aeb3a032affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < 16c507df509113c037cdc0ba642b9ab3389bd26caffected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < 9b07fb464eb69a752406e78e62ab3a60bfa7b00daffected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < c6963a06ce5c61d3238751ada04ee1569663a828affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < 297f14fbb81895f4ccdb0ad25d196786d6461e00affected
  • ed9eccbe8970f6eedc1b978c157caf1251a896d4 to < ce8f9fb651fac95dd41f69afe54d935420b945bdaffected

Linux Linux

Default version status: affected

  • 2.6.29affected
  • 0 to < 2.6.29unaffected
  • 5.4.287 to ≤ 5.4.*unaffected
  • 5.10.231 to ≤ 5.10.*unaffected
  • 5.15.174 to ≤ 5.15.*unaffected
  • 6.1.120 to ≤ 6.1.*unaffected
  • 6.6.64 to ≤ 6.6.*unaffected
  • 6.11.11 to ≤ 6.11.*unaffected
  • 6.12.2 to ≤ 6.12.*unaffected
  • 6.13 to ≤ *unaffected

References