7.8high
RDMA/srpt: Do not register event handler until srpt device is fully setup
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/srpt: Do not register event handler until srpt device is fully setup Upon rare occasions, KASAN reports a use-after-free Write in srpt_refresh_port(). This seems to be because an event handler is registered before the srpt device is fully setup and a race condition upon error may leave a partially setup event handler in place. Instead, only register the event handler after srpt device initialization is complete.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a42d985bd5b234da8b61347a78dc3057bf7bb94d before bdd895e0190c464f54f84579e7535d80276f0fc5, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 6413e78086caf7bf15639923740da0d91fdfd090, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before e362d007294955a4fb929e1c8978154a64efdcb6, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 85570b91e4820a0db9d9432098778cafafa7d217, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before 7104a00fa37ae898a827381f1161fa3286c8b346, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before ec77fa12da41260c6bf9e060b89234b980c5130f, from a42d985bd5b234da8b61347a78dc3057bf7bb94d before c21a8870c98611e8f892511825c9607f1e2cd456, 3.3 Not affected: before 3.3, from 5.10.214 up to 5.10.*, from 5.15.153 up to 5.15.*, from 6.1.83 up to 6.1.*, from 6.6.23 up to 6.6.*, from 6.7.11 up to 6.7.* | CVE List |
| linux linux_kernel | from 3.3 before 5.10.214, from 5.11 before 5.15.153, from 5.16 before 6.1.83, from 6.2 before 6.6.23, from 6.7 before 6.7.11, from 6.8 before 6.8.2 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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/srpt: Do not register event handler until srpt device is fully setup Upon rare occasions, KASAN reports a use-after-free Write in srpt_refresh_port(). This seems to be because an event handler is registered before the srpt device is fully setup and a race condition upon error may leave a partially setup event handler in place. Instead, only register the event handler after srpt device initialization is complete.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: RDMA/srpt: no registrar el controlador de eventos hasta que el dispositivo srpt esté completamente configurado. En raras ocasiones, KASAN informa una escritura de use-after-free en srpt_refresh_port(). Esto parece deberse a que se registra un controlador de eventos antes de que el dispositivo srpt esté completamente configurado y una condición de carrera en caso de error puede dejar en su lugar un controlador de eventos parcialmente configurado. En su lugar, registre el controlador de eventos solo después de que se complete la inicialización del dispositivo srpt.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26872 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-26872 changed 2026-10-15 | Public domain |