Skip to contentSkip to conversation

CVE-2026-100075: RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

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/srpt: Fix srpt_alloc_rw_ctxs() unwind counters

When srpt_alloc_rw_ctxs() fails partway through a multi-buffer indirect descriptor, the unwind path destroys RDMA contexts but leaves stale n_rw_ctx and n_rdma values (and a dangling rw_ctxs pointer). Later sq_wr_avail accounting in srpt_queue_response() or srpt_write_pending() can then subtract the wrong number of send queue credits.

Reset the counters and clear rw_ctxs after freeing the heap allocation before returning an error.

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

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

	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 5.10.270 with commit af00051dbc9f467d4840ec709680660a3f8990fa
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 5.15.221 with commit 717ab4d0614e9446bf8e2de6229464499e4008d6
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 6.1.188 with commit f1f2252da52cdda912da9993f39f58783b01b38f
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 6.6.157 with commit f65f45dfa1e6e2eaa9e11c8b8ce8857799cb189d
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 6.12.110 with commit be1478849e1abb1e12dc12e14cdbf800cc6fa99a
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 6.18.52 with commit af073bd245180393bcb15d33d3990a6bdc32593a
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 7.2.6 with commit bd02d644bd19a2795c018635d273d91e45d2bb95
	Issue introduced in 4.7 with commit b99f8e4d7bcd3bfbb3cd965918523299370d0cb2 and fixed in 7.3-rc1 with commit b38f98e176050850f41bb6415f3a71400056623e

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

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/ulp/srpt/ib_srpt.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/af00051dbc9f467d4840ec709680660a3f8990fa
	https://git.kernel.org/stable/c/717ab4d0614e9446bf8e2de6229464499e4008d6
	https://git.kernel.org/stable/c/f1f2252da52cdda912da9993f39f58783b01b38f
	https://git.kernel.org/stable/c/f65f45dfa1e6e2eaa9e11c8b8ce8857799cb189d
	https://git.kernel.org/stable/c/be1478849e1abb1e12dc12e14cdbf800cc6fa99a
	https://git.kernel.org/stable/c/af073bd245180393bcb15d33d3990a6bdc32593a
	https://git.kernel.org/stable/c/bd02d644bd19a2795c018635d273d91e45d2bb95
	https://git.kernel.org/stable/c/b38f98e176050850f41bb6415f3a71400056623e