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

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-09-24T16:03:21.010Z
- Modified: 2026-10-03T11:17:53.320Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9cb837480424e78ed585376f944088246685aec3 before 6b1e26e70d7ca9f0906af2283558a530eeb1f066; from 9cb837480424e78ed585376f944088246685aec3 before 2c52b2afded988233cd4ccc185cf5147bbc77a76; from 9cb837480424e78ed585376f944088246685aec3 before b042b4947752df0b3d16e683ac09fb4f7f0e33e0; from 9cb837480424e78ed585376f944088246685aec3 before 24ad03bfeda05fca04c56677e57fd3d6bc3e9978; from 9cb837480424e78ed585376f944088246685aec3 before c76e9123ab91a903396d26e6ab1b5caae5c6b149; from 9cb837480424e78ed585376f944088246685aec3 before 54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5; 5.8 (not affected: before 5.8; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/6b1e26e70d7ca9f0906af2283558a530eeb1f066>
- <https://git.kernel.org/stable/c/2c52b2afded988233cd4ccc185cf5147bbc77a76>
- <https://git.kernel.org/stable/c/b042b4947752df0b3d16e683ac09fb4f7f0e33e0>
- <https://git.kernel.org/stable/c/24ad03bfeda05fca04c56677e57fd3d6bc3e9978>
- <https://git.kernel.org/stable/c/c76e9123ab91a903396d26e6ab1b5caae5c6b149>
- <https://git.kernel.org/stable/c/54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5>

## Sources

- CVE List: [CVE-2026-97413](https://www.cve.org/CVERecord?id=CVE-2026-97413), CVE Terms of Use, modified 2026-10-03
- NVD: [CVE-2026-97413](https://nvd.nist.gov/vuln/detail/CVE-2026-97413), Public domain, modified 2026-10-03

---

Page: https://cve.day/CVE-2026-97413 · Whole record: https://cve.day/CVE-2026-97413.json · Rebuilt by cve.day 2026-11-25T22:59:40.845Z
