# CVE-2026-89967: mm/migrate_device: avoid out-of-bounds writes for compound folios

- 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.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2026-09-16T10:32:48.164Z
- Modified: 2026-10-19T09:18:43.143Z
- Assigned by: Linux

## Description

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

mm/migrate_device: avoid out-of-bounds writes for compound folios

migrate_device_range() and migrate_device_pfns() clear the entries
following a compound folio so that the PFN arrays retain their
page-granular representation.

If a compound folio extends beyond the end of the caller-provided range,
the loops clear all following folio entries without limiting them to the
number of slots remaining in the npages-sized array, causing an
out-of-bounds write.

Do not proceed with a compound folio if its page-granular representation
does not fit entirely in the remaining PFN array.  If this happens, drop
any reference and lock acquired for the folio, clear the remaining
entries, and stop collecting.

Observed with a KASAN x86 QEMU kernel using the HMM migrate_anon_huge_zero
selftest.  Closing /dev/hmm_dmirror0 after migrating an anonymous huge
page to device memory exercises:

  dmirror_fops_release()
    -> dmirror_device_evict_chunk()
      -> migrate_device_range()

(As written by CVE List.)

## Affected

- Linux Linux: from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c before 99186b185c245f5987d7f8715d5504c8d8cc04a0; from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c before dc41e961a269f2ca4196e669d6d8e05480899cd4; 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/99186b185c245f5987d7f8715d5504c8d8cc04a0>
- <https://git.kernel.org/stable/c/dc41e961a269f2ca4196e669d6d8e05480899cd4>

## Sources

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

---

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