drivers/rapidio/rio_cm.c: prevent possible heap overwrite (Linux Linux)

CVE-2025-38090
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6 ; affected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < c03ddc183249f03fc7e057e02cae6f89144d0123 ; affected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < 58f664614f8c3d6142ab81ae551e466dc6e092e8 ; affected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < ecf5ee280b702270afb02f61b299d3dfe3ec7730 ; affected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < 1921781ec4a8824bd0c520bf9363e28a880d14ec ; affected b6e8d4aa1110306378af0f3472a6b85a1f039a16 < 1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53
Linux · Linuxaffected 4.8 ; unaffected 0 < 4.8 ; unaffected 5.4.295 ≤ 5.4.* ; unaffected 5.10.239 ≤ 5.10.* ; unaffected 5.15.186 ≤ 5.15.* ; unaffected 6.1.142 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD