{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-50379","published":"2025-09-18T14:15:36.630000Z","last_modified":"2026-06-17T05:23:22.983000Z","status":"Modified","cvss":{"version":"3.1","score":4.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-362"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_end_excluding":"4.19.262"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.20","version_end_excluding":"5.4.220"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.150"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.75"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"5.19.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.0","version_end_excluding":"6.0.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.0015,"percentile":0.02137,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":28,"links":{"html_es":"/es/cve/CVE-2022-50379/","html_en":"/en/cve/CVE-2022-50379/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50379","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50379"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix race between quota enable and quota rescan ioctl\n\nWhen enabling quotas, at btrfs_quota_enable(), after committing the\ntransaction, we change fs_info->quota_root to point to the quota root we\ncreated and set BTRFS_FS_QUOTA_ENABLED at fs_info->flags. Then we try\nto start the qgroup rescan worker, first by initializing it with a call\nto qgroup_rescan_init() - however if that fails we end up freeing the\nquota root but we leave fs_info->quota_root still pointing to it, this\ncan later result in a use-after-free somewhere else.\n\nWe have previously set the flags BTRFS_FS_QUOTA_ENABLED and\nBTRFS_QGROUP_STATUS_FLAG_ON, so we can only fail with -EINPROGRESS at\nbtrfs_quota_enable(), which is possible if someone already called the\nquota rescan ioctl, and therefore started the rescan worker.\n\nSo fix this by ignoring an -EINPROGRESS and asserting we can't get any\nother error.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/0efd9dfc00d677a1d0929319a6103cb2dfc41c22","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/26b7c0ac49a3eea15559c9d84863736a6d1164b4","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/331cd9461412e103d07595a10289de90004ac890","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/47b5ffe86332af95f0f52be0a63d4da7c2b37b55","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/4b996a3014ef014af8f97b60c35f5289210a4720","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/6c22f86dd221eba0c7af645b1af73dcbc04ee27b","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/c97f6d528c3f1c83a6b792a8a7928c236c80b8fe","tags":["Patch"]}]}}