CVE-2026-23464: soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-23464 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 742aa6c563d29c367edbf0ef7236a7a853ed9be4 and fixed in 6.12.78 with commit da4b44c42f40501db35f5d0a6243708a061490a0 Issue introduced in 6.8 with commit 742aa6c563d29c367edbf0ef7236a7a853ed9be4 and fixed in 6.18.20 with commit e3dd5cffba07de6574165a72851471cd42cc6d15 Issue introduced in 6.8 with commit 742aa6c563d29c367edbf0ef7236a7a853ed9be4 and fixed in 6.19.10 with commit 17c84fb7cf3971cc621646185d785670e9530ca1 Issue introduced in 6.8 with commit 742aa6c563d29c367edbf0ef7236a7a853ed9be4 and fixed in 7.0-rc5 with commit 5a741f8cc6fe62542f955cd8d24933a1b6589cbd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23464
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/soc/microchip/mpfs-sys-controller.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/da4b44c42f40501db35f5d0a6243708a061490a0 https://git.kernel.org/stable/c/e3dd5cffba07de6574165a72851471cd42cc6d15 https://git.kernel.org/stable/c/17c84fb7cf3971cc621646185d785670e9530ca1 https://git.kernel.org/stable/c/5a741f8cc6fe62542f955cd8d24933a1b6589cbd