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.
Published: 2026-08-10
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A defect in the DRM gpusvm driver causes the dpagemap structure to be initialized only after a successful mapping. When a later page mapping fails, the error path skips unmap operations because the mapping information was never stored, resulting in device mappings that remain active. This defect can lead to unintended exposure of GPU memory, allowing the reading or manipulation of data that should be protected.

Affected Systems

Linux kernel versions prior to the three committed patches (72e4fca, 7f708f5, e836252) are impacted. Distributions shipping the vanilla kernel before these commits, including mainstream releases, are therefore vulnerable in the DRM gpusvm subsystem.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, and the EPSS score is less than 1%. The vulnerability is not listed in CISA KEV. Based on the description, it is inferred that exploitation requires kernel or root privileges, limiting the attack surface to privileged users or compromised kernel components. Although an unprivileged external attacker is unlikely to exploit this flaw, a compromised or privileged attacker could read or write GPU memory, potentially exposing confidential data or enabling further kernel‑level attacks.

Generated by OpenCVE AI on August 14, 2026 at 00:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel changes that initialize svm_pages->dpagemap at the first device mapping to close the leak.
  • Upgrade or rebuild the kernel to a version that includes the patched commits if an official vendor update is unavailable.
  • As a temporary countermeasure, disable GPU SVM functionality or configure the system to reject device mappings until all pages are successfully mapped.

Generated by OpenCVE AI on August 14, 2026 at 00:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Thu, 13 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-815

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L'}

threat_severity

Moderate


Mon, 10 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-815

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title drm/gpusvm: publish dpagemap early to avoid device mapping leak on error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:01:29.579Z

Reserved: 2026-07-30T09:28:09.376Z

Link: CVE-2026-68240

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:12.393

Modified: 2026-08-17T05:18:26.290

Link: CVE-2026-68240

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T12:01:05Z

Links: CVE-2026-68240 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T00:30:03Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime