{
  "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-48822",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2022-48822",
    "idYear": 2022,
    "status": "PUBLISHED",
    "publishedAt": "2024-07-16T11:44:08.638Z",
    "updatedAt": "2026-08-05T08:52:31.008Z",
    "importedAt": "2026-10-24T01:56:45.230Z",
    "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": "usb: f_fs: Fix use-after-free for epfile",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: f_fs: Fix use-after-free for epfile\n\nConsider a case where ffs_func_eps_disable is called from\nffs_func_disable as part of composition switch and at the\nsame time ffs_epfile_release get called from userspace.\nffs_epfile_release will free up the read buffer and call\nffs_data_closed which in turn destroys ffs->epfiles and\nmark it as NULL. While this was happening the driver has\nalready initialized the local epfile in ffs_func_eps_disable\nwhich is now freed and waiting to acquire the spinlock. Once\nspinlock is acquired the driver proceeds with the stale value\nof epfile and tries to free the already freed read buffer\ncausing use-after-free.\n\nFollowing is the illustration of the race:\n\n      CPU1                                  CPU2\n\n   ffs_func_eps_disable\n   epfiles (local copy)\n\t\t\t\t\tffs_epfile_release\n\t\t\t\t\tffs_data_closed\n\t\t\t\t\tif (last file closed)\n\t\t\t\t\tffs_data_reset\n\t\t\t\t\tffs_data_clear\n\t\t\t\t\tffs_epfiles_destroy\nspin_lock\ndereference epfiles\n\nFix this races by taking epfiles local copy & assigning it under\nspinlock and if epfiles(local) is null then update it in ffs->epfiles\nthen finally destroy it.\nExtending the scope further from the race, protecting the ep related\nstructures, and concurrent accesses.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "32048f4be071f9a6966744243f1786f45bb22dc2"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "cfe5f6fd335d882bcc829a1c8a7d462a455c626e"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c9fc422c9a43e3d58d246334a71f3390401781dc"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0042178a69eb77a979e36a50dcce9794a3140ef8"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "72a8aee863af099d4434314c4536d6c9a61dcf3c"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3e078b18753669615301d946297bafd69294ad2c"
            },
            {
              "version": "a9e6f83c2df199187a5248f824f31b6787ae23ae",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ebe2b1add1055b903e2acd86b290a85297edc0b3"
            },
            {
              "version": "5cd8f6788ff34999dbd4cbec81a6adfc215e1e60",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "4.8.10",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "4.9"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.9",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.9"
            },
            {
              "version": "4.14.267",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.230",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.180",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.101",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.24",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "5.16.10",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.16.*"
            },
            {
              "version": "5.17",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}