Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47565
HistoryMay 24, 2024 - 3:12 p.m.

CVE-2021-47565 scsi: mpt3sas: Fix kernel panic during drive powercycle test

2024-05-2415:12:52
Linux
www.cve.org
linux kernel
vulnerability
scsi driver
mpt3sas
kernel panic
powercycle test
drive
sas_target object

6.3 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.0%

In the Linux kernel, the following vulnerability has been resolved:

scsi: mpt3sas: Fix kernel panic during drive powercycle test

While looping over shost’s sdev list it is possible that one
of the drives is getting removed and its sas_target object is
freed but its sdev object remains intact.

Consequently, a kernel panic can occur while the driver is trying to access
the sas_address field of sas_target object without also checking the
sas_target object for NULL.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/scsi/mpt3sas/mpt3sas_scsih.c"
    ],
    "versions": [
      {
        "version": "f92363d12359",
        "lessThan": "5d4d50b1f159",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "58ef2c7a6de1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "dd035ca0e7a1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "0d4b29eaadc1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "7e324f734a91",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "2bf9c5a5039c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "8485649a7655",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f92363d12359",
        "lessThan": "0ee4ba13e09c",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/scsi/mpt3sas/mpt3sas_scsih.c"
    ],
    "versions": [
      {
        "version": "3.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "3.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.4.294",
        "lessThanOrEqual": "4.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.292",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.257",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.219",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.163",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.83",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.6",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.3 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.0%