{"id":"CVE-2026-68240","summary":"drm/gpusvm: publish dpagemap early to avoid device mapping leak on error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/gpusvm: publish dpagemap early to avoid device mapping leak on error\n\ndrm_gpusvm_get_pages() only stored the local dpagemap into\nsvm_pages-\u003edpagemap on the success path. If a later page failed (e.g.\n-EOPNOTSUPP when ctx-\u003eallow_mixed is false) and jumped to err_unmap,\nsvm_pages-\u003edpagemap was still NULL, so __drm_gpusvm_unmap_pages() skipped\ndevice_unmap() and leaked the device mappings already created.\n\nAssign svm_pages-\u003edpagemap when the first device page is mapped so the\nerr_unmap path can device_unmap() those mappings.\n\nThis issue was found by Sashiko AI review.","modified":"2026-08-18T03:31:16.580700469Z","published":"2026-08-10T12:01:05.810Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68240.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/72e4fca5529e45b5beebad79d804de442f632324"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f708f51e3955bda0d77a0b67ab9bea6c97fea99"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8362523fd1b61712f7d996802f9b5dee545c7e6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68240.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68240"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9"},{"fixed":"e8362523fd1b61712f7d996802f9b5dee545c7e6"},{"fixed":"72e4fca5529e45b5beebad79d804de442f632324"},{"fixed":"7f708f51e3955bda0d77a0b67ab9bea6c97fea99"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-68240.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-68240.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}