scsi: target: pscsi: Fix bio_put() for error case
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: target: pscsi: Fix bio_put() for error case
As of commit 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc wrapper"), a bio allocated by bio_kmalloc() must be freed by bio_uninit() and kfree(). That is not done properly for the error case, hitting WARN and NULL pointer dereference in bio_free().
From the CVE record · Linux
The Linux kernel pscsi target code incorrectly frees a bio allocated by bio_kmalloc() when an error occurs. This can trigger a warning and NULL pointer dereference. The input does not specify how an attacker could reach this error case or whether access or user interaction is required.
Operators running Linux kernels with the affected pscsi target code should check their versions; the affected versions are not specified.