CVE-2026-68102: drm/amdgpu: fix aperture mapping leak

Published Aug 10, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: fix aperture mapping leak

amdgpupciremove() calls drmdevunplug() before invoking the driver fini routines. This causes drmdeventer() in amdgputtmfini() to always return false, so iounmap(aperbasekaddr) never runs on normal driver unload, leaving an orphaned entry in the x86 PAT interval tree.

On connectedtocpu hardware, the aperture is mapped write-back (WB) via ioremapcache(). On reload, IP discovery calls memremap(..., MEMREMAPWC) over the same range. The WC vs WB conflict causes:

ioremap error for 0x..., requested 0x1, got 0x0 amdgpu: discovery failed: -2

Fix by switching to devres-managed mappings so cleanup is guaranteed regardless of drmdeventer() state:

- connectedtocpu path: devmmemremap(MEMREMAPWB). For IORESOURCESYSTEMRAM ranges this takes the tryramremap() shortcut, returning va(offset) from the existing kernel direct map. No new ioremap VA or PAT entry is created, so there is nothing to orphan.

- dGPU path: devmioremapwc() registers iounmap() as a devres action, guaranteeing cleanup at devicedel() time.

Also remove iounmap(aperbasekaddr) from amdgpudeviceunmapmmio() since the mapping is now devres-owned.

v2: Remove redundant x8664 guard (Lijo)

(cherry picked from commit d871e99879cb5fd1fa798b006b4888887e63a17a)

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update drm/amdgpu aperture mapping code to use devres-managed mappings (devm_memremap and/or devm_ioremap_wc) so cleanup is guaranteed on device_del()/reload. Remove the manual iounmap(aper_base_kaddr) call from amdgpu_device_unmap_mmio() and rely on devres-managed cleanup.

    Linux kernel (drm/amdgpu) aperture mapping cleanup Use devres-managed mappings for aper_base_kaddr instead of manual iounmap = devres-managed mapping via devm_* (e.g., devm_memremap(MEMREMAP_WB) / devm_ioremap_wc())

Event History

Aug 10, 2026
CVE Published
via MITRE·11:58 AM
Data Sourced
via MITRE·11:58 AM
Description
Data Sourced
via NVD·01:19 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-68102?

The severity of CVE-2026-68102 is rated at 12.

2

How do I fix CVE-2026-68102?

To fix CVE-2026-68102, ensure that you update to the latest version of the Linux kernel where the vulnerability is addressed.

3

What types of systems are affected by CVE-2026-68102?

CVE-2026-68102 affects systems running the Linux kernel that utilize the amdgpu driver.

4

What consequences could arise from CVE-2026-68102?

If exploited, CVE-2026-68102 could lead to potential memory leaks that may compromise system stability.

5

How can I verify if my system is vulnerable to CVE-2026-68102?

You can verify your system's vulnerability to CVE-2026-68102 by checking your Linux kernel version against the versions that contain the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203