CVE-2021-47212
kernel: net/mlx5: Update error handler for UCTX and UMEM
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 10, 2024
Updated · November 21, 2025
Description
A vulnerability was found in the Linux kernel, affecting the Mellanox MLX5 driver. This issue involves improper error handling in the UCTX (user context) and UMEM (user memory) operations. When the system executes a destroy command during a fast unload flow, it should return a success code (MLX5_CMD_STAT_OK), but in the affected versions, it incorrectly returned an error code (EIO), causing issues in releasing user memory and removing context in the system. This error handling flaw could lead to system instability during device removal or context destruction in the kernel's Infiniband stack.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CWE-99 · Improper Control of Resource Identifiers ('Resource Injection')