CVE-2025-38090

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

State
Published
Severity
7.8 High
Published
Jun 30, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before c03ddc183249f03fc7e057e02cae6f89144d0123Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before 58f664614f8c3d6142ab81ae551e466dc6e092e8Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before ecf5ee280b702270afb02f61b299d3dfe3ec7730Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before 1921781ec4a8824bd0c520bf9363e28a880d14ecAffected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before 1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before 6d5c6711a55c35ce09b90705546050408d9d4b61Affected
  • b6e8d4aa1110306378af0f3472a6b85a1f039a16 to before 50695153d7ddde3b1696dbf0085be0033bf3ddb3Affected
LinuxLinux
  • 4.8Affected
  • before 4.8Not affected
  • 5.4.295 through 5.4.*Not affected
  • 5.10.239 through 5.10.*Not affected
  • 5.15.186 through 5.15.*Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.95 through 6.6.*Not affected
  • 6.12.35 through 6.12.*Not affected
  • 6.15.4 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.