CVE-2021-47473
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 3.11 before 5.10.76, from 5.11 before 5.14.15, 5.15NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: qla2xxx: corrige una pérdida de memoria en una ruta de error de qla2x00_process_els() Commit 8c0eb596baa5 ("[SCSI] qla2xxx: corrige una pérdida de memoria en una ruta de error de qla2x00_process_els()" ), destinado a cambiar: bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN bsg_job->request->msgcode != FC_BSG_RPT_ELS pero lo cambió a: bsg_job->request->msgcode == FC_BSG_RPT_ELS en su lugar. Cambie == a != para evitar filtrar la estructura del fcport o liberar memoria no asignada.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47473 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47473 changed 2026-06-17Public domain