# CVE-2026-99913: mm/mremap: correctly uncharge accountable VMAs in error path

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:13.468Z
- Modified: 2026-11-30T14:20:27.230Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from fdbef61491359947753c13581098878e8d038286 before ee5a280ddecd4284a372280e4935ba3ac56b4fb7; from fdbef61491359947753c13581098878e8d038286 before 58ba5e82d41e8445e563e1604e9adb68e567a266; from fdbef61491359947753c13581098878e8d038286 before 813d75b25c3d893eafde79914026ddf85369396d; from fdbef61491359947753c13581098878e8d038286 before e251079d676c481cc905d1ac226851b1ef49a4b8; from fdbef61491359947753c13581098878e8d038286 before 22464b99348bde3a3804a26e0a30878358c3dd94; from fdbef61491359947753c13581098878e8d038286 before 65e722a74df992719676ead85a9e93fb2b5a0983; 5.16 (not affected: before 5.16; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/ee5a280ddecd4284a372280e4935ba3ac56b4fb7>
- <https://git.kernel.org/stable/c/58ba5e82d41e8445e563e1604e9adb68e567a266>
- <https://git.kernel.org/stable/c/813d75b25c3d893eafde79914026ddf85369396d>
- <https://git.kernel.org/stable/c/e251079d676c481cc905d1ac226851b1ef49a4b8>
- <https://git.kernel.org/stable/c/22464b99348bde3a3804a26e0a30878358c3dd94>
- <https://git.kernel.org/stable/c/65e722a74df992719676ead85a9e93fb2b5a0983>

## Sources

- CVE List: [CVE-2026-99913](https://www.cve.org/CVERecord?id=CVE-2026-99913), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99913](https://nvd.nist.gov/vuln/detail/CVE-2026-99913), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99913 · Whole record: https://cve.day/CVE-2026-99913.json · Rebuilt by cve.day 2026-11-30T14:33:50.044Z
