{
  "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-47192",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47192",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-04-10T18:56:30.097Z",
    "updatedAt": "2026-05-23T15:19:29.974Z",
    "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: sysfs: Fix hang when device state is set via sysfs",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: sysfs: Fix hang when device state is set via sysfs\n\nThis fixes a regression added with:\n\ncommit f0f82e2476f6 (\"scsi: core: Fix capacity set to zero after\nofflinining device\")\n\nThe problem is that after iSCSI recovery, iscsid will call into the kernel\nto set the dev's state to running, and with that patch we now call\nscsi_rescan_device() with the state_mutex held. If the SCSI error handler\nthread is just starting to test the device in scsi_send_eh_cmnd() then it's\ngoing to try to grab the state_mutex.\n\nWe are then stuck, because when scsi_rescan_device() tries to send its I/O\nscsi_queue_rq() calls -> scsi_host_queue_ready() -> scsi_host_in_recovery()\nwhich will return true (the host state is still in recovery) and I/O will\njust be requeued. scsi_send_eh_cmnd() will then never be able to grab the\nstate_mutex to finish error handling.\n\nTo prevent the deadlock move the rescan-related code to after we drop the\nstate_mutex.\n\nThis also adds a check for if we are already in the running state. This\nprevents extra scans and helps the iscsid case where if the transport class\nhas already onlined the device during its recovery process then we don't\nneed userspace to do it again plus possibly block that daemon.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "69aa1a1a569f5c6d554b59352130ef363342ed4c",
              "status": "affected",
              "versionType": "git",
              "lessThan": "edd783162bf2385b43de6764f2d4c6e9f4f6be27"
            },
            {
              "version": "711459514e297d748f15ba1f5292a3276c3d1dd0",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a792e0128d232251edb5fdf42fb0f9fbb0b44a73"
            },
            {
              "version": "f0f82e2476f6adb9c7a0135cfab8091456990c99",
              "status": "affected",
              "versionType": "git",
              "lessThan": "bcc0e3175a976b7fa9a353960808adb0bb49ead8"
            },
            {
              "version": "f0f82e2476f6adb9c7a0135cfab8091456990c99",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4edd8cd4e86dd3047e5294bbefcc0a08f66a430f"
            },
            {
              "version": "c6751ce1a2a415a78e4f5b621628da03196b804c",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "5.4.143",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.4.162"
            },
            {
              "version": "5.10.61",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.10.82"
            },
            {
              "version": "5.13.13",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.14"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.14",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.14"
            },
            {
              "version": "5.4.162",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.82",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "5.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}