CVE-2024-38585
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2024-38585 is a memory error vulnerability discovered in the Linux kernel's tools/nolibc/stdlib implementation of realloc(). The vulnerability was disclosed on June 19, 2024, and affects the memory management functionality in the nolibc stdlib implementation (NVD).

Technical details

The vulnerability exists in the realloc() function implementation where memcpy() was incorrectly using heap->len instead of userplen as the size parameter. This caused the function to copy an extra sizeof(heap) bytes from beyond the allocated region. The issue was fixed by modifying the memcpy() call to use the correct userplen parameter (Kernel Commit).

Impact

The vulnerability could potentially lead to memory corruption or information disclosure due to copying memory beyond the intended allocation boundaries. This affects the nolibc stdlib implementation used in the Linux kernel's tooling (Ubuntu).

Mitigation and workarounds

The issue has been fixed in multiple Linux kernel versions, including 6.8.0-40.40 for Ubuntu 24.04 LTS and various other distribution-specific kernel versions. Users should update their systems to the patched versions. The fix involves a one-line change to use the correct length parameter in the realloc() implementation (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67726HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-67725HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-11266MEDIUM6.8
  • Linux DebianLinux Debian
  • gdcm
NoNoDec 12, 2025
CVE-2025-67749MEDIUM5.3
  • Linux DebianLinux Debian
  • pcsx2
NoNoDec 12, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management