CVE-2024-43825
kernel: iio: Fix the sorting functionality in iio_gts_build_avail_time_table
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 17, 2024
Updated · October 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
iio: Fix the sorting functionality in iio_gts_build_avail_time_table
The sorting in iio_gts_build_avail_time_table is not working as intended. It could result in an out-of-bounds access when the time is zero.
Here are more details:
- When the gts->itime_table[i].time_us is zero, e.g., the time
sequence is
3, 0, 1, the inner for-loop will not terminate and do out-of-bound writes. This is because oncetimes[j] > new, the valuenewwill be added in the current position and thetimes[j]will be moved toj+1position, which makes the if-condition always hold. Meanwhile, idx will be added one, making the loop keep running without termination and out-of-bound write. - If none of the gts->itime_table[i].time_us is zero, the elements will just be copied without being sorted as described in the comment "Sort times from all tables to one and remove duplicates".
For more details, please refer to https://lore.kernel.org/all/[email protected].
Statement
This vulnerability is rated with a Moderate severity because exploitation requires local access alongside specialized Industrial I/O sensor hardware configurations, significantly constraining the attack surface. Standard enterprise deployments rarely expose or initialize these specific industrial device drivers. Furthermore, supported Red Hat Enterprise Linux releases are not affected by this flaw, as the vulnerable helper logic was introduced in a kernel release newer than those shipped in RHEL.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.2CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H
CWE-787 · Out-of-bounds Write