# CVE-2026-89804: drm/nouveau/dmem: fix mismatched DMA unmap size for large folios

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2026-09-16T10:30:37.638Z
- Modified: 2026-10-19T09:18:24.207Z
- Assigned by: Linux

## Description

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

drm/nouveau/dmem: fix mismatched DMA unmap size for large folios

Device-private THP migration maps migration buffers with page_size()
and records that length in dma_info->size.  For a compound folio
page_size() is PAGE_SIZE << order, but two teardown sites still pass a
literal PAGE_SIZE to dma_unmap_page():

  - nouveau_dmem_migrate_to_ram() on the success path, and
  - nouveau_dmem_migrate_copy_one() on the copy-error path.

For an order > 0 folio this unmaps less than was mapped, leaking the
remainder of the IOMMU/IOVA mapping.  The other unmap sites, in
nouveau_dmem_migrate_chunk() and nouveau_dmem_evict_chunk(), already
use the saved size; use it here too.

(As written by CVE List.)

## Affected

- Linux Linux: from c3228747107705d47c7e9a03598a434a0380cb73 before 4deb29b9d33bfdb3de4d2d9944947ecf77221e42; from c3228747107705d47c7e9a03598a434a0380cb73 before caa1bc2a0a6ca19dcb90bbf88208b0fe2decd66f; 6.19 (not affected: before 6.19; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/4deb29b9d33bfdb3de4d2d9944947ecf77221e42>
- <https://git.kernel.org/stable/c/caa1bc2a0a6ca19dcb90bbf88208b0fe2decd66f>

## Sources

- CVE List: [CVE-2026-89804](https://www.cve.org/CVERecord?id=CVE-2026-89804), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89804](https://nvd.nist.gov/vuln/detail/CVE-2026-89804), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89804 · Whole record: https://cve.day/CVE-2026-89804.json · Rebuilt by cve.day 2026-11-25T22:59:38.942Z
