RDMA/core: Wait for RCU callbacks before unloading ib_core
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 943bd984b108b3bb778790c2da4ae8d186b547e6 · < 9d998297fdaf47492f6679287f6552879d1a7e3a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Wait for RCU callbacks before unloading ib_core
put_gid_ndev() is queued with call_rcu() and implemented in ib_core. Stopping the workqueues does not drain callbacks already queued, so RCU could invoke it after the module code has been unloaded.
synchronize_rcu() does not wait for callbacks. Wait for them after all producers have stopped.
From the CVE record · Linux
The Linux kernel's RDMA core can unload ib_core while a queued RCU callback still points to its code. If the callback runs afterward, it could cause a crash. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the RDMA core module should check their kernel versions; affected versions are not specified.