CVE-2024-35949: Vulnerability in linux-libc-dev package - Metadata Block Corruption

linux Updated 02 Oct 2025

Summary

20/05/2024
No i
Unrated
Not published

CVE-2024-35949: In the Linux kernel, the following vulnerability has been resolved: btrfs: make sure that WRITTEN is set on all metadata blocks We previously would call btrfs_check_leaf() if we had the check integrity code enabled, whic... 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The linux-libc-dev package is a component of the Linux kernel that provides the necessary C library headers for compiling programs. It is an essential package for developers and system administrators working on Linux-based systems. This package allows users to access various system calls and functions provided by the kernel. Unfortunately, a vulnerability has been discovered in the package that can lead to metadata block corruption.

Vulnerability Detail

The vulnerability (CVE-2024-35949) in the linux-libc-dev package arises from a flaw in the btrfs filesystem implementation. Previously, the btrfs_check_leaf() function was only called when the check integrity code was enabled and the WRITTEN flag was set on the header flags. This resulted in a gap in the checking process, allowing corruption on disk where the WRITTEN flag was not set on the leaf. As a consequence, the extended leaf checks, which are crucial for validating item pointers and preventing memory access outside the extent buffer, were not performed. An attacker could exploit this vulnerability by manipulating the WRITTEN bit, leading to out-of-bound access and potential memory corruption. This vulnerability has a CVSS score of 5.5, indicating a medium severity level.

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

No specific workaround has been provided for this vulnerability. It is essential to apply the recommended fix by updating the linux-libc-dev package to the latest version.

Conclusion

The linux-libc-dev package is vulnerable to a flaw in the btrfs filesystem implementation, which can result in metadata block corruption. To mitigate this vulnerability, it is crucial to update the package to version 6.1.90-1 or later. Users should follow the provided steps to apply the fix and ensure the WRITTEN flag is appropriately set on metadata blocks. For further support or assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The linux-libc-dev package provides C library headers for compiling programs and accessing system calls and functions provided by the Linux kernel.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will analyze and alert you in real-time if any open-source vulnerabilities, including this one, are detected.

Exploiting this vulnerability could lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition on the affected system.

No known exploits for this vulnerability have been reported at the time of this advisory. However, it is crucial to apply the recommended fix to mitigate any potential risks.

You can find more information about this vulnerability in the official CVE entry (CVE-2024-35949) and the Debian Security Tracker (https://salsa.debian.org/security-tracker-team/security-tracker).

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