Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-53076

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to < 62c11896683129790b8f5ab6eb7e695818b0b723affected
  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to < b304362ce836968b803e5d4c5f84dcb51a7bf0f2affected
  • 38416c28e16890b52fdd5eb73479299ec3f062f3 to < 369f05688911b05216cfcd6ca74473bec87948d7affected

Linux Linux

Default version status: affected

  • 6.4affected
  • 0 to < 6.4unaffected
  • 6.6.60 to ≤ 6.6.*unaffected
  • 6.11.7 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References