Skip to contentSkip to conversation

CVE-2026-90309: RDMA/erdma: Hold CQ references when processing EQ events

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-90309 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.1.188 with commit 610ef81797bb4f709e8675c1d8d093bb9ccdcbd8
	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.6.157 with commit c0a83f29a24c7e7f8516630848ef6db4c174deed
	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.12.110 with commit 05b8ca493dd02319bca93c640b259c2ba51ef321
	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.18.52 with commit 1fc9c1933959d2776a1ce7bf424251b8b5b586cd
	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 7.2.6 with commit 4545f355654d044d35a31cd01cc46f491a8a7c36
	Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 7.3-rc1 with commit 98df2aee1459ee1c62c70cbe9b370d2a532aea36

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90309

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/infiniband/hw/erdma/erdma_eq.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/610ef81797bb4f709e8675c1d8d093bb9ccdcbd8
	https://git.kernel.org/stable/c/c0a83f29a24c7e7f8516630848ef6db4c174deed
	https://git.kernel.org/stable/c/05b8ca493dd02319bca93c640b259c2ba51ef321
	https://git.kernel.org/stable/c/1fc9c1933959d2776a1ce7bf424251b8b5b586cd
	https://git.kernel.org/stable/c/4545f355654d044d35a31cd01cc46f491a8a7c36
	https://git.kernel.org/stable/c/98df2aee1459ee1c62c70cbe9b370d2a532aea36