{"id":"AZL-116785","summary":"CVE-2026-138864 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_counter: avoid integer overflow in effective_protection()\n\nPatch series \"mm/mglru: fix ineffective memory protection for non-kswapd\nreclaim\", v4.\n\nFor MGLRU, memory.min/low is not honored during non-kswapd global reclaim\n(global direct reclaim and root-level memory.reclaim), because these paths\nshrink memcgs using stale protection (emin/elow).\n\nPatch 2 is the actual fix.  Patch 1 is a prerequisite: an integer overflow\nin effective_protection(), spotted by the sashiko review tool, which patch\n2's new caller would also be exposed to.\n\n\nThis patch (of 2):\n\neffective_protection() scales a parent's protection by a ratio of page\ncounts, e.g.  for recursive protection:\n\n\t(parent_effective - siblings_protected) * (usage - protected)\n\t\t/ (parent_usage - siblings_protected)\n\nThe multiply is done at unsigned long width before dividing.  On systems\nwith \u003e= 16TB RAM the product can exceed 2^64 and wrap, giving a bogus\nprotection value and silently breaking memory.min/low enforcement.\n\nUse mul_u64_u64_div_u64() to multiply in a 128-bit intermediate.  Because\nusage and parent_usage are not read atomically (a child is charged before\nits parent), usage - protected can briefly exceed the divisor, making the\nquotient overflow 64 bits and trap (#DE on x86).  Cap it so the ratio\nstays \u003c= 1.\n\nReported by the sashiko review tool [1].","modified":"2026-12-01T14:17:41.013867984Z","published":"2026-11-30T14:17:42Z","upstream":["CVE-2026-138864"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138864"}],"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-116785.json"}}],"schema_version":"1.9.2"}