{"id":"AZL-116782","summary":"CVE-2026-138863 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mglru: fix ineffective memory protection for non-kswapd reclaim\n\nFor MGLRU, memory.min/low is not honored during global proactive reclaim\n(writing to the root memory.reclaim) and global direct reclaim, because\nthese paths shrink memcgs using stale protection (emin/elow).  It can be\nreproduced as follows:\n\n  # echo 7 \u003e /sys/kernel/mm/lru_gen/enabled\n  # cd /sys/fs/cgroup\n  # mkdir -p a/b\n  # echo 100M \u003e a/memory.min\n  # echo +memory \u003e a/cgroup.subtree_control\n  # echo 100M \u003e a/b/memory.min\n  # echo $$ \u003e a/b/cgroup.procs\n  # dd if=/dev/zero of=/tmp/testfile bs=1M count=200\n  # cat a/b/memory.current\n  222650368\n  # echo 500M \u003e memory.reclaim\n  -bash: echo: write error: Resource temporarily unavailable\n  # cat a/b/memory.current\n  6070272\n\nmemory.min is 100M, yet reclaim drops a/b down to 6M, breaking the\nprotection.  The traditional LRU path is not affected because\nshrink_node() calls mem_cgroup_calculate_protection() for each memcg it\nvisits during a top-down tree walk.\n\nCommit 30d77b7eef01 (\"mm/mglru: fix ineffective protection calculation\")\nmoved the protection computation into lru_gen_age_node(), which only runs\nfor kswapd.  Non-kswapd global reclaim reaches shrink_one() through\nlru_gen_shrink_node() -\u003e shrink_many() without any protection computation,\nso emin/elow are whatever a previous kswapd run left behind - or zero if\nkswapd never ran on this node.  Relying on a prior kswapd pass is not\ncorrect either: a memcg's emin/elow are derived from its ancestors'\nmemory.min/low settings and from children_min_usage, both of which change\nover time, so emin/elow go stale even after kswapd has run and must be\nrecomputed at the point of reclaim.\n\nIntroduce mem_cgroup_calculate_protection_path() which computes emin/elow\nalong the root-to-target path only, by iterating through the cgroup\nancestors array top-down.  This avoids the full tree traversal that would\nbe needed with mem_cgroup_calculate_protection(), limiting the cost to\nO(depth) per memcg - typically 3-5 levels.\n\nCall it from shrink_one() for the non-kswapd path so that each memcg about\nto be shrunk has correct protection values.","modified":"2026-12-01T14:17:40.967079848Z","published":"2026-11-30T14:17:42Z","upstream":["CVE-2026-138863"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138863"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116782.json"}}],"schema_version":"1.9.2"}