Skip to contentSkip to conversation

CVE-2026-46127: RDMA/ocrdma: Don't NULL deref uctx on errors in ocrdma_copy_pd_uresp()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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/ocrdma: Don't NULL deref uctx on errors in ocrdma_copy_pd_uresp()

Sashiko points out that pd->uctx isn't initialized until late in the function so all these error flow references are NULL and will crash. Use the uctx that isn't NULL.

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

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

	Issue introduced in 3.5 with commit fe2caefcdf5869f308c102e3d64d40683bfad711 and fixed in 6.6.140 with commit e01a957561f663d3b68d2fd233a4502e3367efcd
	Issue introduced in 3.5 with commit fe2caefcdf5869f308c102e3d64d40683bfad711 and fixed in 6.12.88 with commit 75fc130664ae324e7b2f9ad3630e0f175e9ca6c8
	Issue introduced in 3.5 with commit fe2caefcdf5869f308c102e3d64d40683bfad711 and fixed in 6.18.30 with commit 8832626a483439e207734e027afff322ccdf726e
	Issue introduced in 3.5 with commit fe2caefcdf5869f308c102e3d64d40683bfad711 and fixed in 7.0.7 with commit ec44c00a4fe1327efa35083f98b39c01cb535a51
	Issue introduced in 3.5 with commit fe2caefcdf5869f308c102e3d64d40683bfad711 and fixed in 7.1-rc3 with commit 34fbf48cf3b410d2a6e8c586fa952a36331ca5ba

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

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/ocrdma/ocrdma_verbs.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/e01a957561f663d3b68d2fd233a4502e3367efcd
	https://git.kernel.org/stable/c/75fc130664ae324e7b2f9ad3630e0f175e9ca6c8
	https://git.kernel.org/stable/c/8832626a483439e207734e027afff322ccdf726e
	https://git.kernel.org/stable/c/ec44c00a4fe1327efa35083f98b39c01cb535a51
	https://git.kernel.org/stable/c/34fbf48cf3b410d2a6e8c586fa952a36331ca5ba