CVE-2026-138897: mm/damon/core: handle extreme memory state in damon_get_node_mem_bp()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/core: handle extreme memory state in damongetnodemembp()

In an extreme and unlikely situation, simeminfonode() might let the caller show zero total ram. That could cause a divide by zero in damongetnodemembp(). 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 PM
Description
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the issue?

The issue requires an extreme and unlikely memory-accounting state in which si_meminfo_node() reports zero total RAM, causing a divide-by-zero path, or reports free memory greater than total memory, causing an underflow path.

2

What is the expected impact if free memory is reported above total memory?

The underflow can cause DAMOS to behave unexpectedly on a temporary basis. The description states that safety guards in the auto-tuning feedback loop should prevent this from becoming a real problem.

3

How does the fix handle invalid memory values?

For these corner cases, the fix returns 100% for used-memory queries and 0% for free-memory queries, avoiding both division by zero and underflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203