CVE-2026-99913: mm/mremap: correctly uncharge accountable VMAs in error path
In the Linux kernel, the following vulnerability has been resolved:
mm/mremap: correctly uncharge accountable VMAs in error path
The mremap error path is a fragile and unwieldy beast - it reverses the page table move then updates vmaremapstruct state to swap VMA, length and address between old and new VMAs in copyvmaanddata().
If the mremap() operation didn't specify MREMAPDONTUNMAP then its caller, movevma(), invokes unmapsourcevma(), which unmaps the new VMA rather than the old one.
For accountable VMAs when MREMAPDONTUNMAP is not specified, unmapsourcevma() unsets VMAACCOUNTBIT during this unmap in order that only the delta of a VMA expansion is charged (performed by vrmcalccharge() earlier).
Therefore nothing uncharges the expanded VMA size, and there is a permanent leak in global CommittedAS.
Resolve the issue by uncharging when MREMAPDONTUNMAP is not specified.