Vulnerability record
RDMA/core: Clear driver_udata before destroying objects in rdma_core
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Clear driver_udata before destroying objects in rdma_core
When uobject creation fails while copying user output data (i.e., after the HW object has been created), it calls rdma_alloc_abort_uobject() with hw_obj_valid=true which then invokes the object's destroy callback, but passes the uverbs_attr_bundle 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",…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources