CVE-2026-139448: RDMA/core: Clear driver_udata before destroying objects in rdma_core
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Clear driverudata before destroying objects in rdmacore
When uobject creation fails while copying user output data (i.e., after the HW object has been created), it calls rdmaallocabortuobject() with hwobjvalid=true which then invokes the object's destroy callback, but passes the uverbsattrbundle from the original creation command.
The issue is that drivers are expected to validate the udata and return an error if there's unexpected content, and data from the wrong command counts as "unexpected content", so this ends up causing the driver's destroy call to fail.
A similar issue exists in the reregmr path when a new MR is created and the old one is destroyed.
Fix this by clearing driverudata before invoking the driver's destroy method.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Clear driver_udata before invoking the driver's destroy method when aborting uobject creation.