Bug 2375533 (CVE-2025-38090) - CVE-2025-38090 kernel: drivers/rapidio/rio_cm.c: prevent possible heap overwrite
Summary: CVE-2025-38090 kernel: drivers/rapidio/rio_cm.c: prevent possible heap overwrite
Keywords:
Status: NEW
Alias: CVE-2025-38090
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-30 08:01 UTC by OSIDB Bzimport
Modified: 2025-06-30 14:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-30 08:01:28 UTC
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.

Comment 1 Avinash Hanwate 2025-06-30 14:43:48 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025063055-CVE-2025-38090-52ef@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.