{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138864","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.899Z","datePublished":"2026-11-30T13:25:42.018Z","dateUpdated":"2026-11-30T13:25:42.018Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:25:42.018Z"},"descriptions":[{"lang":"en","value":"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 >= 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 <= 1.\n\nReported by the sashiko review tool [1]."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_counter.c"],"versions":[{"version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","lessThan":"c380274c205add299b48135ef6cd11e67aac29b2","status":"affected","versionType":"git"},{"version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","lessThan":"d8957533806e9f291e8e65ee2bb12163ce5ecebc","status":"affected","versionType":"git"},{"version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","lessThan":"2748bfeb1c12aa99670c08a34f5ff07ba6945c89","status":"affected","versionType":"git"},{"version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","lessThan":"7809ce47b05671e1fa6d74bead892d6ad6c1403b","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_counter.c"],"versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/c380274c205add299b48135ef6cd11e67aac29b2"},{"url":"https://git.kernel.org/stable/c/d8957533806e9f291e8e65ee2bb12163ce5ecebc"},{"url":"https://git.kernel.org/stable/c/2748bfeb1c12aa99670c08a34f5ff07ba6945c89"},{"url":"https://git.kernel.org/stable/c/7809ce47b05671e1fa6d74bead892d6ad6c1403b"}],"title":"mm/page_counter: avoid integer overflow in effective_protection()","x_generator":{"engine":"bippy-1.2.0"}}}}