# CVE-2026-89808: drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-16T10:30:41.508Z
- Modified: 2026-10-30T13:20:29.747Z
- Assigned by: Linux

## Description

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

drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram

When migration vm range is hole at cpu side(MIGRATE_PFN_MIGRATE set +
MIGRATE_PFN_VALID unset) driver still allocates device pages. There is no
dma map of src pages and migration. j is 0 and svm_migrate_copy_memory_gart()
will return an uninitialized r. That can trigger out_free_vram_pages to drop
all VRAM just set up.

Initialize r and only call the last svm_migrate_copy_memory_gart if j > 0.

Current code postponed the last page to the final copy. This patch flushes on
the last page when reach to the end of current drm_buddy_block; avoids another
svm_migrate_copy_memory_gart.

(As written by CVE List.)

## Affected

- Linux Linux: from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before d5872c81c70163a3ba9eb4da9a94c92b03067576; from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before 6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2; from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before bd1adb2e5101db649121b59e601c92773a302a70; from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before ae806a95b28fcecb913430cfa45a252e91a945d6; from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before 0a9a0e8a97da70a0336c9115178aaf1be29bcfb1; from 50ea50cf6f6d31d3235ad1853c5dbea766a3ed11 before 520e345ffe05aabef1db82beda4288afb1757ff2; 5.14 (not affected: before 5.14; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/d5872c81c70163a3ba9eb4da9a94c92b03067576>
- <https://git.kernel.org/stable/c/6e1a6f3ddb87d7f89a775c55fb399680c02bdcc2>
- <https://git.kernel.org/stable/c/bd1adb2e5101db649121b59e601c92773a302a70>
- <https://git.kernel.org/stable/c/ae806a95b28fcecb913430cfa45a252e91a945d6>
- <https://git.kernel.org/stable/c/0a9a0e8a97da70a0336c9115178aaf1be29bcfb1>
- <https://git.kernel.org/stable/c/520e345ffe05aabef1db82beda4288afb1757ff2>

## Sources

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

---

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