CVE-2026-89505: RDMA/uverbs: Guard legacy bundles without method_elm
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/uverbs: Guard legacy bundles without method_elm
The legacy write() path dispatches through a uverbs_api_write_method, but the uverbs_attr_bundle passed to provider code does not have an ioctl method element. If malformed provider input causes the common uverbs validation code to emit an error message, uverbs_get_handler_fn() dereferences the uninitialized method_elm pointer.
Initialize method_elm explicitly for legacy bundles and make uverbs_get_handler_fn() return NULL when no ioctl method is present. The legacy dispatcher continues to use its local write method, while the ioctl path continues to use the registered ioctl handler.
The Linux kernel CVE team has assigned CVE-2026-89505 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 7122ff96068a03595bde2fbafaca82ca2ed8084e and fixed in 7.2.4 with commit edae84e5461749ed9adf9fcf5c6e075381040ac3 Issue introduced in 7.1 with commit 7122ff96068a03595bde2fbafaca82ca2ed8084e and fixed in 7.3-rc1 with commit 60a42d510113f46de47e86a84bf5758597644487
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-89505
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/core/ib_core_uverbs.c
drivers/infiniband/core/uverbs_main.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/edae84e5461749ed9adf9fcf5c6e075381040ac3 https://git.kernel.org/stable/c/60a42d510113f46de47e86a84bf5758597644487