Kernel Vulnerability in Linux Package: NULL Pointer Dereference in vsnprintf()

linux Updated 02 Oct 2025

Summary

19/05/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-35878: In the Linux kernel, the following vulnerability has been resolved: of: module: prevent NULL pointer dereference in vsnprintf() In of_modalias(), we can get passed the str and len parameters which would cause a kernel oo... Affects linux versions < 6.8.9-1. Fixed in 6.8.9-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It is known for its stability, performance, and security features. However, like any software, it can be susceptible to vulnerabilities. This specific issue affects the Linux package versions in Debian 13 and 14, highlighting a flaw in the handling of parameters in the of_modalias() function, which can lead to system instability.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified that allows for a NULL pointer dereference in the vsnprintf() function. This occurs when the str and len parameters are incorrectly passed, leading to a kernel oops. The vulnerability arises from the failure to filter negative values of the len parameter, which can result in a buffer overflow since snprintf() expects a size_t parameter while the len is of type ssize_t. Discovered by the Linux Verification Center using the Svace static analysis tool, this flaw could lead to system crashes or unexpected behavior.

How To Fix

Minimum fixed version

6.8.9-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. It is advisable to apply the patch as soon as it becomes available to mitigate any potential risks.

Conclusion

The identified vulnerability in the Linux kernel poses a significant risk to system stability due to a NULL pointer dereference in the vsnprintf() function. It is crucial for users to update their Linux packages to the patched version 6.8.9-1 to mitigate this risk. Regular monitoring using tools like Vulert can help maintain awareness of vulnerabilities in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a NULL pointer dereference in the vsnprintf() function within the Linux kernel, which can lead to system crashes.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

If exploited, this vulnerability could lead to kernel oops, resulting in system instability and crashes.

Yes, the patched version of the Linux package is 6.8.9-1 for both Debian 13 and 14.

You can update your Linux package by running 'sudo apt-get update' followed by 'sudo apt-get install linux=6.8.9-1' in your terminal.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.8.9-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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