scsi: qla2xxx: Completely fix fcport double free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4895009c4bb72f71f2e682f1e7d2c2d96e482087 · < c0b7da13a04bd70ef6070bfb9ea85f582294560a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Completely fix fcport double free
In qla24xx_els_dcmd_iocb() sp->free is set to qla2x00_els_dcmd_sp_free(). When an error happens, this function is called by qla2x00_sp_release(), when kref_put() releases the first and the last reference.
qla2x00_els_dcmd_sp_free() frees fcport by calling qla2x00_free_fcport(). Doing it one more time after kref_put() is a bad idea.
From the CVE record · Linux
The Linux kernel’s qla2xxx SCSI driver can free an fcport twice when an error occurs in qla24xx_els_dcmd_iocb(). The input does not specify whether an attacker can trigger the error, what they could achieve, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the qla2xxx SCSI driver should check their kernel versions; affected versions are not specified.