{
  "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-2021-47195",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47195",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-04-10T18:56:31.999Z",
    "updatedAt": "2026-05-23T15:19:30.977Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "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": "spi: fix use-after-free of the add_lock mutex",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: fix use-after-free of the add_lock mutex\n\nCommit 6098475d4cb4 (\"spi: Fix deadlock when adding SPI controllers on\nSPI buses\") introduced a per-controller mutex. But mutex_unlock() of\nsaid lock is called after the controller is already freed:\n\n  spi_unregister_controller(ctlr)\n  -> put_device(&ctlr->dev)\n    -> spi_controller_release(dev)\n  -> mutex_unlock(&ctrl->add_lock)\n\nMove the put_device() after the mutex_unlock().",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "aa3f3d7bef59583f2d3234173105a27ff61ef8fe",
              "status": "affected",
              "versionType": "git",
              "lessThan": "54c2c96eafcfd242e52e932ab54ace4784efe1dd"
            },
            {
              "version": "c8dce228db6f81dbc897a018dfc5c418e917cf64",
              "status": "affected",
              "versionType": "git",
              "lessThan": "11eab327a2a8bd36c38afbff920ae1bd45588dd4"
            },
            {
              "version": "6098475d4cb48d821bdf453c61118c56e26294f0",
              "status": "affected",
              "versionType": "git",
              "lessThan": "37330f37f6666c7739a44b2b6b95b047ccdbed2d"
            },
            {
              "version": "6098475d4cb48d821bdf453c61118c56e26294f0",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6c53b45c71b4920b5e62f0ea8079a1da382b9434"
            },
            {
              "version": "722ef19a161ce3fffb3d1b01ce2301c306639bdd",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "5.14.15",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.15"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.15",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.15"
            },
            {
              "version": "5.15.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "5.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}