RDMA/core: Clear driver_udata before destroying objects in rdma_core
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
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", so this ends up causing the driver's destroy call to fail.
A similar issue exists in the rereg_mr path when a new MR is created and the old one is destroyed.
Fix this by clearing driver_udata before invoking the driver's destroy method.
| Product | Versions |
|---|---|
| Linux Linux | 0ac8903cbbe618d947b5815d6e0f7b044ee83aa3 to before 9db91db448c23dea4764471ce305299f41f73f08 Affected0ac8903cbbe618d947b5815d6e0f7b044ee83aa3 to before 9f3ec4b8c4fece57789f518a8fd299640cb24504 Affected0ac8903cbbe618d947b5815d6e0f7b044ee83aa3 to before a6f4d3fc198f8ba5fbffb3421b98c889968db7bc Affected0ac8903cbbe618d947b5815d6e0f7b044ee83aa3 to before d37e98844afea39a9614cac0de837701263c90f7 Affected |
| Linux Linux | 5.8 Affectedbefore 5.8 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.