Skip to contentSkip to conversation

CVE-2026-92514: RDMA/erdma: Fix CEQ tasklet use-after-free on removal

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: Fix CEQ tasklet use-after-free on removal

Each CEQ interrupt handler only schedules eqc->tasklet. The tasklet calls erdma_ceq_completion_handler(), which reads the DMA-coherent EQ ring through get_next_valid_eqe() and updates eq->dbrec through notify_eq().

erdma_ceqs_uninit() frees each CEQ IRQ and then destroys its EQ. free_irq() prevents another hard IRQ and waits for an in-flight handler, but it does not drain a tasklet that the handler already scheduled. The tasklet can therefore access eq->qbuf or eq->dbrec after erdma_eq_destroy() frees them.

Clearing ceq_cb->ready does not synchronize with a tasklet that already passed the check at the start of erdma_ceq_completion_handler().

Kill the tasklet after free_irq(), when no handler can schedule it again, and before erdma_ceq_uninit_one() releases the EQ buffers.

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

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

	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 6.1.188 with commit 0e8b78dabb1f156db05ffe74c6eae861167c7c21
	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 6.6.157 with commit 6e129c1310abfa786a510cc63e69c5ef12349048
	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 6.12.110 with commit f738c0a372d36a10dfae6dc357717c13b2aa72f4
	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 6.18.52 with commit a60c36d8d17f1b86705523d5eb6d290df28831e5
	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 7.2.6 with commit 61a25b8d333e1eb2a189881d516f8d5194e26840
	Issue introduced in 6.0 with commit f2a0a630b953451a59a2612ad8c29246638f0a38 and fixed in 7.3-rc1 with commit 0ca79979384f031d710c4b3bae065dcb5d95aca3

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-92514

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

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/0e8b78dabb1f156db05ffe74c6eae861167c7c21
	https://git.kernel.org/stable/c/6e129c1310abfa786a510cc63e69c5ef12349048
	https://git.kernel.org/stable/c/f738c0a372d36a10dfae6dc357717c13b2aa72f4
	https://git.kernel.org/stable/c/a60c36d8d17f1b86705523d5eb6d290df28831e5
	https://git.kernel.org/stable/c/61a25b8d333e1eb2a189881d516f8d5194e26840
	https://git.kernel.org/stable/c/0ca79979384f031d710c4b3bae065dcb5d95aca3