Memory Leak in Linux Kernel Remote Procedure Handling
CVE-2025-38419
What is CVE-2025-38419?
A vulnerability exists in the Linux kernel's remote procedure handling that may lead to a memory leak. Specifically, when the rproc_attach() function is called while the remote processor state is RPROC_DETACHED, a failure in rproc_handle_resources() does not trigger the release of resources allocated during rproc_attach(). This oversight can lead to unreferenced objects persisting in memory, ultimately causing a leak. The fix involves refining the control flow to ensure that the resource cleanup process is invoked correctly under failure conditions, preventing unnecessary resource occupation.
Affected Version(s)
Linux 10a3d4079eaea06472f1981152e2840e7232ffa9
Linux 10a3d4079eaea06472f1981152e2840e7232ffa9 < 82208ce9505abb057afdece7c62a14687c52c9ca
Linux 10a3d4079eaea06472f1981152e2840e7232ffa9 < 9515d74c9d1ae7308a02e8bd4f894eb8137cf8df