mm/damon/core: handle extreme memory state in damon_get_node_mem_bp()
In an extreme and unlikely situation, si_meminfo_node() might let the
caller show zero total ram. That could cause a divide by zero in
damon_get_node_mem_bp(). It could also show free memory larger than the
total memory. This could cause underflow and make DAMOS temporarily make
unexpected behavior. Thanks to safety guards in the auto-tuning feedback
loop, that should not be a real problem, though. Fix the problems by
respectively returning 100% and 0% for used and free memory queries in the
corner cases.
The issue was discovered [1] by Sashiko.
Analysis and contextual insights are available on OpenCVE Cloud.
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
No advisories yet.
Mon, 30 Nov 2026 18:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-369 |
Mon, 30 Nov 2026 13:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: handle extreme memory state in damon_get_node_mem_bp() In an extreme and unlikely situation, si_meminfo_node() might let the caller show zero total ram. That could cause a divide by zero in damon_get_node_mem_bp(). It could also show free memory larger than the total memory. This could cause underflow and make DAMOS temporarily make unexpected behavior. Thanks to safety guards in the auto-tuning feedback loop, that should not be a real problem, though. Fix the problems by respectively returning 100% and 0% for used and free memory queries in the corner cases. The issue was discovered [1] by Sashiko. | |
| Title | mm/damon/core: handle extreme memory state in damon_get_node_mem_bp() | |
| First Time appeared |
Linux
Linux linux Kernel |
|
| CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Linux
Linux linux Kernel |
|
| References |
|
Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2026-11-30T13:26:00.301Z
Reserved: 2026-11-30T13:22:15.902Z
Link: CVE-2026-138897
No data.
Status : Received
Published: 2026-11-30T14:17:47.620
Modified: 2026-11-30T14:17:47.620
Link: CVE-2026-138897
No data.
OpenCVE Enrichment
Updated: 2026-11-30T17:45:03Z