Linux Kernel Raspberry Pi Firmware Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's Raspberry Pi firmware handling. The issue arises in the 'rpi_firmware_probe()' function, where the 'fw' variable is not properly freed if 'mbox_request_channel()' fails. This oversight can lead to a memory leak. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can cause a memory leak, potentially leading to increased memory usage and degradation of system performance over time.

Reproduction

To reproduce this vulnerability, load the Raspberry Pi firmware driver in the Linux kernel. During the 'rpi_firmware_probe()' process, simulate a failure in the 'mbox_request_channel()' function. Observe that the 'fw' variable is not released, causing a memory leak.

Remediation

The vulnerability has been addressed by modifying the error handling in the 'rpi_firmware_probe()' function to include a call to 'kfree()' for the 'fw' variable, ensuring that it is properly freed in case of an error.

Added: Oct 7, 2025, 6:17 PM
Updated: Oct 7, 2025, 6:17 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.6
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.