{"id":"CVE-2026-80719","aliases":["CVE-2026-80719"],"related":[],"kind":"vulnerability","state":"published","title":"mm: mglru: fix stale batch updates after memcg reparenting","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: mglru: fix stale batch updates after memcg reparenting\n\nThe mglru page table walker batches per-generation size deltas in\nwalk->nr_pages while walking page tables without holding the lruvec lock. \nThe reset_batch_size() later folds those deltas into walk->lruvec under\nthe lruvec lock.\n\nThe page table walker can run concurrently with the memcg reparenting path\nas follows:\n\nCPU0                           CPU1\n====                           ====\n\nwalk_mm\n--> walk_page_range\n    --> update_batch_size\n        --> walk->nr_pages += delta\n\n                              mem_cgroup_css_offline\n                              --> memcg_reparent_objcgs\n                                  --> lock lruvec\n                                      lru_gen_reparent_memcg\n                                      --> reparent child folios to parent\n                                      unlock lruvec\n\n    lock lruvec\n    reset_batch_size\n    --> child lrugen->nr_pages += delta\n\nThis will trigger the following warning in lru_gen_exit_memcg():\n\n\tVM_WARN_ON_ONCE(memchr_inv(lruvec->lrugen.nr_pages, 0,\n\t\t\t\t   sizeof(lruvec->lrugen.nr_pages)));\n\nAnd the user-visible impact of underestimated nr_pages in MGLRU was\npremature OOMs because MGLRU does not try to reclaim memory when nr_pages\nreaches zero, but there are still more pages.\n\nTo fix it, make reset_batch_size() check CSS_DYING under RCU before\nflushing the pending batch.  A non-dying memcg keeps the original lruvec\nstable against RCU-delayed offlining; a dying memcg redirects the deltas\nto the first non-dying ancestor.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: mglru: fix stale batch updates after memcg reparenting\n\nThe mglru page table walker batches per-generation size deltas in\nwalk->nr_pages while walking page tables without holding the lruvec lock. \nThe reset_batch_size() later folds those deltas into walk->lruvec under\nthe lruvec lock.\n\nThe page table walker can run concurrently with the memcg reparenting path\nas follows:\n\nCPU0                           CPU1\n====                           ====\n\nwalk_mm\n--> walk_page_range\n    --> update_batch_size\n        --> walk->nr_pages += delta\n\n                              mem_cgroup_css_offline\n                              --> memcg_reparent_objcgs\n                                  --> lock lruvec\n                                      lru_gen_reparent_memcg\n                                      --> reparent child folios to parent\n                                      unlock lruvec\n\n    lock lruvec\n    reset_batch_size\n    --> child lrugen->nr_pages += delta\n\nThis will trigger the following warning in lru_gen_exit_memcg():\n\n\tVM_WARN_ON_ONCE(memchr_inv(lruvec->lrugen.nr_pages, 0,\n\t\t\t\t   sizeof(lruvec->lrugen.nr_pages)));\n\nAnd the user-visible impact of underestimated nr_pages in MGLRU was\npremature OOMs because MGLRU does not try to reclaim memory when nr_pages\nreaches zero, but there are still more pages.\n\nTo fix it, make reset_batch_size() check CSS_DYING under RCU before\nflushing the pending batch.  A non-dying memcg keeps the original lruvec\nstable against RCU-delayed offlining; a dying memcg redirects the deltas\nto the first non-dying ancestor.","source":"cvelist"}],"published":"2026-08-28T06:53:16.087Z","modified":"2026-08-28T08:16:57.720Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f304652609eae3814b0e9d11c75c0e0cb62da31f","fixed":"fceb6b7f3ddec6ea9fc11577f4cf1b2da73a3101","status":"affected"},{"type":"git","introduced":"f304652609eae3814b0e9d11c75c0e0cb62da31f","fixed":"de4660898b7aa7e03d3b120a6bfa6b26211e4e77","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/fceb6b7f3ddec6ea9fc11577f4cf1b2da73a3101","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de4660898b7aa7e03d3b120a6bfa6b26211e4e77","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80719","url":"https://www.cve.org/CVERecord?id=CVE-2026-80719","licence":"CVE Terms of Use","modified":"2026-08-28T06:53:16.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80719","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80719","licence":"Public domain","modified":"2026-08-28T08:16:57.720Z"}],"updatedAt":"2026-11-25T22:59:35.625Z","epss":{"score":0.00145,"percentile":0.03947,"date":"2026-12-01T12:00:22.000Z"}}