CVE-2026-68240

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

Published Aug 10, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 leads 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. Based on the description, it is inferred that an unprivileged external attacker is unlikely to exploit this flaw, while a privileged attacker could read or write GPU memory, potentially exposing confidential data or enabling further kernel‑level attacks.

Remediation

No solution or workaround provided in the CVE record.

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 October 20, 2026 at 13:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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'}

Type Values Removed Values Added
Weaknesses CWE-401
CWE-815
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

Type Values Removed Values Added
Weaknesses CWE-401
CWE-815
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
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 8:58 PM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:20 PM
Modified
Oct 19, 2026, 9:17 PM
Severity
Moderate
Public date
Aug 10, 2026, 12:01 PM