scsi: smartpqi: Fix memory leak in pqi_report_phys_luns()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.1.165, Kernel 6.18.14, Kernel 6.19.4 and 8 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.16 <6.1.165, >=6.13 <6.18.14, >=6.19 <6.19.4, >=6.2 <6.6.128, >=6.7 <6.12.75, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <454570434114e4862767f506a442a0f110b639b2, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <d52e13122d3771f753dd73ae6512fa01f58015cb, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <e5579ebaadc7b699868dad0f591a7bf83cd647e1, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <f471ecfec093e39ef8fd08978413793087daa14d, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <fdf1188cfa80f88c9f18d58cb33d57ff40e70e26, =5.16, >=28ca6d876c5a375094847606046e0bf5d044d9b4 <41b37312bd9722af77ec7817ccf22d7a4880c289 | 6.1.165, 6.18.14, 6.19.4, 6.6.128, 6.12.75, 454570434114e4862767f506a442a0f110b639b2, d52e13122d3771f753dd73ae6512fa01f58015cb, e5579ebaadc7b699868dad0f591a7bf83cd647e1, f471ecfec093e39ef8fd08978413793087daa14d, fdf1188cfa80f88c9f18d58cb33d57ff40e70e26, 41b37312bd9722af77ec7817ccf22d7a4880c289 |
| linux-kernel: Kernel | >=5.16.0 <6.1.165, >=6.13.0 <6.18.14, >=6.19.0 <6.19.4, >=6.2.0 <6.6.128, >=6.7.0 <6.12.75 | 6.1.165, 6.18.14, 6.19.4, 6.6.128, 6.12.75 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket