CVE-2026-99658: mm/mmu_notifier: finish non-blocking interval invalidation on error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/mmu_notifier: finish non-blocking interval invalidation on error
When an ordinary MMU notifier rejects a non-blocking invalidation, the interval invalidation started beforehand is left unfinished: the caller skips mmu_notifier_invalidate_range_end(). Subsequent interval notifier operations can then wait forever.
The only in-tree trigger is nouveau SVM, which uses both notifier types and rejects non-blocking invalidations. Reaping via the OOM reaper or process_mrelease() can therefore leave the GPU fault worker stuck, holding a reference that prevents the dying process's address space and memory from being freed.
End the interval invalidation when an ordinary notifier fails a non-blocking invalidation, like mn_itree_invalidate() already does when an interval notifier fails. Make that handling clearer in the documentation of mmu_notifier_invalidate_range_start_nonblock().
Fix generated by an LLM and sent by Josef Bacik in private.
[ david: simplify description, update function doc ]
The Linux kernel CVE team has assigned CVE-2026-99658 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 99cb252f5e68d72afa3245a4e73d216d295cd335 and fixed in 6.12.118 with commit 01ce779d7e598aafd3a02059d100ce66c909bea2 Issue introduced in 5.5 with commit 99cb252f5e68d72afa3245a4e73d216d295cd335 and fixed in 6.18.64 with commit 00936003341fdb8c526652a9b84f99124616efb9 Issue introduced in 5.5 with commit 99cb252f5e68d72afa3245a4e73d216d295cd335 and fixed in 7.3.5 with commit 9439da3fa1ac9a7bdc4a2d3729a5bd0c2660c1b9 Issue introduced in 5.5 with commit 99cb252f5e68d72afa3245a4e73d216d295cd335 and fixed in 7.4-rc2 with commit 6d65925777ecae9d7a571a327e41c63f3940a0c7
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99658
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/linux/mmu_notifier.h
mm/mmu_notifier.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/01ce779d7e598aafd3a02059d100ce66c909bea2 https://git.kernel.org/stable/c/00936003341fdb8c526652a9b84f99124616efb9 https://git.kernel.org/stable/c/9439da3fa1ac9a7bdc4a2d3729a5bd0c2660c1b9 https://git.kernel.org/stable/c/6d65925777ecae9d7a571a327e41c63f3940a0c7