Linux
RDMA/erdma: Hold CQ references when processing EQ events
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 610ef81797bb4f709e8675c1d8d093bb9ccdcbd8
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < c0a83f29a24c7e7f8516630848ef6db4c174deed
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 05b8ca493dd02319bca93c640b259c2ba51ef321
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 1fc9c1933959d2776a1ce7bf424251b8b5b586cd
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 4545f355654d044d35a31cd01cc46f491a8a7c36
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 98df2aee1459ee1c62c70cbe9b370d2a532aea36
Fixed in 610ef81797bb4f709e8675c1d8d093bb9ccdcbd8, c0a83f29a24c7e7f8516630848ef6db4c174deed, 05b8ca493dd02319bca93c640b259c2ba51ef321, 1fc9c1933959d2776a1ce7bf424251b8b5b586cd, 4545f355654d044d35a31cd01cc46f491a8a7c36, 98df2aee1459ee1c62c70cbe9b370d2a532aea36
- 6.0
Fixed in 0, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to 610ef81797bb4f709e8675c1d8d093bb9ccdcbd8 or c0a83f29a24c7e7f8516630848ef6db4c174deed or 05b8ca493dd02319bca93c640b259c2ba51ef321 or 1fc9c1933959d2776a1ce7bf424251b8b5b586cd or 4545f355654d044d35a31cd01cc46f491a8a7c36 or 98df2aee1459ee1c62c70cbe9b370d2a532aea36 or later.
Upgrade Linux to 0 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.