CVE-2024-53076: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()
In the Linux kernel, the following vulnerability has been resolved:
iio: gts-helper: Fix memory leaks for the error path of iiogtsbuildavailscaletable()
If pertimescales[i] or pertimegains[i] kcalloc fails in the for loop of iiogtsbuildavailscaletable(), the errfreeout will fail to call kfree() each time when i is reduced to 0, so all the pertimescales[0] and pertimegains[0] will not be freed, which will cause memory leaks.
Fix it by checking if i >= 0.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53076?
CVE-2024-53076 is categorized as a medium severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-53076?
To fix CVE-2024-53076, upgrade your Linux kernel to a version that includes the patch for this vulnerability.
Which Linux kernel versions are affected by CVE-2024-53076?
CVE-2024-53076 affects Linux kernel versions from 6.4 to 6.6.60 and from 6.7 to 6.11.7, including various release candidates.
What type of vulnerability is CVE-2024-53076?
CVE-2024-53076 is a memory leak vulnerability that occurs in the iio_gts_build_avail_scale_table function of the Linux kernel.
What can attackers exploit in CVE-2024-53076?
Attackers can exploit CVE-2024-53076 to cause increased memory consumption leading to potential denial-of-service conditions.