# CVE-2026-68240: drm/gpusvm: publish dpagemap early to avoid device mapping leak on error

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 4% of CVEs (2026-11-30)
- Published: 2026-08-10T12:01:05.810Z
- Modified: 2026-11-30T16:13:21.673Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 before e8362523fd1b61712f7d996802f9b5dee545c7e6; from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 before 72e4fca5529e45b5beebad79d804de442f632324; from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 before 7f708f51e3955bda0d77a0b67ab9bea6c97fea99; 6.18 (not affected: before 6.18; from 6.18.44 up to 6.18.*; from 7.1.6 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/e8362523fd1b61712f7d996802f9b5dee545c7e6>
- <https://git.kernel.org/stable/c/72e4fca5529e45b5beebad79d804de442f632324>
- <https://git.kernel.org/stable/c/7f708f51e3955bda0d77a0b67ab9bea6c97fea99>

## Sources

- CVE List: [CVE-2026-68240](https://www.cve.org/CVERecord?id=CVE-2026-68240), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-68240](https://nvd.nist.gov/vuln/detail/CVE-2026-68240), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-68240 · Whole record: https://cve.day/CVE-2026-68240.json · Rebuilt by cve.day 2026-11-30T16:17:26.156Z
