scsi: Revert "scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed"
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: Revert "scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed"
The "atomic_inc(&cmd->device->iorequest_cnt)" in scsi_queue_rq() would cause kernel panic because cmd->device may be freed after returning from scsi_dispatch_cmd().
This reverts commit cfee29ffb45b1c9798011b19d454637d1b0fe87d.
From the CVE record · Linux
The Linux kernel’s SCSI request path can panic if a device is freed after command dispatch and its request count is then incremented. The input does not specify how an attacker could trigger this condition or whether authentication, network access, or user interaction is required.
Engineers running Linux kernels with the affected SCSI code should check their versions; the affected version range is not specified.