Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E43482185AB for ; Thu, 27 Mar 2025 14:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743087523; cv=none; b=XgFuMczj4MxQn4Wm1htMLjB1ReXoEj9k8pYioKFLYrNU1o4WKQhDixrPbzkLpEcFMNhvJb+91x0JUWCvnBVy4RwU04tCZtax2Zw5bQMdTht+E/SRh9YJFV1qCxBC75tU3PkF2Z+yXe3mMpwdKr7uhFwbYid63o134+Bflt0Ex7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743087523; c=relaxed/simple; bh=bD0B/LdcV5KIkAojpDR/dBFwq1fUsLlT/qRRfoAmXRI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sOZ+gskTYZyAJxLZHIz7xQRM9VWSsFNPgJcHLgnLjfULrgj3ivctGdF2eck2zKkPFsV1IIQPdHByDMrQQ2N2XeoP2TJWbluoNcgAPud8z24WtfT6cPEjJnaLSRHEBJxHCGBhzbE/c4Z79Pk10MBhNkssoGR/clnO+coKLwTwNC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RPM7Lq5u; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RPM7Lq5u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A580C4CEDD; Thu, 27 Mar 2025 14:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743087522; bh=bD0B/LdcV5KIkAojpDR/dBFwq1fUsLlT/qRRfoAmXRI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RPM7Lq5uVN6vokxxg7d7t+bI3IyTzB65r/GaAvhsAgKgUVbic5/DyO0jyuzi0LN+I 3DSLRlZ9SpmUy1Q3JSFRooy3Eldq5BWonhKZczR/cwTLm31zLPsDElncVUMUyK68mr pK/h+Lw0OV9q7gPY6VfpdIHFuTE84WSbl551grJ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21882: net/mlx5: Fix vport QoS cleanup on error Date: Thu, 27 Mar 2025 15:58:16 +0100 Message-ID: <2025032712-CVE-2025-21882-cc4d@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1935; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bD0B/LdcV5KIkAojpDR/dBFwq1fUsLlT/qRRfoAmXRI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP01tiWRn+uy9YGnvcasrb06dK3hwR+Cak/N9u6qYgI XZz3stTO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiF/4xzI/33tUUIKrLy/bt OPuj3eliWn/mRzPMlVSVe2Ysm5KwarWXd6oyt6Jx/Us/AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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