CVE-2026-68240

drm/gpusvm: publish dpagemap early to avoid device mapping leak on error

State
Published
Severity
8.8 High
Published
Aug 10, 2026
Updated
Oct 19, 2026
Reserved
Jul 30, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 to before e8362523fd1b61712f7d996802f9b5dee545c7e6Affected
  • f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 to before 72e4fca5529e45b5beebad79d804de442f632324Affected
  • f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9 to before 7f708f51e3955bda0d77a0b67ab9bea6c97fea99Affected
LinuxLinux
  • 6.18Affected
  • before 6.18Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.6 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.