Skip to contentSkip to conversation

CVE-2025-21882: net/mlx5: Fix vport QoS cleanup on error

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 27, 2025

lore
Share & tools
lore
#0 lore raw

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.

The Linux kernel CVE team has assigned CVE-2025-21882 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.13 with commit be034baba83e2a80a0b2c0f24c08547b6eedc79a and fixed in 6.13.6 with commit fead368502bce0e10bea7c0d2895b2fa0c6c10aa
	Issue introduced in 6.13 with commit be034baba83e2a80a0b2c0f24c08547b6eedc79a and fixed in 6.14 with commit 7f3528f7d2f98b70e19a6bb7b130fc82c079ac54

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-21882

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/fead368502bce0e10bea7c0d2895b2fa0c6c10aa
	https://git.kernel.org/stable/c/7f3528f7d2f98b70e19a6bb7b130fc82c079ac54