RDMA/srpt: Do not register event handler until srpt device is fully setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a42d985bd5b234da8b61347a78dc3057bf7bb94d · < ec77fa12da41260c6bf9e060b89234b980c5130f| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s RDMA/srpt component can encounter a use-after-free write when an event handler is registered before device initialization finishes and an error triggers a race. The input does not establish how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the RDMA/srpt component should check their versions; affected versions are not specified.