CVE-2021-47328: scsi: iscsi: Fix conn use after free during resets
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 iscsiconnteardown 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 iscsisessionteardown->iscsiremovesession->iscsiunbindsession 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47328?
CVE-2021-47328 has been rated as a high severity vulnerability.
How do I fix CVE-2021-47328?
To fix CVE-2021-47328, update your Linux kernel to a version newer than 4.19.198, or within the specified safe ranges for other affected versions.
Which versions of Linux Kernel are affected by CVE-2021-47328?
CVE-2021-47328 affects Linux Kernel versions from 4.20 up to 5.4.134, 5.5 up to 5.10.52, 5.11 up to 5.12.19, and 5.13 up to 5.13.4.
What type of vulnerability is CVE-2021-47328?
CVE-2021-47328 is a use-after-free vulnerability related to SCSI iSCSI connections in the Linux kernel.
What are the potential impacts of CVE-2021-47328?
The exploitation of CVE-2021-47328 could lead to denial of service or execution of arbitrary code due to the unsafe memory access.