{"id":"CVE-2026-138897","summary":"mm/damon/core: handle extreme memory state in damon_get_node_mem_bp()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/core: handle extreme memory state in damon_get_node_mem_bp()\n\nIn an extreme and unlikely situation, si_meminfo_node() might let the\ncaller show zero total ram.  That could cause a divide by zero in\ndamon_get_node_mem_bp().  It could also show free memory larger than the\ntotal memory.  This could cause underflow and make DAMOS temporarily make\nunexpected behavior.  Thanks to safety guards in the auto-tuning feedback\nloop, that should not be a real problem, though.  Fix the problems by\nrespectively returning 100% and 0% for used and free memory queries in the\ncorner cases.\n\nThe issue was discovered [1] by Sashiko.","modified":"2026-12-01T21:02:42.668294262Z","published":"2026-11-30T13:26:00.301Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138897.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/34902f2cbcc8d218f64f0ff827c131f26ba01630"},{"type":"WEB","url":"https://git.kernel.org/stable/c/485a9149ad406e00949327a3231b9084d7073706"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd5f656874190a4d4590cb741fec6f7b14cedf08"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138897.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138897"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0e1c773b501f33437d87b72c7d26080361e224b1"},{"fixed":"34902f2cbcc8d218f64f0ff827c131f26ba01630"},{"fixed":"dd5f656874190a4d4590cb741fec6f7b14cedf08"},{"fixed":"485a9149ad406e00949327a3231b9084d7073706"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138897.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138897.json"}}],"schema_version":"1.9.2"}