CVE-2026-93277: RDMA/bnxt_re: Validate udata before executing commands
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxt_re: Validate udata before executing commands
The destroy callbacks currently zero the udata output after tearing down driver resources. If the userspace access fails, uverbs preserves the uobject and allows the destroy callback to run again, even though the driver resource has already been freed.
Call ib_no_udata_io() before teardown so udata failures are detected while the resource is still intact, then return success after teardown completes.
As part of this change, move ib_respond_empty_udata() to the start of the create and modify flows. While this is not strictly required for general create flows, as the core layer unwinds uobjects on failure, it is necessary for create AH. In _rdma_create_ah(), the HW object is otherwise leaked.
The Linux kernel CVE team has assigned CVE-2026-93277 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit bed686d8dcd4fbcaa18cf67468caaf8772acfc7a and fixed in 7.2.6 with commit c5643ea4f040acc2f4d1e88f49bd0be51110ff2f Issue introduced in 7.1 with commit bed686d8dcd4fbcaa18cf67468caaf8772acfc7a and fixed in 7.3-rc1 with commit d38c835925d4a3bfdf0a85ff2829ee90c709c561
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-93277
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/bnxt_re/ib_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/c5643ea4f040acc2f4d1e88f49bd0be51110ff2f https://git.kernel.org/stable/c/d38c835925d4a3bfdf0a85ff2829ee90c709c561