soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe() (Linux Linux)

CVE-2026-23464
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 742aa6c563d29c367edbf0ef7236a7a853ed9be4 < da4b44c42f40501db35f5d0a6243708a061490a0 ; affected 742aa6c563d29c367edbf0ef7236a7a853ed9be4 < e3dd5cffba07de6574165a72851471cd42cc6d15 ; affected 742aa6c563d29c367edbf0ef7236a7a853ed9be4 < 17c84fb7cf3971cc621646185d785670e9530ca1 ; affected 742aa6c563d29c367edbf0ef7236a7a853ed9be4 < 5a741f8cc6fe62542f955cd8d24933a1b6589cbd
Linux · Linuxaffected 6.8 ; unaffected 0 < 6.8 ; unaffected 6.12.78 ≤ 6.12.* ; unaffected 6.18.20 ≤ 6.18.* ; unaffected 6.19.10 ≤ 6.19.* ; unaffected 7.0 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD