What’s Vulnerable › Vulnerabilities

CVE-2024-26872: RDMA/srpt: Do not register event handler until srpt device is fully setup

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 products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.214, 5.15.153, 6.1.83, 6.6.23. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-26872 or the next vulnerability affects your stack