AZL-117139: CVE-2026-139448 affecting package kernel 6.6.161.1-1
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 in rdma_alloc_abort_uobject().
Event History
Frequently Asked Questions
What conditions are needed to trigger the failure?
The issue occurs when RDMA uobject creation fails while copying user output data after the hardware object has already been created, or in the rereg_mr path when a new memory region is created and the old one is destroyed. In these cases, the driver destroy callback can receive udata from the original creation command.
What is the practical impact of the incorrect udata?
RDMA drivers are expected to reject unexpected udata. Passing data from the wrong command can cause the driver's destroy callback to fail while aborting creation or replacing a memory region.
How is the issue addressed in the resolved kernel code?
The fix clears driver_udata before the driver's destroy method is invoked. This prevents the destroy callback from receiving creation-command data that it should treat as unexpected.