RDMA/erdma: Hold CQ references when processing EQ events
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c0a83f29a24c7e7f8516630848ef6db4c174deed, Kernel 05b8ca493dd02319bca93c640b259c2ba51ef321, Kernel 1fc9c1933959d2776a1ce7bf424251b8b5b586cd and 8 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/erdma: Hold CQ references when processing EQ events EQ handlers look up CQs from dev->cq_xa and invoke CQ completion or error callbacks outside the xarray lock. erdma_destroy_cq() can erase the CQ from the xarray and free its queue buffer and doorbell record while a previously scheduled EQ handler is still using the CQ. Add a CQ refcount and take a reference under the xarray lock with refcount_inc_not_zero(). Remove the CQ from the xarray before dropping the destroy-path reference, then wait for in-flight EQ users before releasing CQ resources.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=155055771704f8cbb5c176a4309b7dc30a50450c <c0a83f29a24c7e7f8516630848ef6db4c174deed, >=155055771704f8cbb5c176a4309b7dc30a50450c <05b8ca493dd02319bca93c640b259c2ba51ef321, >=155055771704f8cbb5c176a4309b7dc30a50450c <1fc9c1933959d2776a1ce7bf424251b8b5b586cd, >=155055771704f8cbb5c176a4309b7dc30a50450c <4545f355654d044d35a31cd01cc46f491a8a7c36, >=155055771704f8cbb5c176a4309b7dc30a50450c <610ef81797bb4f709e8675c1d8d093bb9ccdcbd8, >=155055771704f8cbb5c176a4309b7dc30a50450c <98df2aee1459ee1c62c70cbe9b370d2a532aea36, =6.0 | c0a83f29a24c7e7f8516630848ef6db4c174deed, 05b8ca493dd02319bca93c640b259c2ba51ef321, 1fc9c1933959d2776a1ce7bf424251b8b5b586cd, 4545f355654d044d35a31cd01cc46f491a8a7c36, 610ef81797bb4f709e8675c1d8d093bb9ccdcbd8, 98df2aee1459ee1c62c70cbe9b370d2a532aea36 |
| 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, >=6.0.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