CVE-2021-47203: scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq()

Published Apr 10, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix listadd() corruption in lpfcdraintxq()

When parsing the txq list in lpfcdraintxq(), the driver attempts to pass the requests to the adapter. If such an attempt fails, a local "failmsg" 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 "failmsg" 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 failmsg 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.

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel<4.4.293
Linux Linux kernel>=4.5<4.9.291
Linux Linux kernel>=4.10<4.14.256
Linux Linux kernel>=4.15<4.19.218
Linux Linux kernel>=4.20<5.4.162
Linux Linux kernel>=5.5<5.10.82
Linux Linux kernel>=5.11<5.15.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Fix the list corruption by clearing the fail_msg string after a job is successfully added to the completions list during lpfc_drain_txq() processing.

    Linux kernel (lpfc_drain_txq) fail_msg (string used for failure logging) = cleared/emptied after adding a job to the completions list
  2. Compensating control

    During lpfc_drain_txq() parsing of the txq list, prevent subsequent txq jobs from being added to the completions list when the job is already handled/added for cancellation—stop further completions additions after completing the relevant cancellation handling.

Event History

Apr 10, 2024
CVE Published
via MITRE·06:56 PM
Data Sourced
via MITRE·06:56 PM
DescriptionSeverity
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47203?

CVE-2021-47203 is classified as a medium severity vulnerability within the Linux kernel.

2

Which systems are affected by CVE-2021-47203?

CVE-2021-47203 affects the Linux kernel, specifically those versions that utilize the lpfc driver.

3

How do I fix CVE-2021-47203?

To fix CVE-2021-47203, update your Linux kernel to the latest stable version where the vulnerability has been patched.

4

What issue does CVE-2021-47203 address in the Linux kernel?

CVE-2021-47203 addresses a corruption issue in the list_add() function within lpfc_drain_txq() in the SCSI lpfc driver.

5

What impact does CVE-2021-47203 have on system performance?

CVE-2021-47203 can potentially lead to data corruption, affecting system stability and performance when using the lpfc driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203