# CVE-2021-47203: scsi: lpfc: Fix list\_add() corruption in lpfc\_drain\_txq()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-10T18:56:37.066Z
- **Modified:** 2026-08-05T08:46:43.456Z

## Who should check

- Anyone running Linux \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ad4776b5eb2e58af1226847fcd3b4f6d051674dd; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ec70d80a8642900086447ba0cdc79e3f44d42e8f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< f05a0191b90156e539cccc189b9d87ca2a4d9305; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< b291d147d0268e93ad866f8bc820ea14497abc9b; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 16bcbfb56d759c25665f786e33ec633b9508a08f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< c097bd5a59162156d9c2077a2f58732ffbaa9fca; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 814d3610c4ce86e8cf285b2cdac0057a42e82de5; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 99154581b05c8fb22607afb7c3d66c1bace6aa5d
- Anyone running Linux 2.6.36

## 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.

## Affected and fixed versions

- Linux: \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ad4776b5eb2e58af1226847fcd3b4f6d051674dd; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ec70d80a8642900086447ba0cdc79e3f44d42e8f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< f05a0191b90156e539cccc189b9d87ca2a4d9305; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< b291d147d0268e93ad866f8bc820ea14497abc9b; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 16bcbfb56d759c25665f786e33ec633b9508a08f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< c097bd5a59162156d9c2077a2f58732ffbaa9fca; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 814d3610c4ce86e8cf285b2cdac0057a42e82de5; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 99154581b05c8fb22607afb7c3d66c1bace6aa5d (cvelist)
- Linux: 2.6.36 (cvelist)

## Mitigation

- Upgrade Linux to 99154581b05c8fb22607afb7c3d66c1bace6aa5d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47203. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47203.md
Affected: Linux >= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, < ad4776b5eb2e58af1226847fcd3b4f6d051674dd; >= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, < ec70d80a8642900086447ba0cdc79e3f44d42e8f; >= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, < f05a0191b90156e539cccc189b9d87ca2a4d9305; >= 2a9bf3d011303d8da64cd5e…
Fixed in: Linux 16bcbfb56d759c25665f786e33ec633b9508a08f, Linux 814d3610c4ce86e8cf285b2cdac0057a42e82de5, Linux 99154581b05c8fb22607afb7c3d66c1bace6aa5d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47203 being exploited?

There is no confirmed exploitation: CVE-2021-47203 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47203?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47203?

Linux \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ad4776b5eb2e58af1226847fcd3b4f6d051674dd; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< ec70d80a8642900086447ba0cdc79e3f44d42e8f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< f05a0191b90156e539cccc189b9d87ca2a4d9305; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< b291d147d0268e93ad866f8bc820ea14497abc9b; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 16bcbfb56d759c25665f786e33ec633b9508a08f; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< c097bd5a59162156d9c2077a2f58732ffbaa9fca; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 814d3610c4ce86e8cf285b2cdac0057a42e82de5; \>= 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984, \< 99154581b05c8fb22607afb7c3d66c1bace6aa5d; Linux 2.6.36.

### Is there a fix for CVE-2021-47203?

Yes. Fixed in Linux 16bcbfb56d759c25665f786e33ec633b9508a08f, Linux 814d3610c4ce86e8cf285b2cdac0057a42e82de5, Linux 99154581b05c8fb22607afb7c3d66c1bace6aa5d. Upgrade Linux to 99154581b05c8fb22607afb7c3d66c1bace6aa5d or later.

### How do I check if I'm affected by CVE-2021-47203?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ad4776b5eb2e58af1226847fcd3b4f6d051674dd>
- patch: <https://git.kernel.org/stable/c/ec70d80a8642900086447ba0cdc79e3f44d42e8f>
- patch: <https://git.kernel.org/stable/c/f05a0191b90156e539cccc189b9d87ca2a4d9305>
- patch: <https://git.kernel.org/stable/c/b291d147d0268e93ad866f8bc820ea14497abc9b>
- patch: <https://git.kernel.org/stable/c/16bcbfb56d759c25665f786e33ec633b9508a08f>
- patch: <https://git.kernel.org/stable/c/c097bd5a59162156d9c2077a2f58732ffbaa9fca>
- patch: <https://git.kernel.org/stable/c/814d3610c4ce86e8cf285b2cdac0057a42e82de5>
- patch: <https://git.kernel.org/stable/c/99154581b05c8fb22607afb7c3d66c1bace6aa5d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47203>

HTML: <https://flawdb.com/CVE-2021-47203> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47203>
