Vulnerability in btrfs: fix anon_dev leak in create_subvol()

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003066: btrfs: fix anon_dev leak in create_subvol(). Affects Kernel versions < d887b3de318834f9aa637ecf79c6bc66cba7c69a. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The btrfs package is a part of the Linux Kernel ecosystem and is responsible for providing support for the B-tree file system. It is widely used in Linux distributions and offers advanced features such as snapshots, subvolumes, and data deduplication. The create_subvol() function within the btrfs package is used to create subvolumes. However, a vulnerability has been discovered in this function that leads to an anonymous device (anon_dev) leak. This vulnerability could potentially be exploited by an attacker to cause resource exhaustion and impact system stability.

Vulnerability Detail

The vulnerability in the create_subvol() function of the btrfs package allows an anonymous device (anon_dev) leak. When creating subvolumes, the function fails to properly release the allocated anon_dev, leading to a resource leak. This can be exploited by an attacker to exhaust system resources, potentially causing a denial-of-service condition. The impact of this vulnerability may vary depending on the system's configuration and the attacker's ability to trigger the vulnerable code path.

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 fix by updating the Linux Kernel to the patched 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 exploited to exhaust system resources and potentially cause a denial-of-service condition. Users are advised to update their systems to the latest available kernel version to ensure the vulnerability is patched. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

btrfs is a file system implemented in the Linux Kernel that provides advanced features such as snapshots, subvolumes, and data deduplication.

The create_subvol() function is a part of the btrfs package and is used to create subvolumes within the file system.

An anonymous device (anon_dev) leak refers to a situation where system resources allocated for anonymous devices are not properly released, leading to resource exhaustion and potential system instability.

The impact of this vulnerability may vary depending on the system's configuration and the attacker's ability to trigger the vulnerable code path. It could potentially lead to resource exhaustion and a denial-of-service condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.17.14 or later, which includes the necessary patch to address the issue.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback