CVE-2026-93284: drm/pagemap: dma-unmap pages before handling migration errors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/pagemap: dma-unmap pages before handling migration errors
drm_pagemap_migrate_unmap_pages() relies on the pages array to determine which pages require DMA unmapping. However, drm_pagemap_migration_unlock_put_pages() clears the array as part of its cleanup, leaving drm_pagemap_migrate_unmap_pages() with no valid page information if it is called afterward.
Call drm_pagemap_migrate_unmap_pages() before drm_pagemap_migration_unlock_put_pages() so the pages array remains valid during DMA unmapping.
The Linux kernel CVE team has assigned CVE-2026-93284 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit f86ad0ed620cb3c91ec7d5468e93ac68d727539d and fixed in 6.18.53 with commit e4331c6644db85bc6ceb470bd84bcf371b6dbfa6 Issue introduced in 6.17 with commit f86ad0ed620cb3c91ec7d5468e93ac68d727539d and fixed in 7.3-rc2 with commit 9e6372ec2a3990662ae0a67f56ac0aee19848d5b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93284
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/drm_pagemap.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e4331c6644db85bc6ceb470bd84bcf371b6dbfa6 https://git.kernel.org/stable/c/9e6372ec2a3990662ae0a67f56ac0aee19848d5b