# CVE-2021-47480: scsi: core: Put LLD module refcnt after SCSI device is released

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.31% (percentile 16, 2026-11-26)
- **Published:** 2024-05-22T08:19:32.839Z
- **Modified:** 2026-06-17T04:17:34.370Z

## Who should check

- Anyone running Linux \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1105573d964f7b78734348466b01f5f6ba8a1813; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 8e4814a461787e15a31d322d9efbe0d4f6822428; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 61a0faa89f21861d1f8d059123b5c285a5d9ffee; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< c2df161f69fb1c67f63adbd193368b47f511edc0; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1ce287eff9f23181d5644db787f472463a61f68b; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 7b57c38d12aed1b5d92f74748bed25e0d041729f; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f30822c0b4c35ec86187ab055263943dc71a6836; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f2b85040acec9a928b4eb1b57a989324e8e38d3f
- Anyone running Linux 2.6.16

## Description

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

scsi: core: Put LLD module refcnt after SCSI device is released

SCSI host release is triggered when SCSI device is freed. We have to make
sure that the low-level device driver module won't be unloaded before SCSI
host instance is released because shost-\>hostt is required in the release
handler.

Make sure to put LLD module refcnt after SCSI device is released.

Fixes a kernel panic of 'BUG: unable to handle page fault for address'
reported by Changhui and Yi.

## Affected and fixed versions

- Linux: \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1105573d964f7b78734348466b01f5f6ba8a1813; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 8e4814a461787e15a31d322d9efbe0d4f6822428; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 61a0faa89f21861d1f8d059123b5c285a5d9ffee; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< c2df161f69fb1c67f63adbd193368b47f511edc0; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1ce287eff9f23181d5644db787f472463a61f68b; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 7b57c38d12aed1b5d92f74748bed25e0d041729f; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f30822c0b4c35ec86187ab055263943dc71a6836; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f2b85040acec9a928b4eb1b57a989324e8e38d3f (cvelist)
- Linux: 2.6.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47480.md
Affected: Linux >= 65110b2168950a19cc78b5027ed18cb811fbdae8, < 1105573d964f7b78734348466b01f5f6ba8a1813; >= 65110b2168950a19cc78b5027ed18cb811fbdae8, < 8e4814a461787e15a31d322d9efbe0d4f6822428; >= 65110b2168950a19cc78b5027ed18cb811fbdae8, < 61a0faa89f21861d1f8d059123b5c285a5d9ffee; >= 65110b2168950a19cc78b50…
Fixed in: Linux 1105573d964f7b78734348466b01f5f6ba8a1813, Linux 8e4814a461787e15a31d322d9efbe0d4f6822428, Linux 61a0faa89f21861d1f8d059123b5c285a5d9ffee, Linux 1ce287eff9f23181d5644db787f472463a61f68b, Linux 7b57c38d12aed1b5d92f74748bed25e0d041729f

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-47480 being exploited?

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

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

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

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

Linux \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1105573d964f7b78734348466b01f5f6ba8a1813; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 8e4814a461787e15a31d322d9efbe0d4f6822428; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 61a0faa89f21861d1f8d059123b5c285a5d9ffee; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< c2df161f69fb1c67f63adbd193368b47f511edc0; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 1ce287eff9f23181d5644db787f472463a61f68b; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< 7b57c38d12aed1b5d92f74748bed25e0d041729f; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f30822c0b4c35ec86187ab055263943dc71a6836; \>= 65110b2168950a19cc78b5027ed18cb811fbdae8, \< f2b85040acec9a928b4eb1b57a989324e8e38d3f; Linux 2.6.16.

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

Yes. Fixed in Linux 1105573d964f7b78734348466b01f5f6ba8a1813, Linux 8e4814a461787e15a31d322d9efbe0d4f6822428, Linux 61a0faa89f21861d1f8d059123b5c285a5d9ffee, Linux 1ce287eff9f23181d5644db787f472463a61f68b, Linux 7b57c38d12aed1b5d92f74748bed25e0d041729f. No fix listed yet: follow the vendor advisory.

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

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/1105573d964f7b78734348466b01f5f6ba8a1813>
- patch: <https://git.kernel.org/stable/c/8e4814a461787e15a31d322d9efbe0d4f6822428>
- patch: <https://git.kernel.org/stable/c/61a0faa89f21861d1f8d059123b5c285a5d9ffee>
- patch: <https://git.kernel.org/stable/c/c2df161f69fb1c67f63adbd193368b47f511edc0>
- patch: <https://git.kernel.org/stable/c/1ce287eff9f23181d5644db787f472463a61f68b>
- patch: <https://git.kernel.org/stable/c/7b57c38d12aed1b5d92f74748bed25e0d041729f>
- patch: <https://git.kernel.org/stable/c/f30822c0b4c35ec86187ab055263943dc71a6836>
- patch: <https://git.kernel.org/stable/c/f2b85040acec9a928b4eb1b57a989324e8e38d3f>

## 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-47480>

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