CVE-2024-53076

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

State
Published
Severity
7.8 High
Published
Nov 19, 2024
Updated
Aug 5, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to before 62c11896683129790b8f5ab6eb7e695818b0b723Affected
  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to before b304362ce836968b803e5d4c5f84dcb51a7bf0f2Affected
  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to before 369f05688911b05216cfcd6ca74473bec87948d7Affected
LinuxLinux
  • 6.4Affected
  • before 6.4Not affected
  • 6.6.60 through 6.6.*Not affected
  • 6.11.7 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.