mm/mremap: correctly uncharge accountable VMAs in error path

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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 VMA_ACCOUNT_BIT during this unmap in order that only the delta of a VMA expansion is charged (performed by vrm_calc_charge() earlier).

Therefore nothing uncharges the expanded VMA size, and there is a permanent leak in global Committed_AS.

Resolve the issue by uncharging when MREMAP_DONTUNMAP is not specified.

ProductVersions
Linux Linuxfdbef61491359947753c13581098878e8d038286 to before ee5a280ddecd4284a372280e4935ba3ac56b4fb7 Affectedfdbef61491359947753c13581098878e8d038286 to before 58ba5e82d41e8445e563e1604e9adb68e567a266 Affectedfdbef61491359947753c13581098878e8d038286 to before 813d75b25c3d893eafde79914026ddf85369396d Affectedfdbef61491359947753c13581098878e8d038286 to before e251079d676c481cc905d1ac226851b1ef49a4b8 Affectedfdbef61491359947753c13581098878e8d038286 to before 22464b99348bde3a3804a26e0a30878358c3dd94 Affectedfdbef61491359947753c13581098878e8d038286 to before 65e722a74df992719676ead85a9e93fb2b5a0983 Affected
Linux Linux5.16 Affectedbefore 5.16 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.