comedi: Flush partial mappings in error case (Linux Linux)

CVE-2024-53148
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < 57f048c2d205b85e34282a9b0b0ae177e84c2f44 ; affected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < b9322408d83accc8b96322bc7356593206288c56 ; affected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < 8797b7712de704dc231f9e821d8eb3b9aeb3a032 ; affected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < 16c507df509113c037cdc0ba642b9ab3389bd26c ; affected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < 9b07fb464eb69a752406e78e62ab3a60bfa7b00d ; affected ed9eccbe8970f6eedc1b978c157caf1251a896d4 < c6963a06ce5c61d3238751ada04ee1569663a828
Linux · Linuxaffected 2.6.29 ; unaffected 0 < 2.6.29 ; unaffected 5.4.287 ≤ 5.4.* ; unaffected 5.10.231 ≤ 5.10.* ; unaffected 5.15.174 ≤ 5.15.* ; unaffected 6.1.120 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD