Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8C8121D581 for ; Mon, 30 Jun 2025 07:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751268609; cv=none; b=dPB4VWnQCRs2XEQqSlzgk/1eAYSey0rdkw5bI7uPQXwrr/afCeOhl86XlgcPhFSOf8jRnPgUjPvQh9D4MOTfDrOCpUFVMwj4eae8Oi8UGw3qq/hHhAUzWXARlh2zhJUNy4OjCVumBYK2fdkjljv3CEysMuS+9+0aVapVT1ybAC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751268609; c=relaxed/simple; bh=1CYNM/q5orAVPSKuiyMROI978HcDlQJUWeWpEWDtetI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eAOXLJGNho4fX0sIGOoRjbO1s8VHXSFmTlxN/gz/tVTo5FXd/Ntm4zGKGCBPyWEIl7v3lHjfkZSWkmT3UNnymeCeqRYTayd5dVAQDj+bYAJjcTMLe3oA3D199o4BbKkDrSfu7wigGiDzplxvsfAteewnPYwzVZJydns5P1WQCX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JnFDHamB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JnFDHamB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06385C4CEE3; Mon, 30 Jun 2025 07:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751268609; bh=1CYNM/q5orAVPSKuiyMROI978HcDlQJUWeWpEWDtetI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JnFDHamB5BTpwPLvgbyNcKV+cLSjbECzUhRWhHTwXeKCTqtcjiNe4oRFuPenLT1tb 10BQW++hFCjUDHHQsfb+8wWVKH52/FKC9C2yUWieRKrPA4bpKYG+n6BqHMXszmRox0 wm2lhenwl1ZJHVYsjvZNfJAQJ+5o+vh+y20cJnQM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38090: drivers/rapidio/rio_cm.c: prevent possible heap overwrite Date: Mon, 30 Jun 2025 09:29:54 +0200 Message-ID: <2025063055-CVE-2025-38090-52ef@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3001; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PyMfxbZMFk93SSASlV0Ijqilbl+Ng6DwW4yPyCZxTpE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlJNp9LFjVfnNF8zptl+u1FyiLf+Hn2hLhlOkbNNHzZu pOfuZatI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiHsQwP5j15uv30xUifCSN PF3kJl5/ojlvAsP8coOGxYcvdvK8me8+++/3jzHyf482AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-38090 to this issue. Affected and fixed versions =========================== Fixed in 5.4.295 with commit a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6 Fixed in 5.10.239 with commit c03ddc183249f03fc7e057e02cae6f89144d0123 Fixed in 5.15.186 with commit 58f664614f8c3d6142ab81ae551e466dc6e092e8 Fixed in 6.1.142 with commit ecf5ee280b702270afb02f61b299d3dfe3ec7730 Fixed in 6.6.95 with commit 1921781ec4a8824bd0c520bf9363e28a880d14ec Fixed in 6.12.35 with commit 1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53 Fixed in 6.15.4 with commit 6d5c6711a55c35ce09b90705546050408d9d4b61 Fixed in 6.16-rc2 with commit 50695153d7ddde3b1696dbf0085be0033bf3ddb3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38090 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/rapidio/rio_cm.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a8b5ea2e302aa5cd00fc7addd8df53c9bde7b5f6 https://git.kernel.org/stable/c/c03ddc183249f03fc7e057e02cae6f89144d0123 https://git.kernel.org/stable/c/58f664614f8c3d6142ab81ae551e466dc6e092e8 https://git.kernel.org/stable/c/ecf5ee280b702270afb02f61b299d3dfe3ec7730 https://git.kernel.org/stable/c/1921781ec4a8824bd0c520bf9363e28a880d14ec https://git.kernel.org/stable/c/1cce6ac47f4a2ac1766b8a188dc8c8f6d8df2a53 https://git.kernel.org/stable/c/6d5c6711a55c35ce09b90705546050408d9d4b61 https://git.kernel.org/stable/c/50695153d7ddde3b1696dbf0085be0033bf3ddb3