{
  "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-47258",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47258",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-05-21T14:19:52.082Z",
    "updatedAt": "2026-05-11T13:51:01.386Z",
    "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": "scsi: core: Fix error handling of scsi_host_alloc()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Fix error handling of scsi_host_alloc()\n\nAfter device is initialized via device_initialize(), or its name is set via\ndev_set_name(), the device has to be freed via put_device().  Otherwise\ndevice name will be leaked because it is allocated dynamically in\ndev_set_name().\n\nFix the leak by replacing kfree() with put_device(). Since\nscsi_host_dev_release() properly handles IDA and kthread removal, remove\nspecial-casing these from the error handling as well.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8958181c1663e24a13434448e7d6b96b5d04900a"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "db08ce595dd64ea9859f7d088b51cbfc8e685c66"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "79296e292d67fa7b5fb8d8c27343683e823872c8"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7a696ce1d5d16a33a6cd6400bbcc0339b2460e11"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "45d83db4728127944b237c0c8248987df9d478e7"
            },
            {
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "66a834d092930cf41d809c0e989b13cd6f9ca006"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.30",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.30"
            },
            {
              "version": "4.9.273",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.9.*"
            },
            {
              "version": "4.14.237",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.195",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.126",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.44",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.12.11",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}