CVE-2024-27037: linux-libc-dev - Prevent null pointer dereference caused by kmalloc failure

linux Updated 02 Oct 2025

Summary

01/05/2024
No i
Unrated
Not published

CVE-2024-27037: In the Linux kernel, the following vulnerability has been resolved: clk: zynq: Prevent null pointer dereference caused by kmalloc failure The kmalloc() in zynq_clk_setup() will return null if the physical memory has run... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The linux-libc-dev package is a development package that provides the necessary header files and libraries for compiling C programs that use the Linux kernel interfaces. It is an essential component for building and running applications on Linux systems. This package is widely used in various Linux distributions, including Debian. The vulnerability identified as CVE-2024-27037 affects the linux-libc-dev package and can lead to a null pointer dereference due to a kmalloc failure.

Vulnerability Detail

The vulnerability arises from the kmalloc() function in the zynq_clk_setup() function of the Linux kernel. If the physical memory is exhausted, kmalloc() returns null. Subsequently, if snprintf() is used to write data to the null address, a null pointer dereference bug occurs. This vulnerability can be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code in the context of the affected process. The severity of this vulnerability is rated as MEDIUM with a CVSS score of 5.5.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can avoid triggering the vulnerability by ensuring that the system has sufficient physical memory available. Monitoring memory usage and taking appropriate actions to prevent memory exhaustion can help mitigate the risk of this vulnerability.

Conclusion

The CVE-2024-27037 vulnerability in the linux-libc-dev package can lead to a null pointer dereference due to a kmalloc failure. It is crucial to update the package to a patched version provided by the official Linux distribution to mitigate the risk. Regularly monitoring memory usage and taking appropriate measures to prevent memory exhaustion can also help reduce the vulnerability's impact. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

linux-libc-dev is a development package that provides header files and libraries for compiling C programs that use Linux kernel interfaces.

kmalloc() is a function in the Linux kernel used for allocating memory. It returns a pointer to the allocated memory or null if the allocation fails.

A null pointer dereference occurs when a program attempts to access or manipulate memory using a null pointer, leading to a crash or potentially exploitable behavior.

This vulnerability can result in a denial-of-service (DoS) condition or allow an attacker to execute arbitrary code in the context of the affected process.

The CVSS score of this vulnerability is 5.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback