RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
- 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/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
create_resource_common() inserted the resource into the radix tree before its initialization was complete. A firmware EQE in that window finds a zero refcount_t and calls refcount_inc() on it; the refcount API treats this as a use-after-free, saturates the counter, and permanently breaks the resource's lifecycle tracking.
Move the initialization before the radix_tree_insert().
| Product | Versions |
|---|---|
| Linux Linux | e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before d3d3ad4d0aa3aa3a204651ae47efa65afa45daae Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before a2fe324cdb430cd23d41948488b65a8529fb9ee1 Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before 69bcd39f042aab1b8b794c50f3affd038cee5056 Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before e147bdda7834ed4188c84c5ead9f417faf8fa698 Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before 3dfebc28751fde6f3be0ddc1c1bcb22b96a72360 Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before bca1076b86026bc6445fd97a1c5c1b86210c510e Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before 674005307775811354545959b2d614b9095deb59 Affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to before 829a0e65deff3f826a7870a52404aeaf1a3fec3f Affected |
| Linux Linux | 3.11 Affectedbefore 3.11 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 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
- https://git.kernel.org/stable/c/d3d3ad4d0aa3aa3a204651ae47efa65afa45daae
- https://git.kernel.org/stable/c/a2fe324cdb430cd23d41948488b65a8529fb9ee1
- https://git.kernel.org/stable/c/69bcd39f042aab1b8b794c50f3affd038cee5056
- https://git.kernel.org/stable/c/e147bdda7834ed4188c84c5ead9f417faf8fa698
- https://git.kernel.org/stable/c/3dfebc28751fde6f3be0ddc1c1bcb22b96a72360
- https://git.kernel.org/stable/c/bca1076b86026bc6445fd97a1c5c1b86210c510e
- https://git.kernel.org/stable/c/674005307775811354545959b2d614b9095deb59
- https://git.kernel.org/stable/c/829a0e65deff3f826a7870a52404aeaf1a3fec3f
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.