CVE-2024-53076
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.4 before 6.6.60, from 6.7 before 6.11.7, 6.12NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: gts-helper: corrige fugas de memoria para la ruta de error de iio_gts_build_avail_scale_table() Si per_time_scales[i] o per_time_gains[i] kcalloc falla en el bucle for de iio_gts_build_avail_scale_table(), err_free_out no podrá llamar a kfree() cada vez que i se reduzca a 0, por lo que no se liberarán todos los per_time_scales[0] y per_time_gains[0], lo que provocará fugas de memoria. Arréglelo comprobando si i >= 0.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53076 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-53076 changed 2026-08-04Public domain