{"api_version":"1","generated_at":"2026-12-02T02:46:53+00:00","cve":"CVE-2026-138864","urls":{"html":"https://cve.report/CVE-2026-138864","api":"https://cve.report/api/cve/CVE-2026-138864.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138864","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138864"},"summary":{"title":"mm/page_counter: avoid integer overflow in effective_protection()","description":"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].","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:42","updated_at":"2026-11-30 14:17:42"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c380274c205add299b48135ef6cd11e67aac29b2","name":"https://git.kernel.org/stable/c/c380274c205add299b48135ef6cd11e67aac29b2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2748bfeb1c12aa99670c08a34f5ff07ba6945c89","name":"https://git.kernel.org/stable/c/2748bfeb1c12aa99670c08a34f5ff07ba6945c89","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7809ce47b05671e1fa6d74bead892d6ad6c1403b","name":"https://git.kernel.org/stable/c/7809ce47b05671e1fa6d74bead892d6ad6c1403b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d8957533806e9f291e8e65ee2bb12163ce5ecebc","name":"https://git.kernel.org/stable/c/d8957533806e9f291e8e65ee2bb12163ce5ecebc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138864","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138864","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc50bcc6e00b8509e64875c674f4573e8b4df1e8 c380274c205add299b48135ef6cd11e67aac29b2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc50bcc6e00b8509e64875c674f4573e8b4df1e8 d8957533806e9f291e8e65ee2bb12163ce5ecebc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc50bcc6e00b8509e64875c674f4573e8b4df1e8 2748bfeb1c12aa99670c08a34f5ff07ba6945c89 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bc50bcc6e00b8509e64875c674f4573e8b4df1e8 7809ce47b05671e1fa6d74bead892d6ad6c1403b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/page_counter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c380274c205add299b48135ef6cd11e67aac29b2","status":"affected","version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","versionType":"git"},{"lessThan":"d8957533806e9f291e8e65ee2bb12163ce5ecebc","status":"affected","version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","versionType":"git"},{"lessThan":"2748bfeb1c12aa99670c08a34f5ff07ba6945c89","status":"affected","version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","versionType":"git"},{"lessThan":"7809ce47b05671e1fa6d74bead892d6ad6c1403b","status":"affected","version":"bc50bcc6e00b8509e64875c674f4573e8b4df1e8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/page_counter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.7"},{"lessThan":"5.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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]."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:42.018Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138864","datePublished":"2026-11-30T13:25:42.018Z","dateReserved":"2026-11-30T13:22:15.899Z","dateUpdated":"2026-11-30T13:25:42.018Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:42","lastModifiedDate":"2026-11-30 14:17:42","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138864","Ordinal":"1","Title":"mm/page_counter: avoid integer overflow in effective_protection(","CVE":"CVE-2026-138864","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138864","Ordinal":"1","NoteData":"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].","Type":"Description","Title":"mm/page_counter: avoid integer overflow in effective_protection("}]}}}