๐Ÿ” CVE Alert

CVE-2024-50270

MEDIUM 5.5

mm/damon/core: avoid overflow in damon_feed_loop_next_input()

CVSS Score
5.5
EPSS Score
0.0%
EPSS Percentile
0th

In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: avoid overflow in damon_feed_loop_next_input() damon_feed_loop_next_input() is inefficient and fragile to overflows. Specifically, 'score_goal_diff_bp' calculation can overflow when 'score' is high. The calculation is actually unnecessary at all because 'goal' is a constant of value 10,000. Calculation of 'compensation' is again fragile to overflow. Final calculation of return value for under-achiving case is again fragile to overflow when the current score is under-achieving the target. Add two corner cases handling at the beginning of the function to make the body easier to read, and rewrite the body of the function to avoid overflows and the unnecessary bp value calcuation.

Vendor linux
Product linux
Ecosystems
Industries
Technology
Published Nov 19, 2024
Last Updated May 11, 2026
Stay Ahead of the Next One

Get instant alerts for linux linux

Be the first to know when new medium vulnerabilities affecting linux linux are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Linux / Linux
9294a037c01564786abb15436529fae3863268a2 < 2d339a1f0f16ff5dea58e612ff336f0be0d041e9 9294a037c01564786abb15436529fae3863268a2 < 4401e9d10ab0281a520b9f8c220f30f60b5c248f
Linux / Linux
6.8

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
git.kernel.org: https://git.kernel.org/stable/c/2d339a1f0f16ff5dea58e612ff336f0be0d041e9 git.kernel.org: https://git.kernel.org/stable/c/4401e9d10ab0281a520b9f8c220f30f60b5c248f