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 403FD3AD470 for ; Tue, 16 Dec 2025 13:54:49 +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=1765893290; cv=none; b=gl7dYwTlE25Yxf8EGVnl41CB4TqSNF7QyIkw7r4LE6IQgEqMudVsCLz4F60HpYGZr6qNue1WE637hjkTF1AGG7yIwF78SrgkT2Ci1UxlAtwWdT87ExOOC4QTxGPSr3b5qQTrbfaetkQJ16SdLjRy1P3Y5VCNbUdoZfAs3fZ6l9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893290; c=relaxed/simple; bh=fzg8dfiii7JI3pP+pdwAo1QAV/rCRgD6i9morXYuxXs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nMr/t7XHgJvfwyPGcKgOI2R0x7e9uTtG71EOQL0FZWNpsvqLDLkfgCML2oZ4Eob2F7+1ImjeR8V4yQGHgdYINIfRZdlyyZY+RhoRKnzqJ7Q2DsVqiOEX9QD7AArG6/uEgcERqQHwEM5hlb24T4eUIriwLd9X73Y51GNv978b70Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=adu3KaZw; 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="adu3KaZw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51E01C4CEF1; Tue, 16 Dec 2025 13:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765893289; bh=fzg8dfiii7JI3pP+pdwAo1QAV/rCRgD6i9morXYuxXs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=adu3KaZwYHJqNKmIOCN7XbqpMBHxszHRxWEpvL7nAdQzqlgRnJz//gA9nQO17BsEz iGrJiCDZBVBj9DmpvFazoIO35/cunM9hiyPMODLjqbd/qtU+x1r8QPCFyIIJSURf4a dCfmxxK414CK+uR+cCHyPyjLsfW9TsowhG0P875Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68209: mlx5: Fix default values in create CQ Date: Tue, 16 Dec 2025 14:54:38 +0100 Message-ID: <2025121633-CVE-2025-68209-2e49@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3384; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bsHZE+n57geyYtIO2FtXE+njnDX+Ymz7KjyR7LLcJpI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOKTM3GL86pnJmpsQEzxOb1rF93/0jXdZjnSVnm03lj wPzNM4e7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTI9mmGf49q/ll4/B7tWB 0szLFV8bf59pqMuwoPX3klvv3Kekv5M/F32UscpVXOIFOwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mlx5: Fix default values in create CQ Currently, CQs without a completion function are assigned the mlx5_add_cq_to_tasklet function by default. This is problematic since only user CQs created through the mlx5_ib driver are intended to use this function. Additionally, all CQs that will use doorbells instead of polling for completions must call mlx5_cq_arm. However, the default CQ creation flow leaves a valid value in the CQ's arm_db field, allowing FW to send interrupts to polling-only CQs in certain corner cases. These two factors would allow a polling-only kernel CQ to be triggered by an EQ interrupt and call a completion function intended only for user CQs, causing a null pointer exception. Some areas in the driver have prevented this issue with one-off fixes but did not address the root cause. This patch fixes the described issue by adding defaults to the create CQ flow. It adds a default dummy completion function to protect against null pointer exceptions, and it sets an invalid command sequence number by default in kernel CQs to prevent the FW from sending an interrupt to the CQ until it is armed. User CQs are responsible for their own initialization values. Callers of mlx5_core_create_cq are responsible for changing the completion function and arming the CQ per their needs. The Linux kernel CVE team has assigned CVE-2025-68209 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit cdd04f4d4d71cbf93d0d9abe63bc838f47c467fa and fixed in 6.17.9 with commit 08469f5393a1a39f26a6e2eb2e8c33187665c1f4 Issue introduced in 6.0 with commit cdd04f4d4d71cbf93d0d9abe63bc838f47c467fa and fixed in 6.18 with commit e5eba42f01340f73888dfe560be2806057c25913 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-68209 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/infiniband/hw/mlx5/cq.c drivers/net/ethernet/mellanox/mlx5/core/cq.c drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_send.c drivers/vdpa/mlx5/net/mlx5_vnet.c include/linux/mlx5/cq.h 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/08469f5393a1a39f26a6e2eb2e8c33187665c1f4 https://git.kernel.org/stable/c/e5eba42f01340f73888dfe560be2806057c25913