{"id":"CVE-2026-99914","summary":"mm/mremap: populate calculated fields in vrm state correctly","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mremap: populate calculated fields in vrm state correctly\n\nCommit d5c8aec0542e (\"mm/mremap: initial refactor of move_vma()\")\nintroduced the vma_remap_struct helper to pass state sanely through\nmremap() logic.\n\nPart of this state is vrm-\u003edelta - equal to the absolute difference between\nvrm-\u003eold_len and vrm-\u003enew_len (the old and new lengths of the VMA,\nrespectively).\n\nThis value is used to correctly charge accounted VMAs.\n\nWhen shrinking a VMA, mremap_to() sets vrm-\u003eold_len equal to vrm-\u003enew_len\nhaving performed the shrink of the VMA first, prior to any potential move\n(e.g.  MREMAP_FIXED | MREMAP_MAYMOVE specified).\n\nHowever it does not recalculate vrm-\u003edelta, which results in incorrectly\novercharging the VMA when both moving and shrinking a VMA.\n\nThe charge leaks to Committed_AS globally, meaning a mischievous user can\ncause allocations to fail across the system in strict overcommit mode.\n\nResolve the issue by abstracting the update of vrm-\u003edelta to\nvrm_populate_calculated() and invoking this from mremap_to() when\nvrm-\u003eold_len is changed.\n\nAdditionally, update vrm-\u003eremap_type whose value depends on vrm-\u003edelta. \nThe field is not read again after the shrink, but it is the logically\ncorrect thing to do and protects against future changes which break this.","modified":"2026-12-01T21:02:41.392622562Z","published":"2026-11-30T13:18:14.020Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99914.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/34e753f8d927069785f6b675f5769da5da4ef78e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/38efa986446b83eaefde90558bc0ee7dbe903782"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6d9bee0f6b9d3bf46329ca6fb49be364d1adb9a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99914.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99914"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d5c8aec0542e2d79b64de9089b88fabdebe05c1e"},{"fixed":"38efa986446b83eaefde90558bc0ee7dbe903782"},{"fixed":"b6d9bee0f6b9d3bf46329ca6fb49be364d1adb9a"},{"fixed":"34e753f8d927069785f6b675f5769da5da4ef78e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99914.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99914.json"}}],"schema_version":"1.9.2"}