{"id":"CVE-2024-38585","aliases":["CVE-2024-38585"],"related":[],"kind":"vulnerability","state":"published","title":"tools/nolibc/stdlib: fix memory error in realloc()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntools/nolibc/stdlib: fix memory error in realloc()\n\nPass user_p_len to memcpy() instead of heap->len to prevent realloc()\nfrom copying an extra sizeof(heap) bytes from beyond the allocated\nregion.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntools/nolibc/stdlib: fix memory error in realloc()\n\nPass user_p_len to memcpy() instead of heap->len to prevent realloc()\nfrom copying an extra sizeof(heap) bytes from beyond the allocated\nregion.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tools/nolibc/stdlib: corrige el error de memoria en realloc() Pase user_p_len a memcpy() en lugar de heap-&gt;len para evitar que realloc() copie un tamaño extra de(heap) bytes más allá de la región asignada.","source":"nvd"}],"published":"2024-06-19T13:37:41.170Z","modified":"2026-06-17T07:40:38.710Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"0e0ff638400be8f497a35b51a4751fd823f6bd6a","fixed":"5996b2b2dac739f2a27da13de8eee5b85b2550b3","status":"affected"},{"type":"git","introduced":"0e0ff638400be8f497a35b51a4751fd823f6bd6a","fixed":"f678c3c336559cf3255a32153e9a17c1be4e7c15","status":"affected"},{"type":"git","introduced":"0e0ff638400be8f497a35b51a4751fd823f6bd6a","fixed":"8019d3dd921f39a237a9fab6d2ce716bfac0f983","status":"affected"},{"type":"git","introduced":"0e0ff638400be8f497a35b51a4751fd823f6bd6a","fixed":"4e6f225aefeb712cdb870176b6621f02cf235b8c","status":"affected"},{"type":"git","introduced":"0e0ff638400be8f497a35b51a4751fd823f6bd6a","fixed":"791f4641142e2aced85de082e5783b4fb0b977c2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"6.1.93"},{"status":"affected","introduced":"6.2","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5996b2b2dac739f2a27da13de8eee5b85b2550b3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f678c3c336559cf3255a32153e9a17c1be4e7c15","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8019d3dd921f39a237a9fab6d2ce716bfac0f983","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e6f225aefeb712cdb870176b6621f02cf235b8c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/791f4641142e2aced85de082e5783b4fb0b977c2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:13:53.564Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38585","url":"https://www.cve.org/CVERecord?id=CVE-2024-38585","licence":"CVE Terms of Use","modified":"2026-05-11T20:19:34.175Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38585","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38585","licence":"Public domain","modified":"2026-06-17T07:40:38.710Z"}],"updatedAt":"2026-11-25T22:58:42.028Z","epss":{"score":0.00233,"percentile":0.15241,"date":"2026-12-01T12:00:22.000Z"}}