Vulnerability in btrfs: zoned: fix a leaked bioc in read_zone_info
Summary
GSD-2022-1004194: btrfs: zoned: fix a leaked bioc in read_zone_info. Affects Kernel versions >= 7db1c5d14dcd521bef1780b79dcc68b3968447a9, < 02fc3a6ed7873e85c037ea9b67614780713966d7. 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 file system for the Linux kernel that provides advanced features such as snapshots, pooling, and integrated device management. It is widely used in various Linux distributions. The specific vulnerability in question affects the zoned functionality of btrfs, which is responsible for managing storage zones. This vulnerability can lead to a leaked bioc (bio container) in the read_zone_info function, potentially causing memory leaks and other issues.
Vulnerability Detail
The vulnerability arises from a leaked bioc in the read_zone_info function of the btrfs zoned implementation. When reading zone information, if an error occurs during the allocation of a bio container, the function fails to properly release the allocated resources, leading to memory leaks. This can be exploited by an attacker to exhaust system memory and potentially cause a denial-of-service condition. The vulnerability was introduced in version v5.12 of the Linux Kernel and has been fixed in version v5.18.13.
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 necessary to apply the fix by updating the Linux Kernel.
Conclusion
The btrfs: zoned: fix a leaked bioc in read_zone_info vulnerability in the Linux Kernel's btrfs package can result in memory leaks and potential denial-of-service conditions. It is crucial to update the Linux Kernel to version v5.18.13 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
btrfs is a file system for the Linux kernel that offers advanced features such as snapshots, pooling, and integrated device management.
The zoned functionality in btrfs is responsible for managing storage zones, which are used in certain types of storage devices.
A bioc (bio container) is a data structure used in the Linux Kernel's block I/O subsystem to represent a collection of I/O operations.
This vulnerability can lead to memory leaks and potentially cause a denial-of-service condition by exhausting system memory.
To fix this vulnerability, update the Linux Kernel to version v5.18.13 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.