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 | Vendor | Product | Affected 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].
References
- https://security-tracker.debian.org/tracker/CVE-2024-43825 Vendor Advisory
- https://git.kernel.org/stable/c/31ff8464ef540785344994986a010031410f9ff3 URL
- https://git.kernel.org/stable/c/5acc3f971a01be48d5ff4252d8f9cdb87998cdfb URL
- https://git.kernel.org/stable/c/b5046de32fd1532c3f67065197fc1da82f0b5193 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43825... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-43825 Vendor Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Product
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-787Out-of-bounds Write
Timeline
Published17 Aug 2024
Updated4 Nov 2026
First seen7 Mar 2026
Sources
CVE-2024-43825 · NVD
CVE-2024-43825 · MITRE
DEBIAN-CVE-2024-43825 · OSV
CVE-2024-43825 · OSV
Track software like this
Free during beta