CVE-2024-35956: Vulnerability in linux-libc-dev package - qgroup prealloc rsv leak in subvolume operations
Summary
CVE-2024-35956: In the Linux kernel, the following vulnerability has been resolved: btrfs: qgroup: fix qgroup prealloc rsv leak in subvolume operations Create subvolume, create snapshot and delete subvolume all use btrfs_subvolume_reser... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The linux-libc-dev package is a development package for the Linux kernel. It provides the necessary header files and libraries for compiling programs that interact with the kernel. This package is commonly used by developers to build and test kernel modules and other low-level software components. The vulnerability in this package affects the btrfs filesystem, specifically in the handling of qgroup prealloc reservation leaks during subvolume operations.
Vulnerability Detail
The vulnerability in the linux-libc-dev package allows for a qgroup prealloc reservation leak in subvolume operations. When creating a subvolume, creating a snapshot, or deleting a subvolume, the btrfs_subvolume_reserve_metadata() function is used to reserve metadata for the changes made to the parent subvolume's filesystem tree. However, the error paths of these operations do not handle the reservation correctly, leading to a potential leak of the reservation. This can result in a WARN message during unmount and may cause resource exhaustion in certain scenarios.
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 known workaround for this vulnerability. It is recommended to apply the official patch or update the linux-libc-dev package to the latest version as soon as possible.
Conclusion
The vulnerability in the linux-libc-dev package can lead to a qgroup prealloc reservation leak during subvolume operations. It is important to update the package to the latest version or apply the official patch to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for linux →
FAQ
The linux-libc-dev package is a development package for the Linux kernel, providing header files and libraries for compiling programs that interact with the kernel.
The vulnerability can lead to a qgroup prealloc reservation leak during subvolume operations, potentially causing resource exhaustion and triggering a WARN message during unmount.
To fix this vulnerability, update the linux-libc-dev package to version 6.1.90-1 or later. Restart affected services or reboot the system after the update.
There is no known workaround for this vulnerability. It is recommended to apply the official patch or update the linux-libc-dev package.
More information about this vulnerability can be found in the official CVE-2024-35956 advisory and the Debian Security Tracker.
Related vulnerabilities
Recent vulnerabilities recorded for linux.