CVE-2024-35904: linux-libc-dev - Kernel SELinux Dereference of Garbage After Mount Failure

linux Updated 02 Oct 2025

Summary

19/05/2024
No i
Medium
5.5

CVE-2024-35904: In the Linux kernel, the following vulnerability has been resolved: selinux: avoid dereference of garbage after mount failure In case kern_mount() fails and returns an error pointer return in the error branch instead of... 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 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

linux-libc-dev is a package that provides the C library for use with the Linux kernel. It contains the necessary header files and libraries for compiling and linking programs that use the standard C library. The package is an essential component for building and running applications on Linux systems. However, a vulnerability has been discovered in the package related to SELinux, which is a security module for the Linux kernel. This vulnerability can lead to the dereference of garbage data after a mount failure, potentially resulting in security issues and system instability.

Vulnerability Detail

The vulnerability in linux-libc-dev arises from a flaw in the SELinux implementation. When the kern_mount() function fails and returns an error pointer, the code continues execution and dereferences the error pointer, leading to potential issues. This vulnerability can be exploited by an attacker to gain unauthorized access, escalate privileges, or cause denial of service. The static variable selinuxfs_mount, which was never read, has also been removed as part of the fix for this vulnerability.

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

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring they have updated to the latest version of the linux-libc-dev package.

Conclusion

The linux-libc-dev package is vulnerable to a flaw in the SELinux implementation, which can result in the dereference of garbage data after a mount failure. To mitigate the risk, it is crucial to update the package to version 6.1.90-1 or later. Restarting the affected system after the update is recommended. For further assistance or information on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

linux-libc-dev is a package that provides the C library for use with the Linux kernel. It contains the necessary header files and libraries for compiling and linking programs that use the standard C library.

SELinux is a security module for the Linux kernel that provides mandatory access control (MAC) mechanisms. It enhances the security of Linux systems by enforcing fine-grained access policies and preventing unauthorized actions.

This vulnerability can be exploited by an attacker to gain unauthorized access, escalate privileges, or cause denial of service. It may lead to security breaches, data loss, or system instability.

You can update the linux-libc-dev package by using the package manager of your Linux distribution or by manually downloading and installing the updated package from a trusted source.

Yes, the CVSS score for 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