CVE-2025-21882
kernel: net/mlx5: Fix vport QoS cleanup on error
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 27, 2025
Updated · October 17, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Fix vport QoS cleanup on error
When enabling vport QoS fails, the scheduling node was never freed, causing a leak.
Add the missing free and reset the vport scheduling node pointer to NULL.
Statement
A low-impact memory leak flaw was found in the Linux kernel's mlx5 core driver (drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c) in the SR-IOV e-switch vport QoS handling. When enabling vport QoS fails, the allocated vport scheduling element (scheduling node) was never freed, leaking kernel memory on each failed enablement. A local user with the privileges required to configure vport QoS could repeatedly trigger this failing path to gradually exhaust kernel memory, resulting in resource exhaustion and a denial of service, with no impact on confidentiality or integrity. Red Hat Product Security rates this flaw Low severity (CVSS 3.3, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L) because exploitation requires local privileged access, the leak only occurs in an error path, and the impact is limited to availability. This differs significantly from the upstream CVEORG CVSS score of 7.8 (Important, reflecting high confidentiality, integrity, and availability impact), which does not correspond to the nature of this error-path memory leak, and from the NIST score of 5.5 (Moderate), which assumes high availability impact. All Red Hat Enterprise Linux and Red Hat In-Vehicle OS kernel and kernel-rt streams are not affected because the vulnerable code, introduced upstream in Linux kernel 6.13, is not present in the shipped Red Hat kernels, so no update is required for Red Hat customers.
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 · 3.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CWE-772 · Missing Release of Resource after Effective Lifetime