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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-416, CWE-476
- **Published:** 2024-05-24T15:12:52.786Z
- **Modified:** 2026-06-17T04:17:46.833Z

## Who should check

- Anyone running Linux \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 5d4d50b1f159a5ebab7617f47121b4370aa58afe; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 58ef2c7a6de13721865d84b80eecf56d6cba0937; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< dd035ca0e7a142870a970d46b1d19276cfe2bc8c; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0d4b29eaadc1f59cec0c7e85eae77d08fcca9824; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 7e324f734a914957b8cc3ff4b4c9f0409558adb5; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 8485649a7655e791a6e4e9f15b4d30fdae937184; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b
- Anyone running Linux 3.8

## Description

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.

## Affected and fixed versions

- Linux: \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 5d4d50b1f159a5ebab7617f47121b4370aa58afe; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 58ef2c7a6de13721865d84b80eecf56d6cba0937; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< dd035ca0e7a142870a970d46b1d19276cfe2bc8c; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0d4b29eaadc1f59cec0c7e85eae77d08fcca9824; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 7e324f734a914957b8cc3ff4b4c9f0409558adb5; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 8485649a7655e791a6e4e9f15b4d30fdae937184; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47565. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47565.md
Affected: Linux >= f92363d12359498f9a9960511de1a550f0ec41c2, < 5d4d50b1f159a5ebab7617f47121b4370aa58afe; >= f92363d12359498f9a9960511de1a550f0ec41c2, < 58ef2c7a6de13721865d84b80eecf56d6cba0937; >= f92363d12359498f9a9960511de1a550f0ec41c2, < dd035ca0e7a142870a970d46b1d19276cfe2bc8c; >= f92363d12359498f9a99605…
Fixed in: Linux 5d4d50b1f159a5ebab7617f47121b4370aa58afe, Linux 58ef2c7a6de13721865d84b80eecf56d6cba0937, Linux 0d4b29eaadc1f59cec0c7e85eae77d08fcca9824, Linux 7e324f734a914957b8cc3ff4b4c9f0409558adb5, Linux 2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b, Linux 8485649a7655e791a6e4e9f15b4d30fdae937184, Linux 0ee4b…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47565 being exploited?

There is no confirmed exploitation: CVE-2021-47565 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47565?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47565?

Linux \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 5d4d50b1f159a5ebab7617f47121b4370aa58afe; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 58ef2c7a6de13721865d84b80eecf56d6cba0937; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< dd035ca0e7a142870a970d46b1d19276cfe2bc8c; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0d4b29eaadc1f59cec0c7e85eae77d08fcca9824; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 7e324f734a914957b8cc3ff4b4c9f0409558adb5; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 8485649a7655e791a6e4e9f15b4d30fdae937184; \>= f92363d12359498f9a9960511de1a550f0ec41c2, \< 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b; Linux 3.8.

### Is there a fix for CVE-2021-47565?

Yes. Fixed in Linux 5d4d50b1f159a5ebab7617f47121b4370aa58afe, Linux 58ef2c7a6de13721865d84b80eecf56d6cba0937, Linux 0d4b29eaadc1f59cec0c7e85eae77d08fcca9824, Linux 7e324f734a914957b8cc3ff4b4c9f0409558adb5, Linux 2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b, Linux 8485649a7655e791a6e4e9f15b4d30fdae937184, Linux 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b. Upgrade Linux to 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b or later.

### How do I check if I'm affected by CVE-2021-47565?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5d4d50b1f159a5ebab7617f47121b4370aa58afe>
- patch: <https://git.kernel.org/stable/c/58ef2c7a6de13721865d84b80eecf56d6cba0937>
- patch: <https://git.kernel.org/stable/c/dd035ca0e7a142870a970d46b1d19276cfe2bc8c>
- patch: <https://git.kernel.org/stable/c/0d4b29eaadc1f59cec0c7e85eae77d08fcca9824>
- patch: <https://git.kernel.org/stable/c/7e324f734a914957b8cc3ff4b4c9f0409558adb5>
- patch: <https://git.kernel.org/stable/c/2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b>
- patch: <https://git.kernel.org/stable/c/8485649a7655e791a6e4e9f15b4d30fdae937184>
- patch: <https://git.kernel.org/stable/c/0ee4ba13e09c9d9c1cb6abb59da8295d9952328b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47565>

HTML: <https://flawdb.com/CVE-2021-47565> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47565>
