CVE-2024-38585

published 19 Jun 2024 · updated 11 May 2026

tools/nolibc/stdlib: fix memory error in realloc()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4e6f225aefeb712cdb870176b6621f02cf235b8c, Kernel 5996b2b2dac739f2a27da13de8eee5b85b2550b3, Kernel 791f4641142e2aced85de082e5783b4fb0b977c2 and 2 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.19, >=0e0ff638400be8f497a35b51a4751fd823f6bd6a <4e6f225aefeb712cdb870176b6621f02cf235b8c, >=0e0ff638400be8f497a35b51a4751fd823f6bd6a <5996b2b2dac739f2a27da13de8eee5b85b2550b3, >=0e0ff638400be8f497a35b51a4751fd823f6bd6a <791f4641142e2aced85de082e5783b4fb0b977c2, >=0e0ff638400be8f497a35b51a4751fd823f6bd6a <8019d3dd921f39a237a9fab6d2ce716bfac0f983, >=0e0ff638400be8f497a35b51a4751fd823f6bd6a <f678c3c336559cf3255a32153e9a17c1be4e7c154e6f225aefeb712cdb870176b6621f02cf235b8c, 5996b2b2dac739f2a27da13de8eee5b85b2550b3, 791f4641142e2aced85de082e5783b4fb0b977c2, 8019d3dd921f39a237a9fab6d2ce716bfac0f983, f678c3c336559cf3255a32153e9a17c1be4e7c15

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-38585 severity on Zeptric[![CVE-2024-38585](https://zeptric.io/badge/cve/CVE-2024-38585.svg)](https://zeptric.io/cve/CVE-2024-38585)