CVE-2024-38585Published Jun 19, 2024 · Jun 19Updated Oct 28
tools/nolibc/stdlib: fix memory error in realloc()
Linux
High7.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tools/nolibc/stdlib: fix memory error in realloc()
Pass user_p_len to memcpy() instead of heap->len to prevent realloc() from copying an extra sizeof(heap) bytes from beyond the allocated region.
From the CVE record · Linux
The Linux kernel's tools/nolibc realloc() can copy bytes beyond an allocated region because it passes the wrong length to memcpy(). This is an out-of-bounds read; the input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers using the Linux kernel's tools/nolibc package should check their versions; affected versions are not specified.