scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fcd427303eb90aa3cb08e7e0b68e0e67a6d47346 · < 2e4b02fad094976763af08fec2c620f4f8edd9ae| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()
The kref_put() function will call nport->release if the refcount drops to zero. The nport->release release function is _efc_nport_free() which frees "nport". But then we dereference "nport" on the next line which is a use after free. Re-order these lines to avoid the use after free.
From the CVE record · Linux
The Linux kernel’s efc_nport_vport_del() function can dereference an nport after its reference count reaches zero and it is freed. The input does not establish what an attacker could do with this flaw or specify whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels that include the affected scsi elx libefc code should check their kernel versions; affected versions are not specified.