[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024111925-CVE-2024-53076-713e@gregkh>
Date: Tue, 19 Nov 2024 18:31:27 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: 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.
The Linux kernel CVE team has assigned CVE-2024-53076 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 38416c28e168 and fixed in 6.6.60 with commit 62c118966831
Issue introduced in 6.4 with commit 38416c28e168 and fixed in 6.11.7 with commit b304362ce836
Issue introduced in 6.4 with commit 38416c28e168 and fixed in 6.12 with commit 369f05688911
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-53076
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/iio/industrialio-gts-helper.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/62c11896683129790b8f5ab6eb7e695818b0b723
https://git.kernel.org/stable/c/b304362ce836968b803e5d4c5f84dcb51a7bf0f2
https://git.kernel.org/stable/c/369f05688911b05216cfcd6ca74473bec87948d7
Powered by blists - more mailing lists