scsi: libfc: Fix use after free in fc_exch_abts_resp()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 42e9a92fe6a9095bd68a379aaec7ad2be0337f7a · < f581df412bc45c95176e3c808ee2839c05b2ab0c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: libfc: Fix use after free in fc_exch_abts_resp()
fc_exch_release(ep) will decrease the ep's reference count. When the reference count reaches zero, it is freed. But ep is still used in the following code, which will lead to a use after free.
Return after the fc_exch_release() call to avoid use after free.
From the CVE record · Linux
The Linux kernel's scsi libfc code can use an exchange object after releasing its final reference in fc_exch_abts_resp(). This causes a use-after-free; the input does not specify an attacker action or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with scsi libfc should check their versions against the vendor advisory; affected versions are not specified.