CVE-2022-50379 Details
Description
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.
A race condition vulnerability has been identified in the Btrfs file system component of the Linux kernel, specifically in the quota management feature. This vulnerability arises when enabling quotas, as the process can lead to a use-after-free error. After a transaction is committed to enable quotas, the quota root is updated and a flag is set to indicate that quotas are enabled. The system then attempts to start a background task to rescan quota groups. However, if this initialization fails, the quota root is freed, but a pointer in the file system information still references it. This discrepancy can cause a use-after-free vulnerability elsewhere in the code. The issue is exacerbated by the fact that the system can only fail under certain conditions, allowing the vulnerability to persist.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0efd9dfc00d677a1d0929319a6103cb2dfc41c22 | kernel.org | Patch |
| https://git.kernel.org/stable/c/26b7c0ac49a3eea15559c9d84863736a6d1164b4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/331cd9461412e103d07595a10289de90004ac890 | kernel.org | Patch |
| https://git.kernel.org/stable/c/47b5ffe86332af95f0f52be0a63d4da7c2b37b55 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4b996a3014ef014af8f97b60c35f5289210a4720 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6c22f86dd221eba0c7af645b1af73dcbc04ee27b | kernel.org | Patch |
| https://git.kernel.org/stable/c/c97f6d528c3f1c83a6b792a8a7928c236c80b8fe | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 4.19.262 >= 4.20, < 5.4.220 >= 5.5, < 5.10.150 >= 5.11, < 5.15.75 >= 5.16, < 5.19.17 >= 6.0, < 6.0.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 11, 2025 | Initial Analysis | [email protected] |
| Sep 18, 2025 | New CVE Received | kernel.org |