5.5medium
soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 742aa6c563d29c367edbf0ef7236a7a853ed9be4 before da4b44c42f40501db35f5d0a6243708a061490a0, from 742aa6c563d29c367edbf0ef7236a7a853ed9be4 before e3dd5cffba07de6574165a72851471cd42cc6d15, from 742aa6c563d29c367edbf0ef7236a7a853ed9be4 before 17c84fb7cf3971cc621646185d785670e9530ca1, from 742aa6c563d29c367edbf0ef7236a7a853ed9be4 before 5a741f8cc6fe62542f955cd8d24933a1b6589cbd, 6.8 Not affected: before 6.8, from 6.12.78 up to 6.12.*, from 6.18.20 up to 6.18.*, from 6.19.10 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.12.78, from 6.13 before 6.18.20, from 6.19 before 6.19.10, 7.0 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: soc: microchip: mpfs: Corrección de fuga de memoria en mpfs_sys_controller_probe() En mpfs_sys_controller_probe(), si of_get_mtd_device_by_node() falla, la función retorna inmediatamente sin liberar la memoria asignada para sys_controller, lo que provoca una fuga de memoria. Esto se soluciona saltando a la etiqueta out_free para asegurar que la memoria se libere correctamente. Además, se consolida el manejo de errores para el caso de fallo de mbox_request_channel() para usar la misma etiqueta.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23464 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-23464 changed 2026-07-24 | Public domain |