{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2022-50379",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2022-50379",
    "idYear": 2022,
    "status": "PUBLISHED",
    "publishedAt": "2025-09-18T13:33:01.502Z",
    "updatedAt": "2026-05-11T19:18:23.937Z",
    "importedAt": "2026-10-24T01:56:49.724Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "btrfs: fix race between quota enable and quota rescan ioctl",
      "summary": "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": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c97f6d528c3f1c83a6b792a8a7928c236c80b8fe"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "26b7c0ac49a3eea15559c9d84863736a6d1164b4"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "47b5ffe86332af95f0f52be0a63d4da7c2b37b55"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4b996a3014ef014af8f97b60c35f5289210a4720"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0efd9dfc00d677a1d0929319a6103cb2dfc41c22"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6c22f86dd221eba0c7af645b1af73dcbc04ee27b"
            },
            {
              "version": "5d23515be66904fa3b1b5d6bd72d2199cd2447ab",
              "status": "affected",
              "versionType": "git",
              "lessThan": "331cd9461412e103d07595a10289de90004ac890"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.17",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.17"
            },
            {
              "version": "4.19.262",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.220",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.150",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.75",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "5.19.17",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.19.*"
            },
            {
              "version": "6.0.3",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.0.*"
            },
            {
              "version": "6.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}