scsi: smartpqi: Fix memory leak in pqi_report_phys_luns()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 28ca6d876c5a375094847606046e0bf5d044d9b4 · < 41b37312bd9722af77ec7817ccf22d7a4880c289| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: smartpqi: Fix memory leak in pqi_report_phys_luns()
pqi_report_phys_luns() fails to release the rpl_list buffer when encountering an unsupported data format or when the allocation for rpl_16byte_wwid_list fails. These early returns bypass the cleanup logic, leading to memory leaks.
Consolidate the error handling by adding an out_free_rpl_list label and use goto statements to ensure rpl_list is consistently freed on failure.
Compile tested only. Issue found using a prototype static analysis tool and code review.
From the CVE record · Linux
The Linux kernel's smartpqi driver can leak memory in pqi_report_phys_luns() when it encounters an unsupported data format or a memory allocation fails. The input does not establish how an attacker could trigger these conditions or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the smartpqi driver should check their versions; affected versions were not specified.