Linux Kernel Remoteproc Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's remoteproc core. When a remote processor is attached using rproc_attach(), and the function rproc_handle_resources() fails, the clean table is not properly released. This oversight leads to a memory leak, leaving unreferenced objects in memory. The leaked memory can be observed as an unreferenced object of size 1024, associated with a specific kernel worker process.

Impact

The vulnerability causes a memory leak, leading to unreferenced objects remaining in memory, which can accumulate and potentially cause issues such as exhausting available memory resources.

Reproduction

The vulnerability can be reproduced by attaching a remote processor using rproc_attach() while rproc->state is set to RPROC_DETACHED. If rproc_handle_resources() fails after the attachment, the clean table is not released, causing a memory leak. This can be verified by checking for unreferenced objects in memory, which indicate the leak.

Added: Jul 25, 2025, 5:04 PM
Updated: Jul 25, 2025, 5:04 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
5.7
remediation
0.0
relevance
0.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.