# CVE-2025-38090: drivers/rapidio/rio_cm.c: prevent possible heap overwrite

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-06-30T07:29:45.565Z
- Modified: 2026-08-05T11:59:26.672Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before c03ddc183249f03fc7e057e02cae6f89144d0123; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before 58f664614f8c3d6142ab81ae551e466dc6e092e8; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before ecf5ee280b702270afb02f61b299d3dfe3ec7730; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before 1921781ec4a8824bd0c520bf9363e28a880d14ec; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before 1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before 6d5c6711a55c35ce09b90705546050408d9d4b61; from b6e8d4aa1110306378af0f3472a6b85a1f039a16 before 50695153d7ddde3b1696dbf0085be0033bf3ddb3; 4.8 (not affected: before 4.8; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.8 before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4; 6.16
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6> (patch)
- <https://git.kernel.org/stable/c/c03ddc183249f03fc7e057e02cae6f89144d0123> (patch)
- <https://git.kernel.org/stable/c/58f664614f8c3d6142ab81ae551e466dc6e092e8> (patch)
- <https://git.kernel.org/stable/c/ecf5ee280b702270afb02f61b299d3dfe3ec7730> (patch)
- <https://git.kernel.org/stable/c/1921781ec4a8824bd0c520bf9363e28a880d14ec> (patch)
- <https://git.kernel.org/stable/c/1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53> (patch)
- <https://git.kernel.org/stable/c/6d5c6711a55c35ce09b90705546050408d9d4b61> (patch)
- <https://git.kernel.org/stable/c/50695153d7ddde3b1696dbf0085be0033bf3ddb3> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38090](https://www.cve.org/CVERecord?id=CVE-2025-38090), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38090](https://nvd.nist.gov/vuln/detail/CVE-2025-38090), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38090 · Whole record: https://cve.day/CVE-2025-38090.json · Rebuilt by cve.day 2026-11-25T22:59:00.389Z
