CVE-2025-38090
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.16NVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drivers/rapidio/rio_cm.c: impide la posible sobrescritura del montón. En riocm_cdev_ioctl(RIO_CM_CHAN_SEND) -> cm_chan_msg_send() -> riocm_ch_send(), cm_chan_msg_send() comprueba que el espacio de usuario no haya enviado demasiados datos, pero riocm_ch_send() no pudo comprobar que el espacio de usuario enviara datos suficientes. El resultado es que riocm_ch_send() puede escribir en campos del rio_ch_chan_hdr que estaban fuera de los límites del espacio que cm_chan_msg_send() asignó. Solucione esto enseñándole a riocm_ch_send() que compruebe que todo el rio_ch_chan_hdr se copió desde el espacio de usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38090 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-38090 changed 2026-07-30Public domain