Linux Kernel Heap Overwrite Vulnerability in RapidIO Driver

Vulnerability

A vulnerability allowing a heap overwrite has been identified in the Linux kernel's RapidIO driver. The issue arises in the 'inriocm_cdev_ioctl' function, specifically when handling the 'RIO_CM_CHAN_SEND' command. While the 'cm_chan_msg_send' function properly validates the amount of data received from userspace, the 'riocm_ch_send' function fails to ensure that sufficient data has been provided. This oversight allows 'riocm_ch_send' to write to fields in the 'rio_ch_chan_hdr' header that extend beyond the allocated memory boundaries. The vulnerability has been addressed by modifying 'riocm_ch_send' to verify that the entire header was correctly copied from userspace.

Impact

Exploitation of this vulnerability could lead to a heap overwrite, potentially allowing for arbitrary code execution or other malicious actions.

Added: Jun 30, 2025, 8:18 AM
Updated: Jun 30, 2025, 8:18 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
7.7
relevance
0.2
threat
3.2
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.