CVE-2025-38090

Source
https://cve.org/CVERecord?id=CVE-2025-38090
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38090.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38090
Downstream
Related
Published
2025-06-30T07:29:45.565Z
Modified
2026-03-20T12:42:39.845903Z
Summary
drivers/rapidio/rio_cm.c: prevent possible heap overwrite
Details

In the Linux kernel, the following vulnerability has been resolved:

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

In

riocmcdevioctl(RIOCMCHANSEND) -> cmchanmsgsend() -> riocmchsend()

cmchanmsgsend() checks that userspace didn't send too much data but riocmchsend() failed to check that userspace sent sufficient data. The result is that riocmchsend() can write to fields in the riochchanhdr which were outside the bounds of the space which cmchanmsg_send() allocated.

Address this by teaching riocmchsend() to check that the entire riochchan_hdr was copied in from userspace.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38090.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b6e8d4aa1110306378af0f3472a6b85a1f039a16
Fixed
a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6
Fixed
c03ddc183249f03fc7e057e02cae6f89144d0123
Fixed
58f664614f8c3d6142ab81ae551e466dc6e092e8
Fixed
ecf5ee280b702270afb02f61b299d3dfe3ec7730
Fixed
1921781ec4a8824bd0c520bf9363e28a880d14ec
Fixed
1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53
Fixed
6d5c6711a55c35ce09b90705546050408d9d4b61
Fixed
50695153d7ddde3b1696dbf0085be0033bf3ddb3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38090.json"