Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.239, 5.15.186, 5.4.295, 6.1.142, 6.12.35, 6.15.4, 6.6.95
CVEs
CVE-2025-38090
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:49 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 30 Jun 2025, 07:29 UTC

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.

osv:CVE-2025-38090

Kernel

Fixed versions: 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.95, 6.12.35, 6.15.4

Complete source record
{
  "id": "6589ab860f4a71fd89b94a9308e87ec1fe1547c7880133c0c0e0063d65a45e72",
  "url": "https://osv.dev/vulnerability/CVE-2025-38090",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drivers/rapidio/rio_cm.c: prevent possible heap overwrite",
    "summary": "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.",
    "evidence": "osv:CVE-2025-38090",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.295",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.239",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.186",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.142",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.95",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.35",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38090",
      "aliases": [
        "CVE-2025-38090"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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/cve-osv-conversion/osv-output/CVE-2025-38090.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.8.0"
                },
                {
                  "fixed": "5.4.295"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.239"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.186"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.142"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.95"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.35"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38090.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.935317595Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1921781ec4a8824bd0c520bf9363e28a880d14ec",
        "https://git.kernel.org/stable/c/1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53",
        "https://git.kernel.org/stable/c/50695153d7ddde3b1696dbf0085be0033bf3ddb3",
        "https://git.kernel.org/stable/c/58f664614f8c3d6142ab81ae551e466dc6e092e8",
        "https://git.kernel.org/stable/c/6d5c6711a55c35ce09b90705546050408d9d4b61",
        "https://git.kernel.org/stable/c/a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6",
        "https://git.kernel.org/stable/c/c03ddc183249f03fc7e057e02cae6f89144d0123",
        "https://git.kernel.org/stable/c/ecf5ee280b702270afb02f61b299d3dfe3ec7730",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38090.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38090",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38090.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38090",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496472,
  "published_at": "2025-06-30T07:29:45.565+00:00"
}