Skip to contentSkip to conversation

CVE-2026-97413: RDMA/rtrs-srv: Fix integer underflow in process_read and process_write

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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