CVE-2024-38585

Source
https://cve.org/CVERecord?id=CVE-2024-38585
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38585.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-38585
Downstream
Related
Published
2024-06-19T13:37:41.170Z
Modified
2026-03-14T12:34:35.562116Z
Summary
tools/nolibc/stdlib: fix memory error in realloc()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

Pass userplen to memcpy() instead of heap->len to prevent realloc() from copying an extra sizeof(heap) bytes from beyond the allocated region.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38585.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0e0ff638400be8f497a35b51a4751fd823f6bd6a
Fixed
5996b2b2dac739f2a27da13de8eee5b85b2550b3
Fixed
f678c3c336559cf3255a32153e9a17c1be4e7c15
Fixed
8019d3dd921f39a237a9fab6d2ce716bfac0f983
Fixed
4e6f225aefeb712cdb870176b6621f02cf235b8c
Fixed
791f4641142e2aced85de082e5783b4fb0b977c2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38585.json"