soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 17c84fb7cf3971cc621646185d785670e9530ca1, Kernel 5a741f8cc6fe62542f955cd8d24933a1b6589cbd, Kernel da4b44c42f40501db35f5d0a6243708a061490a0 and 1 more.
In the Linux kernel, the following vulnerability has been resolved: soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe() In mpfs_sys_controller_probe(), if of_get_mtd_device_by_node() fails, the function returns immediately without freeing the allocated memory for sys_controller, leading to a memory leak. Fix this by jumping to the out_free label to ensure the memory is properly freed. Also, consolidate the error handling for the mbox_request_channel() failure case to use the same label.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.8, >=742aa6c563d29c367edbf0ef7236a7a853ed9be4 <17c84fb7cf3971cc621646185d785670e9530ca1, >=742aa6c563d29c367edbf0ef7236a7a853ed9be4 <5a741f8cc6fe62542f955cd8d24933a1b6589cbd, >=742aa6c563d29c367edbf0ef7236a7a853ed9be4 <da4b44c42f40501db35f5d0a6243708a061490a0, >=742aa6c563d29c367edbf0ef7236a7a853ed9be4 <e3dd5cffba07de6574165a72851471cd42cc6d15 | 17c84fb7cf3971cc621646185d785670e9530ca1, 5a741f8cc6fe62542f955cd8d24933a1b6589cbd, da4b44c42f40501db35f5d0a6243708a061490a0, e3dd5cffba07de6574165a72851471cd42cc6d15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket