CVE-2024-50270

MEDIUM

Linux Kernel 6.8-6.11.7 - Integer Overflow in damon_feed_loop_next_input

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0020
EPSS Percentile 9.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-190
Status published
Products (9)
linux/Kernel 6.8.0 - 6.11.8linux
Linux/Linux < 6.8
Linux/Linux 6.11.8 - 6.11.*
Linux/Linux 6.12
Linux/Linux 6.8
Linux/Linux 9294a037c01564786abb15436529fae3863268a2 - 2d339a1f0f16ff5dea58e612ff336f0be0d041e9
Linux/Linux 9294a037c01564786abb15436529fae3863268a2 - 4401e9d10ab0281a520b9f8c220f30f60b5c248f
linux/linux_kernel 6.12 rc1 (6 CPE variants)
linux/linux_kernel 6.8 - 6.11.8
Published Nov 19, 2024
Tracked Since Feb 18, 2026