CVE-2023-52513
JSON

7.5high

RDMA/siw: Fix connection failure handling

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.66% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix connection failure handling In case immediate MPA request processing fails, the newly created endpoint unlinks the listening endpoint and is ready to be dropped. This special case was not handled correctly by the code handling the later TCP socket close, causing a NULL dereference crash in siw_cm_work_handler() when dereferencing a NULL listener. We now also cancel the useless MPA timeout, if immediate MPA request processing fails. This patch furthermore simplifies MPA processing in general: Scheduling a useless TCP socket read in sk_data_ready() upcall is now surpressed, if the socket is already moved out of TCP_ESTABLISHED state.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before 6e26812e289b374c17677d238164a5a8f5770594, from 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before 0d520cdb0cd095eac5d00078dfd318408c9b5eed, from 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before 81b7bf367eea795d259d0261710c6a89f548844d, from 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before 5cf38e638e5d01b68f9133968a85e8b3fd1ecf2f, from 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before eeafc50a77f6a783c2c44e7ec3674a7b693e06f8, from 6c52fdc244b5ccc468006fd65a504d4ee33743c7 before 53a3f777049771496f791504e7dc8ef017cba590, 5.3
Not affected: before 5.3, from 5.4.258 up to 5.4.*, from 5.10.198 up to 5.10.*, from 5.15.135 up to 5.15.*, from 6.1.57 up to 6.1.*, from 6.5.7 up to 6.5.*
CVE List
linux linux_kernelfrom 5.3 before 5.4.258, from 5.5 before 5.10.198, from 5.11 before 5.15.135, from 5.16 before 6.1.57, from 6.2 before 6.5.7, 6.6NVD

All scores

Linux7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

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/siw: Fix connection failure handling In case immediate MPA request processing fails, the newly created endpoint unlinks the listening endpoint and is ready to be dropped. This special case was not handled correctly by the code handling the later TCP socket close, causing a NULL dereference crash in siw_cm_work_handler() when dereferencing a NULL listener. We now also cancel the useless MPA timeout, if immediate MPA request processing fails. This patch furthermore simplifies MPA processing in general: Scheduling a useless TCP socket read in sk_data_ready() upcall is now surpressed, if the socket is already moved out of TCP_ESTABLISHED state.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: RDMA/siw: soluciona el manejo de fallas de conexión En caso de que falle el procesamiento inmediato de la solicitud MPA, el endpoint recién creado desvincula el endpoint de escucha y está listo para ser descartado. Este caso especial no fue manejado correctamente por el código que maneja el cierre posterior del socket TCP, lo que provocó un bloqueo de desreferencia NULL en siw_cm_work_handler() al desreferenciar un oyente NULL. Ahora también cancelamos el tiempo de espera inútil de MPA, si falla el procesamiento inmediato de la solicitud de MPA. Este parche además simplifica el procesamiento MPA en general: la programación de una lectura de socket TCP inútil en la llamada ascendente sk_data_ready() ahora se suprime, si el socket ya se ha movido fuera del estado TCP_ESTABLISHED.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52513 changed 2026-08-05CVE Terms of Use
NVDCVE-2023-52513 changed 2026-08-04Public domain