What’s Vulnerable › Vulnerabilities
CVE-2026-45872: scsi: smartpqi: Fix memory leak in pqi_report_phys_luns()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-27 · updated 2026-06-25
- Weakness: CWE-401
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.
Affected products
- 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 — fixed in 6.1.165, 6.12.75, 6.18.14, 6.19.4, 6.6.128
How to fix
Upgrade to a fixed version: Linux kernel 6.1.165, 6.12.75, 6.18.14, 6.19.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/41b37312bd9722af77ec7817ccf22d7a4880c289
- https://git.kernel.org/stable/c/454570434114e4862767f506a442a0f110b639b2
- https://git.kernel.org/stable/c/d52e13122d3771f753dd73ae6512fa01f58015cb
- https://git.kernel.org/stable/c/e5579ebaadc7b699868dad0f591a7bf83cd647e1
- https://git.kernel.org/stable/c/f471ecfec093e39ef8fd08978413793087daa14d
- https://git.kernel.org/stable/c/fdf1188cfa80f88c9f18d58cb33d57ff40e70e26
Get alerted when CVE-2026-45872 or the next vulnerability affects your stack