CVEvulnerability
CVE-2021-47473
5.5 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-22
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-401
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.
Affected configurations
• linux linux kernel (>= 3.11 < 5.10.76)
• linux linux kernel (>= 5.11 < 5.14.15)
• linux linux kernel 5.15
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/7fb223d0ad801f633c78cbe42b1d1b55f5d163ad Patch
- https://git.kernel.org/stable/c/96f0aebf29be25254fa585af43924e34aa21fd9a Patch
- https://git.kernel.org/stable/c/a7fbb56e6c941d9f59437b96412a348e66388d3e Patch
- https://git.kernel.org/stable/c/7fb223d0ad801f633c78cbe42b1d1b55f5d163ad Patch
- https://git.kernel.org/stable/c/96f0aebf29be25254fa585af43924e34aa21fd9a Patch
- https://git.kernel.org/stable/c/a7fbb56e6c941d9f59437b96412a348e66388d3e Patch