# CVE-2024-47695: RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds

- 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.69%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-10-21T11:53:33.266Z
- Modified: 2026-08-05T11:39:28.289Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds

In the function init_conns(), after the create_con() and create_cm() for
loop if something fails. In the cleanup for loop after the destroy tag, we
access out of bound memory because cid is set to clt_path->s.con_num.

This commits resets the cid to clt_path->s.con_num - 1, to stay in bounds
in the cleanup loop later.

(As written by CVE List.)

## Affected

- Linux Linux: from 6a98d71daea186247005099758af549e6afdd244 before 0429a4e972082e3a2351da414b1c017daaf8aed2; from 6a98d71daea186247005099758af549e6afdd244 before 5ac73f8191f3de41fef4f934d84d97f3aadb301f; from 6a98d71daea186247005099758af549e6afdd244 before 01b9be936ee8839ab9f83a7e84ee02ac6c8303c4; from 6a98d71daea186247005099758af549e6afdd244 before 1c50e0265fa332c94a4a182e4efa0fc70d8fad94; from 6a98d71daea186247005099758af549e6afdd244 before c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e; from 6a98d71daea186247005099758af549e6afdd244 before 3e4289b29e216a55d08a89e126bc0b37cbad9f38; 5.8 (not affected: before 5.8; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.8 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/0429a4e972082e3a2351da414b1c017daaf8aed2> (patch)
- <https://git.kernel.org/stable/c/5ac73f8191f3de41fef4f934d84d97f3aadb301f> (patch)
- <https://git.kernel.org/stable/c/01b9be936ee8839ab9f83a7e84ee02ac6c8303c4> (patch)
- <https://git.kernel.org/stable/c/1c50e0265fa332c94a4a182e4efa0fc70d8fad94> (patch)
- <https://git.kernel.org/stable/c/c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e> (patch)
- <https://git.kernel.org/stable/c/3e4289b29e216a55d08a89e126bc0b37cbad9f38> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-47695 · Whole record: https://cve.day/CVE-2024-47695.json · Rebuilt by cve.day 2026-11-25T22:58:46.967Z
