Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E68D74A6CF2 for ; Thu, 24 Sep 2026 16:11:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266281; cv=none; b=UQ5GRXHEsFnOn1DInX/gFk1AasIJLYqe//eiCLFrt2Vf+WBfS1X+pMcSsfYeI/YQELSfq8MPSCt+JQobxmDTROLN8a2wOKG/NRbT7l4NW55V6decgXnm8ZUUX4pcwTCYBIM+nGLlOhhn5udVrLxUIxYk72WYjYD6bt3Hl/w0d0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266281; c=relaxed/simple; bh=XU4JU+045c+XtWtonK79jx4SsJRpoOtUBxtNbfy9sJM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cbxdogBuCRxOFtSQFGpocEsQzEx1skPZzdDKHYNXh+RQXAifNXlv1MqTDX46rGYJqVCR28r5mKgKG9uW1UUNI4+/lAigW1lWAsc0DdLy4dxGg3/NUbJabNQy0hkl7jXJRoJ03A8Ng7L9C9b/iyUgFxGs/apd1LQJmq/jldaofok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CZZYsXdJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CZZYsXdJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ECE81F0089A; Thu, 24 Sep 2026 16:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266279; bh=KF4hQGsGIF/8CxrofO2e5blYc0YaEWXZwa1/z5k3zBs=; h=From:To:Cc:Subject:Date:Reply-To; b=CZZYsXdJY6xPtQkhnzwvQMJIrvpimSC5U3EzPhnqB3SNpJlZhr6U3ZLN1yTFrLxIt GA+LSKb1PqSobfS2gLJ+eHDDXmBTgUV6gNE1yW3PGPjcjuOpkW52431OkL09AhZsti r8KmFQkgcnDpdSu2AToF1mbpgzWkSGBNV73Q0y1o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97413: RDMA/rtrs-srv: Fix integer underflow in process_read and process_write Date: Thu, 24 Sep 2026 18:03:13 +0200 Message-ID: <2026092426-CVE-2026-97413-af91@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2372; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nqlnGRtkmzqv+6L+e6lS2zQURh266NQnfJKgkINcYac=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPScdbeeUvCAZN/ueLbsjc2P37H8XDSYcW5vk4L3da rGaxOn4jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1ySGefaTmKt0L1/SM22+ Ibyb68A7jrN7bzAsWFYeu+mnSuDCwh7fHdMePOHhOep1CQA= 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: RDMA/rtrs-srv: Fix integer underflow in process_read and process_write usr_len is read from a network-supplied message field (le16_to_cpu) and used to compute data_len = off - usr_len without validating that usr_len <= off. A malicious RDMA client can send usr_len > off causing an integer underflow, resulting in data_len wrapping to a huge size_t value which is then passed to the rdma_ev callback as a memory length, leading to out-of-bounds memory access. Fix by reading and validating usr_len <= off before rtrs_srv_get_ops_ids() in both process_read() and process_write(), ensuring the early return path acquires no reference and has no resource leak. The Linux kernel CVE team has assigned CVE-2026-97413 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 24ad03bfeda05fca04c56677e57fd3d6bc3e9978 Fixed in 6.18.53 with commit c76e9123ab91a903396d26e6ab1b5caae5c6b149 Fixed in 7.2 with commit 54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5 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-2026-97413 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/infiniband/ulp/rtrs/rtrs-srv.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/24ad03bfeda05fca04c56677e57fd3d6bc3e9978 https://git.kernel.org/stable/c/c76e9123ab91a903396d26e6ab1b5caae5c6b149 https://git.kernel.org/stable/c/54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5