Vulnerability record
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 vma_remap_struct state to swap VMA, length and address between old and new VMAs in copy_vma_and_data().
If the mremap() operation didn't specify MREMAP_DONTUNMAP then its caller, move_vma(), invokes unmap_source_vma(), which unmaps the new VMA rather than the old one.
For accountable VMAs when MREMAP_DONTUNMAP is not specified, unmap_source_vma() unsets…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources