scsi: target: Reset t_task_cdb pointer in error case
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9e95fb805dc043cc8ed878a08d1583e4097a5f80 · < 8edbb9e371af186b4cf40819dab65fafe109df4d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: Reset t_task_cdb pointer in error case
If allocation of cmd->t_task_cdb fails, it remains NULL but is later dereferenced in the 'err' path.
In case of error, reset NULL t_task_cdb value to point at the default fixed-size buffer.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The Linux kernel SCSI target code can dereference a NULL pointer if allocation of cmd->t_task_cdb fails and execution reaches the error path. This can cause a crash; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with SCSI target support should check whether their kernel is affected; affected versions are not specified.