CVE-2025-38090

drivers/rapidio/rio_cm.c: prevent possible heap overwrite

MEDIUM
5.5
CVSS Score
Published: June 30, 2025 at 07:29 AM UTC
Updated: August 5, 2026 at 12:44 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: drivers/rapidio/rio_cm.c: prevent possible heap overwrite In riocm_cdev_ioctl(RIO_CM_CHAN_SEND) -> cm_chan_msg_send() -> riocm_ch_send() cm_chan_msg_send() checks that userspace didn't send too much data but riocm_ch_send() failed to check that userspace sent sufficient data. The result is that riocm_ch_send() can write to fields in the rio_ch_chan_hdr which were outside the bounds of the space which cm_chan_msg_send() allocated. Address this by teaching riocm_ch_send() to check that the entire rio_ch_chan_hdr was copied in from userspace.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.8 ≤ v < 5.10.2394.8 ≤ v < 5.15.1864.8 ≤ v < 5.4.2954.8 ≤ v < 6.1.1424.8 ≤ v < 6.12.354.8 ≤ v < 6.15.44.8 ≤ v < 6.164.8 ≤ v < 6.6.955.11 ≤ v < 5.15.1865.16 ≤ v < 6.1.1425.5 ≤ v < 5.10.2396.13 ≤ v < 6.15.46.2 ≤ v < 6.6.956.7 ≤ v < 6.12.356.16 rc1b6e8d4aa1110306378af0f3472a6b85a1f039a16
Vendor states this is fixed in 1921781ec4a8824bd0c520bf9363e28a880d14ec (fixed)
Vendor states this is fixed in 1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53 (fixed)
Vendor states this is fixed in 50695153d7ddde3b1696dbf0085be0033bf3ddb3 (fixed)
Vendor states this is fixed in 58f664614f8c3d6142ab81ae551e466dc6e092e8 (fixed)
Vendor states this is fixed in 6d5c6711a55c35ce09b90705546050408d9d4b61 (fixed)
Vendor states this is fixed in a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6 (fixed)
Vendor states this is fixed in c03ddc183249f03fc7e057e02cae6f89144d0123 (fixed)
Vendor states this is fixed in ecf5ee280b702270afb02f61b299d3dfe3ec7730 (fixed)
Vendor states this is fixed in 4.8 (unaffected)
Vendor states this is fixed in 5.10.239 (unaffected)
Vendor states this is fixed in 5.15.186 (unaffected)
Vendor states this is fixed in 5.4.295 (unaffected)
Vendor states this is fixed in 6.1.142 (unaffected)
Vendor states this is fixed in 6.12.35 (unaffected)
Vendor states this is fixed in 6.15.4 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.95 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1921781ec4a8824bd0c520bf9363e28a880d14ec
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/50695153d7ddde3b1696dbf0085be0033bf3ddb3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/58f664614f8c3d6142ab81ae551e466dc6e092e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6d5c6711a55c35ce09b90705546050408d9d4b61
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c03ddc183249f03fc7e057e02cae6f89144d0123
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ecf5ee280b702270afb02f61b299d3dfe3ec7730

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card