CVE-2024-38585

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

HIGH
7.1
CVSS Score
Published: June 19, 2024 at 01:37 PM UTC
Updated: June 17, 2026 at 07:40 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.19 ≤ v < 6.1.935.19 ≤ v < 6.105.19 ≤ v < 6.6.335.19 ≤ v < 6.8.125.19 ≤ v < 6.9.36.2 ≤ v < 6.6.336.7 ≤ v < 6.8.126.9 ≤ v < 6.9.30e0ff638400be8f497a35b51a4751fd823f6bd6a5.19
Vendor states this is fixed in 4e6f225aefeb712cdb870176b6621f02cf235b8c (fixed)
Vendor states this is fixed in 5996b2b2dac739f2a27da13de8eee5b85b2550b3 (fixed)
Vendor states this is fixed in 791f4641142e2aced85de082e5783b4fb0b977c2 (fixed)
Vendor states this is fixed in 8019d3dd921f39a237a9fab6d2ce716bfac0f983 (fixed)
Vendor states this is fixed in f678c3c336559cf3255a32153e9a17c1be4e7c15 (fixed)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e6f225aefeb712cdb870176b6621f02cf235b8c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5996b2b2dac739f2a27da13de8eee5b85b2550b3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/791f4641142e2aced85de082e5783b4fb0b977c2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8019d3dd921f39a237a9fab6d2ce716bfac0f983
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f678c3c336559cf3255a32153e9a17c1be4e7c15

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card