# CVE-2024-53076: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-11-19T17:31:40.349Z
- Modified: 2026-08-05T11:43:28.368Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 38416c28e16890b52fdd5eb73479299ec3f062f3 before 62c11896683129790b8f5ab6eb7e695818b0b723; from 38416c28e16890b52fdd5eb73479299ec3f062f3 before b304362ce836968b803e5d4c5f84dcb51a7bf0f2; from 38416c28e16890b52fdd5eb73479299ec3f062f3 before 369f05688911b05216cfcd6ca74473bec87948d7; 6.4 (not affected: before 6.4; from 6.6.60 up to 6.6.*; from 6.11.7 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.4 before 6.6.60; from 6.7 before 6.11.7; 6.12

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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/62c11896683129790b8f5ab6eb7e695818b0b723> (patch)
- <https://git.kernel.org/stable/c/b304362ce836968b803e5d4c5f84dcb51a7bf0f2> (patch)
- <https://git.kernel.org/stable/c/369f05688911b05216cfcd6ca74473bec87948d7> (patch)

## Sources

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

---

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