Linux Kernel up to 6.0.2 btrfs_quota_enable use after free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.2$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, was found in Linux Kernel up to 6.0.2. This affects the function btrfs_quota_enable. The manipulation results in use after free. This vulnerability is identified as CVE-2022-50379. There is not any exploit available. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in Linux Kernel up to 6.0.2. It has been classified as critical. Affected is the function btrfs_quota_enable. The manipulation with an unknown input leads to a use after free vulnerability. CWE is classifying the issue as CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix race between quota enable and quota rescan ioctl When enabling quotas, at btrfs_quota_enable(), after committing the transaction, we change fs_info->quota_root to point to the quota root we created and set BTRFS_FS_QUOTA_ENABLED at fs_info->flags. Then we try to start the qgroup rescan worker, first by initializing it with a call to qgroup_rescan_init() - however if that fails we end up freeing the quota root but we leave fs_info->quota_root still pointing to it, this can later result in a use-after-free somewhere else. We have previously set the flags BTRFS_FS_QUOTA_ENABLED and BTRFS_QGROUP_STATUS_FLAG_ON, so we can only fail with -EINPROGRESS at btrfs_quota_enable(), which is possible if someone already called the quota rescan ioctl, and therefore started the rescan worker. So fix this by ignoring an -EINPROGRESS and asserting we can't get any other error.

The advisory is shared for download at git.kernel.org. This vulnerability is traded as CVE-2022-50379 since 09/17/2025. The exploitability is told to be easy. There are known technical details, but no exploit is available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 12/11/2025).

The vulnerability scanner Nessus provides a plugin with the ID 265600 (Linux Distros Unpatched Vulnerability : CVE-2022-50379), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17 or 6.0.3 eliminates this vulnerability. Applying the patch c97f6d528c3f1c83a6b792a8a7928c236c80b8fe/26b7c0ac49a3eea15559c9d84863736a6d1164b4/47b5ffe86332af95f0f52be0a63d4da7c2b37b55/4b996a3014ef014af8f97b60c35f5289210a4720/0efd9dfc00d677a1d0929319a6103cb2dfc41c22/6c22f86dd221eba0c7af645b1af73dcbc04ee27b/331cd9461412e103d07595a10289de90004ac890 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (265600) and CERT Bund (WID-SEC-2025-2092). VulDB is the best source for vulnerability data and more expert information about this specific topic.

Affected

  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • SUSE Linux
  • Oracle Linux
  • SUSE openSUSE
  • RESF Rocky Linux
  • Open Source Linux Kernel
  • Dell Secure Connect Gateway
  • IBM QRadar SIEM

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.4
VulDB Meta Temp Score: 6.2

VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 4.7
NVD Vector: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Use after free
CWE: CWE-416 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 265600
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2022-50379

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 4.19.262/5.4.220/5.10.150/5.15.75/5.19.17/6.0.3
Patch: c97f6d528c3f1c83a6b792a8a7928c236c80b8fe/26b7c0ac49a3eea15559c9d84863736a6d1164b4/47b5ffe86332af95f0f52be0a63d4da7c2b37b55/4b996a3014ef014af8f97b60c35f5289210a4720/0efd9dfc00d677a1d0929319a6103cb2dfc41c22/6c22f86dd221eba0c7af645b1af73dcbc04ee27b/331cd9461412e103d07595a10289de90004ac890

Timelineinfo

09/17/2025 CVE reserved
09/18/2025 +1 days Advisory disclosed
09/18/2025 +0 days VulDB entry created
12/11/2025 +84 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-50379 (🔒)
GCVE (CVE): GCVE-0-2022-50379
GCVE (VulDB): GCVE-100-324816
CERT Bund: WID-SEC-2025-2092 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service

Entryinfo

Created: 09/18/2025 16:15
Updated: 12/11/2025 19:39
Changes: 09/18/2025 16:15 (58), 09/19/2025 12:39 (7), 09/21/2025 21:58 (2), 11/29/2025 11:28 (1), 12/11/2025 19:39 (11)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!