drm/gpusvm: publish dpagemap early to avoid device mapping leak on error
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.44, 7.1.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/gpusvm: publish dpagemap early to avoid device mapping leak on error drm_gpusvm_get_pages() only stored the local dpagemap into svm_pages->dpagemap on the success path. If a later page failed (e.g. -EOPNOTSUPP when ctx->allow_mixed is false) and jumped to err_unmap, svm_pages->dpagemap was still NULL, so __drm_gpusvm_unmap_pages() skipped device_unmap() and leaked the device mappings already created. Assign svm_pages->dpagemap when the first device page is mapped so the err_unmap path can device_unmap() those mappings. This issue was found by Sashiko AI review.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 · fixed in e8362523fd1b61712f7d996802f9b5dee545c7e6; From f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 · fixed in 72e4fca5529e45b5beebad79d804de442f632324; From f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 · fixed in 7f708f51e3955bda0d77a0b67ab9bea6c97fea99
- Linux Linux
6.18
- KernelLinux
From 6.18.0 · fixed in 6.18.44; From 6.19.0 · fixed in 7.1.6