CVE-2021-47328

scsi: iscsi: Fix conn use after free during resets

9.8 critical EPSS 0.77%

Published 21 May 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47328

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47328 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.77%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 23 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before bf20d85a88384574fabb3d53ad62a8af57e7ab11
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before d04958a348e560938410e04a12fb99da9c7e6a00
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before 89812e7957ab0746eab66ed6fc49d52bb4dca250
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before f0a031f7c55ffd944fead1ddaf2aa94df9a158c1
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before fa9542b35ceb4202e8f8d65f440529a63524dca9
affected from 660d0831d1494a6837b2f810d08b5be092c1f31d, before ec29d0ac29be366450a7faffbcf8cba3a6a3b506
affected 861a9633c22ee8b484e1b4054995f7e1b94a3834
affected 0adcec66bce9b7e84847da09ae3f8bc36e753312
affected 20b38ab5b687df3dbb873cfb0efa946a021f890a
affected 71b6a23ea944c6a30958bd15a69211e1fd521e1e
affected from 3.2.72, before 3.3
affected from 3.4.111, before 3.5
affected from 3.18.22, before 3.19
affected from 4.1.7, before 4.2
Other versions: unaffected
Linux
affected 4.2
unaffected before 4.2
unaffected from 4.19.198 up to and including 4.19.*
unaffected from 5.4.134 up to and including 5.4.*
unaffected from 5.10.52 up to and including 5.10.*
unaffected from 5.12.19 up to and including 5.12.*
unaffected from 5.13.4 up to and including 5.13.*
unaffected 5.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47328 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47328

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47328
trivy image --scanners vuln IMAGE | grep CVE-2021-47328

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47328 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.