Vulnerability in btrfs: fix anon_dev leak in create_subvol()
Summary
GSD-2022-1002750: btrfs: fix anon_dev leak in create_subvol(). Affects Kernel versions < 7a875ad8706f0903a0e812e0dd701956ee9826ff. 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 create_subvol() function in btrfs is responsible for creating subvolumes, which are logical partitions within the file system. However, a vulnerability has been discovered in this function that can lead to an anon_dev leak.
Vulnerability Detail
The vulnerability in create_subvol() allows an attacker to cause an anon_dev leak. An anon_dev is an anonymous device that represents a file or directory within the file system. By exploiting this vulnerability, an attacker can create a large number of subvolumes, causing the system to run out of anon_dev resources. This can result in resource exhaustion, leading to a denial-of-service condition. The vulnerability has been fixed in Linux Kernel version v5.18.3 by commit 7a875ad8706f0903a0e812e0dd701956ee9826ff.
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.18.3 or later. This can be done by downloading the latest kernel source code from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it according to the provided instructions. Once the updated kernel is installed, the vulnerability will be mitigated.
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 update the Linux Kernel to the fixed version.
Conclusion
In conclusion, the btrfs package in the Linux Kernel is vulnerable to an anon_dev leak in the create_subvol() function. This vulnerability can be mitigated by updating the Linux Kernel to version v5.18.3 or later. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
btrfs is a file system for the Linux kernel that provides advanced features such as snapshots, pooling, and integrated device management.
create_subvol() is a function in btrfs responsible for creating subvolumes, which are logical partitions within the file system.
An anon_dev is an anonymous device that represents a file or directory within the file system.
This vulnerability can lead to resource exhaustion and a denial-of-service condition.
To fix this vulnerability, update the Linux Kernel to version v5.18.3 or later.
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.