Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

CVE-2024-43825: Linux kernel sorting bug may cause memory overrun

CVE-2024-43825 · published 2 years ago
Summary

The Linux kernel's time-table sorting code can get stuck when a zero time value appears, leading to writes outside of allocated memory. This could cause crashes or unpredictable behavior. Update the kernel to the latest patched version to fix the issue.

What to do
  • Update debian linux to version 6.10.3-1.
  • Update linux kernel to version 6.10.3.
  • Update linux linux to version 31ff8464ef540785344994986a010031410f9ff3 or later.
Affected software
Ecosystem VendorProductAffected versions
– linux linux_kernel >= 6.4, < 6.6.44
>= 6.7, < 6.10.3
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
– linux linux < 31ff8464ef540785344994986a010031410f9ff3
6.4
Debian:13 debian linux < 6.10.3-1
Fix: upgrade to 6.10.3-1
Linux linux kernel >= 6.7.0, < 6.10.3
Fix: upgrade to 6.10.3
Original advisory text
iio: Fix the sorting functionality in iio_gts_build_avail_time_table
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: 1. 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 once `times[j] > new`, the value `new` will be added in the current position and the `times[j]` will be moved to `j+1` position, 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. 2. 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].
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
7.8 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-787Out-of-bounds Write
Timeline
Published17 Aug 2024
Updated4 Nov 2026
First seen7 Mar 2026
Sources
CVE-2024-43825 · MITRE
Track software like this
Free during beta