# CVE-2026-45872: scsi: smartpqi: Fix memory leak in pqi_report_phys_luns()

- 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.19%, higher than 9% of CVEs (2026-12-02)
- Published: 2026-05-27T12:15:52.133Z
- Modified: 2026-11-06T16:18:48.587Z
- 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: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 28ca6d876c5a375094847606046e0bf5d044d9b4 before f471ecfec093e39ef8fd08978413793087daa14d; from 28ca6d876c5a375094847606046e0bf5d044d9b4 before fdf1188cfa80f88c9f18d58cb33d57ff40e70e26; from 28ca6d876c5a375094847606046e0bf5d044d9b4 before d52e13122d3771f753dd73ae6512fa01f58015cb; from 28ca6d876c5a375094847606046e0bf5d044d9b4 before e5579ebaadc7b699868dad0f591a7bf83cd647e1; from 28ca6d876c5a375094847606046e0bf5d044d9b4 before 454570434114e4862767f506a442a0f110b639b2; from 28ca6d876c5a375094847606046e0bf5d044d9b4 before 41b37312bd9722af77ec7817ccf22d7a4880c289; 5.16 (not affected: before 5.16; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/f471ecfec093e39ef8fd08978413793087daa14d> (patch)
- <https://git.kernel.org/stable/c/fdf1188cfa80f88c9f18d58cb33d57ff40e70e26> (patch)
- <https://git.kernel.org/stable/c/d52e13122d3771f753dd73ae6512fa01f58015cb> (patch)
- <https://git.kernel.org/stable/c/e5579ebaadc7b699868dad0f591a7bf83cd647e1> (patch)
- <https://git.kernel.org/stable/c/454570434114e4862767f506a442a0f110b639b2> (patch)
- <https://git.kernel.org/stable/c/41b37312bd9722af77ec7817ccf22d7a4880c289> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-45872 · Whole record: https://cve.day/CVE-2026-45872.json · Rebuilt by cve.day 2026-11-25T22:59:22.482Z
