scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984 · < c097bd5a59162156d9c2077a2f58732ffbaa9fca| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq()
When parsing the txq list in lpfc_drain_txq(), the driver attempts to pass the requests to the adapter. If such an attempt fails, a local "fail_msg" string is set and a log message output. The job is then added to a completions list for cancellation.
Processing of any further jobs from the txq list continues, but since "fail_msg" remains set, jobs are added to the completions list regardless of whether a wqe was passed to the adapter. If successfully added to txcmplq, jobs are added to both lists resulting in list corruption.
Fix by clearing the fail_msg string after adding a job to the completions list. This stops the subsequent jobs from being added to the completions list unless they had an appropriate failure.
From the CVE record · Linux
The Linux kernel’s lpfc SCSI driver can corrupt its request lists when a submission fails and a later submission succeeds. The input does not establish whether an attacker can trigger this condition, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the lpfc SCSI driver should check their versions; affected versions are not specified.