mm: fix deferred split queue races during migration
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7.0.4, Kernel 3bac01168982ec3e3bf87efdc1807c7933590a85 and Kernel cbf75cf212ee6e499abc1757fb4b5ae6d70ed0aa.
In the Linux kernel, the following vulnerability has been resolved: mm: fix deferred split queue races during migration migrate_folio_move() records the deferred split queue state from src and replays it on dst. Replaying it after remove_migration_ptes(src, dst, 0) makes dst visible before it is requeued, so a concurrent rmap-removal path can mark dst partially mapped and trip the WARN in deferred_split_folio(). Move the requeue before remove_migration_ptes() so dst is back on the deferred split queue before it becomes visible again. Because migration still holds dst locked at that point, teach deferred_split_scan() to requeue a folio when folio_trylock() fails. Otherwise a fully mapped underused folio can be dequeued by the shrinker and silently lost from split_queue. [ziy@nvidia.com: move the comment]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | <7.0.4, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3bac01168982ec3e3bf87efdc1807c7933590a85, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <cbf75cf212ee6e499abc1757fb4b5ae6d70ed0aa | 7.0.4, 3bac01168982ec3e3bf87efdc1807c7933590a85, cbf75cf212ee6e499abc1757fb4b5ae6d70ed0aa |
| linux-kernel: Kernel | <7.0.4 | 7.0.4 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket