# CVE-2021-47328: scsi: iscsi: Fix conn use after free during resets

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.92% (percentile 59, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-21T14:35:40.479Z
- **Modified:** 2026-08-05T08:47:16.792Z

## Who should check

- Anyone running Linux \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< bf20d85a88384574fabb3d53ad62a8af57e7ab11; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< d04958a348e560938410e04a12fb99da9c7e6a00; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< 89812e7957ab0746eab66ed6fc49d52bb4dca250; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< f0a031f7c55ffd944fead1ddaf2aa94df9a158c1; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< fa9542b35ceb4202e8f8d65f440529a63524dca9; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< ec29d0ac29be366450a7faffbcf8cba3a6a3b506; 861a9633c22ee8b484e1b4054995f7e1b94a3834; 0adcec66bce9b7e84847da09ae3f8bc36e753312; 20b38ab5b687df3dbb873cfb0efa946a021f890a; 71b6a23ea944c6a30958bd15a69211e1fd521e1e; …
- Anyone running Linux 4.2

## Description

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

scsi: iscsi: Fix conn use after free during resets

If we haven't done a unbind target call we can race where
iscsi\_conn\_teardown wakes up the EH thread and then frees the conn while
those threads are still accessing the conn ehwait.

We can only do one TMF per session so this just moves the TMF fields from
the conn to the session. We can then rely on the
iscsi\_session\_teardown-\>iscsi\_remove\_session-\>\_\_iscsi\_unbind\_session call
to remove the target and it's devices, and know after that point there is
no device or scsi-ml callout trying to access the session.

## Affected and fixed versions

- Linux: \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< bf20d85a88384574fabb3d53ad62a8af57e7ab11; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< d04958a348e560938410e04a12fb99da9c7e6a00; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< 89812e7957ab0746eab66ed6fc49d52bb4dca250; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< f0a031f7c55ffd944fead1ddaf2aa94df9a158c1; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< fa9542b35ceb4202e8f8d65f440529a63524dca9; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< ec29d0ac29be366450a7faffbcf8cba3a6a3b506; 861a9633c22ee8b484e1b4054995f7e1b94a3834; 0adcec66bce9b7e84847da09ae3f8bc36e753312; 20b38ab5b687df3dbb873cfb0efa946a021f890a; 71b6a23ea944c6a30958bd15a69211e1fd521e1e; … (cvelist)
- Linux: 4.2 (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-47328. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47328.md
Affected: Linux >= 660d0831d1494a6837b2f810d08b5be092c1f31d, < bf20d85a88384574fabb3d53ad62a8af57e7ab11; >= 660d0831d1494a6837b2f810d08b5be092c1f31d, < d04958a348e560938410e04a12fb99da9c7e6a00; >= 660d0831d1494a6837b2f810d08b5be092c1f31d, < 89812e7957ab0746eab66ed6fc49d52bb4dca250; >= 660d0831d1494a6837b2f81…
Fixed in: Linux 89812e7957ab0746eab66ed6fc49d52bb4dca250

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< bf20d85a88384574fabb3d53ad62a8af57e7ab11; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< d04958a348e560938410e04a12fb99da9c7e6a00; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< 89812e7957ab0746eab66ed6fc49d52bb4dca250; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< f0a031f7c55ffd944fead1ddaf2aa94df9a158c1; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< fa9542b35ceb4202e8f8d65f440529a63524dca9; \>= 660d0831d1494a6837b2f810d08b5be092c1f31d, \< ec29d0ac29be366450a7faffbcf8cba3a6a3b506; 861a9633c22ee8b484e1b4054995f7e1b94a3834; 0adcec66bce9b7e84847da09ae3f8bc36e753312; 20b38ab5b687df3dbb873cfb0efa946a021f890a; 71b6a23ea944c6a30958bd15a69211e1fd521e1e; …; Linux 4.2.

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

Yes. Fixed in Linux 89812e7957ab0746eab66ed6fc49d52bb4dca250. No fix listed yet: follow the vendor advisory.

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

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/bf20d85a88384574fabb3d53ad62a8af57e7ab11>
- patch: <https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00>
- patch: <https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250>
- patch: <https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1>
- patch: <https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9>
- patch: <https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506>

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

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