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().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < d3d3ad4d0aa3aa3a204651ae47efa65afa45daaeaffectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < a2fe324cdb430cd23d41948488b65a8529fb9ee1affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < 69bcd39f042aab1b8b794c50f3affd038cee5056affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < e147bdda7834ed4188c84c5ead9f417faf8fa698affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < 3dfebc28751fde6f3be0ddc1c1bcb22b96a72360affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < bca1076b86026bc6445fd97a1c5c1b86210c510eaffectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < 674005307775811354545959b2d614b9095deb59affectede126ba97dba9edeb6fafa3665b5f8497fc9cdf8c to < 829a0e65deff3f826a7870a52404aeaf1a3fec3faffected
Linux Linux
Default version status: affected
3.11affected0 to < 3.11unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
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 ↗