CVE-2024-47695
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.69% (higher than 53% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 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.2NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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->s.con_num. Esta confirmación restablece el cid a clt_path->s.con_num - 1, para permanecer dentro de los límites en el bucle de limpieza más tarde.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47695 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-47695 changed 2026-08-04Public domain