CVE-2024-53076

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-53076
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53076.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-53076
Downstream
Related
Published
2024-11-19T17:31:40.349Z
Modified
2025-11-28T02:34:52.899680Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

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 pertime_gains[0] will not be freed, which will cause memory leaks.

Fix it by checking if i >= 0.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53076.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
38416c28e16890b52fdd5eb73479299ec3f062f3
Fixed
62c11896683129790b8f5ab6eb7e695818b0b723
Fixed
b304362ce836968b803e5d4c5f84dcb51a7bf0f2
Fixed
369f05688911b05216cfcd6ca74473bec87948d7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.6.60
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.7