Vulnerability in btrfs Package: search_csum_tree Return Value
Summary
GSD-2022-1001147: btrfs: make search_csum_tree return 0 if we get -EFBIG. Affects Kernel versions < 93db0c727d2401da13101a075d09bbb75488af09. 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 btrfs package is a part of the Linux Kernel ecosystem and is responsible for providing support for the B-tree file system. Btrfs is designed to offer advanced features such as snapshots, pooling, and checksumming for data integrity. It is widely used in Linux distributions and provides efficient storage management capabilities.
Vulnerability Detail
The vulnerability in the btrfs package lies in the search_csum_tree function. Prior to the fix, if the function encountered an error code -EFBIG, it would return the error code instead of the expected value of 0. This behavior could lead to potential issues in error handling and result in incorrect data processing. Attackers could potentially exploit this vulnerability to manipulate the control flow and cause denial of service or other security breaches.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.17.2 or later. The fix for this issue was implemented in commit 93db0c727d2401da13101a075d09bbb75488af09. Updating to the latest version of the Linux Kernel will ensure that the search_csum_tree function returns the correct value of 0 when encountering -EFBIG errors.
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.
Conclusion
The vulnerability in the btrfs package's search_csum_tree function can be mitigated by updating the Linux Kernel to version v5.17.2 or later. This fix ensures that the function returns the correct value of 0 when encountering -EFBIG errors. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability could potentially be exploited by attackers to manipulate the control flow and cause denial of service or other security breaches.
At the time of this report, there is no known exploit for this vulnerability.
The vulnerability exists in versions of the Linux Kernel prior to v5.17.2.
Updating the Linux Kernel to version v5.17.2 or later is the recommended mitigation for this vulnerability.
Yes, this vulnerability is specific to the btrfs package within the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.