{"id":26054,"date":"2026-09-18T04:32:17","date_gmt":"2026-09-17T20:32:17","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-93197"},"modified":"2026-09-18T04:32:17","modified_gmt":"2026-09-17T20:32:17","slug":"cve-2026-93197","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-93197","title":{"rendered":"CVE-2026-93197 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nmemcg: move LRU size"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>memcg: move LRU size accounting on reparenting instead of copying it<\/p>\n<p>When a memory cgroup is offlined its LRU folios are reparented to the<br \/>\nparent.  lruvec_reparent_lru() splices the child&#8217;s lists into the<br \/>\nparent&#8217;s and credits the parent with the child&#8217;s per-zone<br \/>\nlru_zone_size[], but never clears the child&#8217;s copy, so the size is<br \/>\ncopied rather than moved.  lru_gen_reparent_memcg() does the same for<br \/>\nMGLRU.<\/p>\n<p>The parent is left correct, credited with exactly the folios it took<br \/>\nover.  The stale value sits on the child and nothing will correct it:<br \/>\nfolio-&gt;memcg_data now resolves to the parent, so every later<br \/>\nupdate_lru_size() for those folios goes there.<\/p>\n<p>Dying cgroups are not freed immediately and mem_cgroup_iter() still<br \/>\nwalks them, so shrink_lruvec() keeps being called on them.<br \/>\nget_scan_count() reads the phantom counter through lruvec_lru_size() and<br \/>\nthe scan loop then grinds through nr[] in SWAP_CLUSTER_MAX steps against<br \/>\nan empty list, for as long as the dead cgroup lives.  Under MGLRU the<br \/>\nMGLRU scanner runs instead, but count_shadow_nodes() sums all of<br \/>\nNR_LRU_LISTS through lruvec_lru_size() and over-budgets the shadow node<br \/>\nlimit just the same.<\/p>\n<p>On one 251 GiB host a sweep of every mz-&gt;lru_zone_size[] found 380<br \/>\ncounters describing folios on no list at all: 124777314 pages, 476 GiB,<br \/>\n1.89x the machine&#8217;s RAM, across 57 cgroups.  All were on memcgs with<br \/>\nCSS_DYING set and CSS_ONLINE clear, and parent\/child pairs reported<br \/>\nbyte-identical sizes.<\/p>\n<p>LRU_UNEVICTABLE needs its size moved too.  Its list is deliberately not<br \/>\nspliced because lruvec_init() poisons the head &#8211; the unevictable LRU is<br \/>\nimaginary and folios are never threaded on it &#8211; but the size is kept by<br \/>\nlruvec_add_folio()\/lruvec_del_folio() and those folios account to the<br \/>\nparent from here on.<\/p>\n<p>This depends on commit bf4ade7dbd76 (&#8220;memcg: keep folio&#8217;s objcg same as<br \/>\nits node&#8221;) and must not be backported ahead of it.  Without that<br \/>\ninvariant a folio&#8217;s objcg can belong to another node, so a folio already<br \/>\nspliced onto the parent&#8217;s list can still resolve to the child&#8217;s lruvec<br \/>\nuntil the objcg&#8217;s node is reparented in a later iteration of<br \/>\nmemcg_reparent_objcgs(); clearing the child&#8217;s counter early then lets<br \/>\nlruvec_del_folio() underflow it and trip the WARN_ONCE()\/VM_BUG_ON() in<br \/>\nmem_cgroup_update_lru_size().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>memcg: move LRU size accounting on reparenting instead of copying it<\/p>\n<p>When a memory cgroup is offlined its LRU folios are reparente<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-26054","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/26054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}