# CVE-2024-50270: mm/damon/core: avoid overflow in damon_feed_loop_next_input()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:08.406Z
- Modified: 2026-06-17T08:04:03.940Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9294a037c01564786abb15436529fae3863268a2 before 2d339a1f0f16ff5dea58e612ff336f0be0d041e9; from 9294a037c01564786abb15436529fae3863268a2 before 4401e9d10ab0281a520b9f8c220f30f60b5c248f; 6.8 (not affected: before 6.8; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.8 before 6.11.8; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2d339a1f0f16ff5dea58e612ff336f0be0d041e9> (patch)
- <https://git.kernel.org/stable/c/4401e9d10ab0281a520b9f8c220f30f60b5c248f> (patch)

## Sources

- CVE List: [CVE-2024-50270](https://www.cve.org/CVERecord?id=CVE-2024-50270), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50270](https://nvd.nist.gov/vuln/detail/CVE-2024-50270), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50270 · Whole record: https://cve.day/CVE-2024-50270.json · Rebuilt by cve.day 2026-11-25T22:58:48.405Z
