CVE-2024-53076

Source
https://cve.org/CVERecord?id=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
2026-03-11T07:53:41.450157Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53076.json",
    "cna_assigner": "Linux"
}
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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53076.json"