scsi: elx: efct: Fix refcount leak in efct_hw_io_abort()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63de51327a64c74e85611a0161eaae71256a3b6d · < 747eaead2db298abfda2aa505f6d03775b40fe5f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: elx: efct: Fix refcount leak in efct_hw_io_abort()
When efct_hw_reqtag_alloc() fails in efct_hw_io_abort(), the error path returns -ENOSPC without releasing the reference obtained via kref_get_unless_zero() earlier in the function. All other error paths correctly drop the reference. This causes a permanent reference leak on the io_to_abort object.
Additionally, the abort_in_progress flag is left set to true on this path, which means future abort attempts for the same I/O will immediately return -EINPROGRESS even though the abort was never submitted, effectively blocking recovery.
Fix this by adding the missing kref_put() call and reset abort_in_progress to false, matching the cleanup done in the efct_hw_wq_write() failure path below.
From the CVE record · Linux
The Linux kernel’s SCSI elx efct driver leaks an I/O reference if request-tag allocation fails during an abort. It also leaves the abort marked as in progress, preventing later abort attempts for that I/O; the input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the SCSI elx efct driver should check their kernel versions; affected versions were not provided.