{"id":"CVE-2024-47695","aliases":["CVE-2024-47695"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds\n\nIn the function init_conns(), after the create_con() and create_cm() for\nloop if something fails. In the cleanup for loop after the destroy tag, we\naccess out of bound memory because cid is set to clt_path->s.con_num.\n\nThis commits resets the cid to clt_path->s.con_num - 1, to stay in bounds\nin the cleanup loop later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds\n\nIn the function init_conns(), after the create_con() and create_cm() for\nloop if something fails. In the cleanup for loop after the destroy tag, we\naccess out of bound memory because cid is set to clt_path->s.con_num.\n\nThis commits resets the cid to clt_path->s.con_num - 1, to stay in bounds\nin the cleanup loop later.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: RDMA/rtrs-clt: Restablecer cid a con_num - 1 para permanecer dentro de los límites En la función init_conns(), después del bucle for create_con() y create_cm() si algo falla. En el bucle for de limpieza después de la etiqueta destroy, accedemos a memoria fuera de los límites porque cid está configurado en clt_path-&gt;s.con_num. Esta confirmación restablece el cid a clt_path-&gt;s.con_num - 1, para permanecer dentro de los límites en el bucle de limpieza más tarde.","source":"nvd"}],"published":"2024-10-21T11:53:33.266Z","modified":"2026-08-05T11:39:28.289Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"0429a4e972082e3a2351da414b1c017daaf8aed2","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"5ac73f8191f3de41fef4f934d84d97f3aadb301f","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"01b9be936ee8839ab9f83a7e84ee02ac6c8303c4","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"1c50e0265fa332c94a4a182e4efa0fc70d8fad94","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e","status":"affected"},{"type":"git","introduced":"6a98d71daea186247005099758af549e6afdd244","fixed":"3e4289b29e216a55d08a89e126bc0b37cbad9f38","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.54","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.13","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.2","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.15.168"},{"status":"affected","introduced":"5.16","fixed":"6.1.113"},{"status":"affected","introduced":"6.2","fixed":"6.6.54"},{"status":"affected","introduced":"6.7","fixed":"6.10.13"},{"status":"affected","introduced":"6.11","fixed":"6.11.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0429a4e972082e3a2351da414b1c017daaf8aed2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ac73f8191f3de41fef4f934d84d97f3aadb301f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01b9be936ee8839ab9f83a7e84ee02ac6c8303c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c50e0265fa332c94a4a182e4efa0fc70d8fad94","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e4289b29e216a55d08a89e126bc0b37cbad9f38","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-21T13:05:20.037Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47695","url":"https://www.cve.org/CVERecord?id=CVE-2024-47695","licence":"CVE Terms of Use","modified":"2026-08-05T11:39:28.289Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47695","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47695","licence":"Public domain","modified":"2026-08-04T11:20:40.380Z"}],"updatedAt":"2026-11-25T22:58:46.967Z","epss":{"score":0.00685,"percentile":0.53875,"date":"2026-12-01T12:00:22.000Z"}}