drm/pagemap: dma-unmap pages before handling migration errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.537.2.97.3In 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.
From the CVE record · Linux
A cleanup-order error in the Linux kernel’s drm/pagemap migration path can clear page information before DMA unmapping occurs. The input does not specify how an attacker could trigger this issue, what they could achieve, or whether access or user interaction is required.
Teams running Linux kernels with the affected drm/pagemap migration code should check their installations; affected versions are not specified.