CVE-2024-35784: Vulnerability in linux-libc-dev - Kernel Btrfs Deadlock
Summary
CVE-2024-35784: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix deadlock with fiemap and extent locking While working on the patchset to remove extent locking I got a lockdep splat with fiemap and pagefaul... 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
linux-libc-dev is a package in the Linux kernel that provides the C library headers for kernel development. It is an essential component for building and compiling kernel modules. The package is widely used in Linux distributions and plays a crucial role in the functioning of the kernel. However, a vulnerability has been discovered in the Btrfs file system implementation within the linux-libc-dev package.
Vulnerability Detail
The vulnerability (CVE-2024-35784) in the linux-libc-dev package arises from a deadlock issue related to the fiemap and extent locking functionality. When copying the fiemap extent to user space, there is a chance of pagefaulting. If a range in the file that is mmap'ed is mkwrite, it can lead to a deadlock. This deadlock occurs due to a lockdep splat with fiemap and pagefaulting. The extent locking in the code does not have lockdep annotations, which is why this deadlock has gone unnoticed. The vulnerability has been fixed by modifying the extent lock behavior during the fiemap operation.
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 workaround has been provided for this vulnerability. It is essential to update the linux-libc-dev package to the latest version to ensure the fix is applied.
Conclusion
The vulnerability in the linux-libc-dev package has been addressed with the release of version 6.1.90-1. It is crucial to update the package to the latest version to ensure the fix is applied and to prevent potential deadlocks in the Btrfs file system implementation. For further support or assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for linux →
FAQ
linux-libc-dev is a package in the Linux kernel that provides the C library headers for kernel development. It is used for building and compiling kernel modules.
The vulnerability can lead to a deadlock in the Btrfs file system implementation, potentially causing system instability or unresponsiveness.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the playground will provide real-time alerts for open-source vulnerabilities.
Yes, a fix is available for this vulnerability. It is recommended to update the linux-libc-dev package to version 6.1.90-1 or later.
No, there are no known workarounds for this vulnerability. Updating the linux-libc-dev package is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for linux.