We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-50270

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



Description

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.

Reserved 2024-10-21 | Published 2024-11-19 | Updated 2024-12-19 | Assigner Linux

Product status

Default status
unaffected

9294a037c01564786abb15436529fae3863268a2 before 2d339a1f0f16ff5dea58e612ff336f0be0d041e9
affected

9294a037c01564786abb15436529fae3863268a2 before 4401e9d10ab0281a520b9f8c220f30f60b5c248f
affected

Default status
affected

6.8
affected

Any version before 6.8
unaffected

6.11.8
unaffected

6.12
unaffected

References

git.kernel.org/...c/2d339a1f0f16ff5dea58e612ff336f0be0d041e9

git.kernel.org/...c/4401e9d10ab0281a520b9f8c220f30f60b5c248f

cve.org (CVE-2024-50270)

nvd.nist.gov (CVE-2024-50270)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-50270

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.