CVE-2021-47203

scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq()

8.8 high EPSS 0.35%

Published 10 Apr 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47203

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47203 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

8.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Apr 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before ad4776b5eb2e58af1226847fcd3b4f6d051674dd
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before ec70d80a8642900086447ba0cdc79e3f44d42e8f
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before f05a0191b90156e539cccc189b9d87ca2a4d9305
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before b291d147d0268e93ad866f8bc820ea14497abc9b
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before 16bcbfb56d759c25665f786e33ec633b9508a08f
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before c097bd5a59162156d9c2077a2f58732ffbaa9fca
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before 814d3610c4ce86e8cf285b2cdac0057a42e82de5
affected from 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, before 99154581b05c8fb22607afb7c3d66c1bace6aa5d
Other versions: unaffected
Linux
affected 2.6.36
unaffected before 2.6.36
unaffected from 4.4.293 up to and including 4.4.*
unaffected from 4.9.291 up to and including 4.9.*
unaffected from 4.14.256 up to and including 4.14.*
unaffected from 4.19.218 up to and including 4.19.*
unaffected from 5.4.162 up to and including 5.4.*
unaffected from 5.10.82 up to and including 5.10.*
unaffected from 5.15.5 up to and including 5.15.*
unaffected 5.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47203 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47203

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47203
trivy image --scanners vuln IMAGE | grep CVE-2021-47203

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47203 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.