What’s Vulnerable › Vulnerabilities
CVE-2024-53076: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-19 · updated 2026-08-04
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table() If per_time_scales[i] or per_time_gains[i] kcalloc fails in the for loop of iio_gts_build_avail_scale_table(), the err_free_out will fail to call kfree() each time when i is reduced to 0, so all the per_time_scales[0] and per_time_gains[0] will not be freed, which will cause memory leaks. Fix it by checking if i >= 0.
Affected products
- Linux kernel: from 6.4 before 6.6.60; from 6.7 before 6.11.7; 6.12-rc1, 6.12-rc2, 6.12-rc3, 6.12-rc4, 6.12-rc5 — fixed in 6.11.7, 6.6.60
How to fix
Upgrade to a fixed version: Linux kernel 6.11.7, 6.6.60. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/369f05688911b05216cfcd6ca74473bec87948d7
- https://git.kernel.org/stable/c/62c11896683129790b8f5ab6eb7e695818b0b723
- https://git.kernel.org/stable/c/b304362ce836968b803e5d4c5f84dcb51a7bf0f2
Get alerted when CVE-2024-53076 or the next vulnerability affects your stack