RDMA/core: Fix potential use after free in counter_release()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d5cc211e8c39e46f357d30a092d683e84d560de9, Kernel 235ef2d0e750885c29340b0fc40620a7a4f52e12, Kernel 2f0c6705e26ba92c0c6b0b0908a2d3f35a039d5b and 8 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Fix potential use after free in counter_release() When accessing a counter via the netlink path the only synchronization mechanism for the said counter is rdma_restrack_get(). Currently, rdma_restrack_del() is invoked at the end of counter_release(), which is too late, since by that point vendor-specific resources associated with the counter might already be freed. This can leave a short window where the counter remains accessible through restrack, leading to a potential use-after-free. Fix this by moving the rdma_restrack_del() call to be before the freeing of the vendor-specific resources, ensuring that the counter is removed from restrack before its internal resources are released. This guarantees that no new users hold references to a counter that is in the process of destruction.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=99fa331dc8629be55ac7a0cca0dc56492070ddac <d5cc211e8c39e46f357d30a092d683e84d560de9, >=99fa331dc8629be55ac7a0cca0dc56492070ddac <235ef2d0e750885c29340b0fc40620a7a4f52e12, >=99fa331dc8629be55ac7a0cca0dc56492070ddac <2f0c6705e26ba92c0c6b0b0908a2d3f35a039d5b, >=99fa331dc8629be55ac7a0cca0dc56492070ddac <5eb0c57a8b568eb08f464861d84d518a2af939ac, >=99fa331dc8629be55ac7a0cca0dc56492070ddac <64c72390d8407ea86de712a477c796b07d37abc4, >=99fa331dc8629be55ac7a0cca0dc56492070ddac <8c013e3a8d8273da4d47bf1c27f016a3551996f5, =5.3 | d5cc211e8c39e46f357d30a092d683e84d560de9, 235ef2d0e750885c29340b0fc40620a7a4f52e12, 2f0c6705e26ba92c0c6b0b0908a2d3f35a039d5b, 5eb0c57a8b568eb08f464861d84d518a2af939ac, 64c72390d8407ea86de712a477c796b07d37abc4, 8c013e3a8d8273da4d47bf1c27f016a3551996f5 |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=5.3.0 <6.1.188 | 6.18.52, 7.2.6, 6.6.157, 6.12.110, 6.1.188 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket