# CVE-2021-47473: scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-22T06:23:30.204Z
- Modified: 2026-06-17T04:17:33.207Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()

Commit 8c0eb596baa5 ("[SCSI] qla2xxx: Fix a memory leak in an error path of
qla2x00_process_els()"), intended to change:

        bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN


        bsg_job->request->msgcode != FC_BSG_RPT_ELS

but changed it to:

        bsg_job->request->msgcode == FC_BSG_RPT_ELS

instead.

Change the == to a != to avoid leaking the fcport structure or freeing
unallocated memory.

(As written by CVE List.)

## Affected

- Linux Linux: from 8c0eb596baa51f2b43949c698c644727ef17805c before 96f0aebf29be25254fa585af43924e34aa21fd9a; from 8c0eb596baa51f2b43949c698c644727ef17805c before a7fbb56e6c941d9f59437b96412a348e66388d3e; from 8c0eb596baa51f2b43949c698c644727ef17805c before 7fb223d0ad801f633c78cbe42b1d1b55f5d163ad; 3.11 (not affected: before 3.11; from 5.10.76 up to 5.10.*; from 5.14.15 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 3.11 before 5.10.76; from 5.11 before 5.14.15; 5.15

## References

- <https://git.kernel.org/stable/c/96f0aebf29be25254fa585af43924e34aa21fd9a> (patch)
- <https://git.kernel.org/stable/c/a7fbb56e6c941d9f59437b96412a348e66388d3e> (patch)
- <https://git.kernel.org/stable/c/7fb223d0ad801f633c78cbe42b1d1b55f5d163ad> (patch)

## Sources

- CVE List: [CVE-2021-47473](https://www.cve.org/CVERecord?id=CVE-2021-47473), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47473](https://nvd.nist.gov/vuln/detail/CVE-2021-47473), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47473 · Whole record: https://cve.day/CVE-2021-47473.json · Rebuilt by cve.day 2026-11-25T22:58:08.875Z
