CVE-2021-47328

scsi: iscsi: Fix conn use after free during resets

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.18.22v ≥ 3.2.72v ≥ 3.4.111v ≥ 4.1.7v < 4.19.1983.18.22 ≤ v < 3.193.2.72 ≤ v < 3.33.4.111 ≤ v < 3.54.1.7 ≤ v < 4.24.2 ≤ v < 4.19.1984.2 ≤ v < 5.10.524.2 ≤ v < 5.12.194.2 ≤ v < 5.13.44.2 ≤ v < 5.144.2 ≤ v < 5.4.1344.20 ≤ v < 5.4.1345.11 ≤ v < 5.12.195.13 ≤ v < 5.13.45.5 ≤ v < 5.10.520adcec66bce9b7e84847da09ae3f8bc36e75331220b38ab5b687df3dbb873cfb0efa946a021f890a3.18.223.2.723.4.1114.1.74.2660d0831d1494a6837b2f810d08b5be092c1f31d71b6a23ea944c6a30958bd15a69211e1fd521e1e861a9633c22ee8b484e1b4054995f7e1b94a3834
Vendor states this is fixed in 89812e7957ab0746eab66ed6fc49d52bb4dca250 (fixed)
Vendor states this is fixed in bf20d85a88384574fabb3d53ad62a8af57e7ab11 (fixed)
Vendor states this is fixed in d04958a348e560938410e04a12fb99da9c7e6a00 (fixed)
Vendor states this is fixed in ec29d0ac29be366450a7faffbcf8cba3a6a3b506 (fixed)
Vendor states this is fixed in f0a031f7c55ffd944fead1ddaf2aa94df9a158c1 (fixed)
Vendor states this is fixed in fa9542b35ceb4202e8f8d65f440529a63524dca9 (fixed)
Affected range stops below 3.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.19.198 (unaffected)
Vendor states this is fixed in 4.2 (unaffected)
Vendor states this is fixed in 5.10.52 (unaffected)
Vendor states this is fixed in 5.12.19 (unaffected)
Vendor states this is fixed in 5.13.4 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.134 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card