CVE-2024-38585: Linux kernel · tools/nolibc/stdlib: fix memory error in realloc()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.1 High · fixed in 6.8.0-1013.14~22.04.1 : patch Linux kernel soon.
Data as of 24 Nov 2026, 19:27 UTC
- Patch
- Available – fixed in 6.8.0-1013.14~22.04.1, 6.8.0-1012.14~22.04.1, 6.8.0-1012.13~22.04.1 +16
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2024-38585 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-38585 (opens in a new tab)
- git.kernel.org/linus/791f4641142e2aced85de082e5783b4fb0b977c2 (opens in a new tab)
- git.kernel.org/stable/c/5996b2b2dac739f2a27da13de8eee5b85b2550b3 (opens in a new tab)
- git.kernel.org/stable/c/f678c3c336559cf3255a32153e9a17c1be4e7c15 (opens in a new tab)
- git.kernel.org/stable/c/8019d3dd921f39a237a9fab6d2ce716bfac0f983 (opens in a new tab)
- git.kernel.org/stable/c/4e6f225aefeb712cdb870176b6621f02cf235b8c (opens in a new tab)
- git.kernel.org/stable/c/791f4641142e2aced85de082e5783b4fb0b977c2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6949-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6955-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6949-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-2 (opens in a new tab)