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 75C49283FC3 for ; Tue, 13 Jan 2026 15:31:40 +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=1768318300; cv=none; b=IzvZnX/1tQgWiS7PuD/23uhm9EkPzmOE2SkEscSLD/10izawTgrMP+8x7vBcDRM+BBfN+NR56Hc/J3XOhGBPjGGwUJgeF0FRK5jC3R+zbsNat89HDEKg9aclpGkkpRJzvuZH0L9LfqoWYnSf69joUZCq5YpJLTQeltPucP73kL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318300; c=relaxed/simple; bh=ylYbUt68RQdW8EBgz43Rc1GKYxj5ZbtwQW8EjGj6kGo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VYmWWNzbqiZNrLPD2CXcZAnm7NoQT5Pu1bHXoEvahGezn/U933eCeWqV6DL9JIw7mq5AH/+ZidO/dmxDKiCUvk4Bc07v5oUA+sbZZ6p2hIXS33z1RsaQQQ1032gxZDIPJDfiGW3gB8jZN6cic3cc4jhzKDku3ro4NiqbqCs9lcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ka5SA+eo; 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="Ka5SA+eo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBFB1C19422; Tue, 13 Jan 2026 15:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318300; bh=ylYbUt68RQdW8EBgz43Rc1GKYxj5ZbtwQW8EjGj6kGo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ka5SA+eo+GoV/hGsYCtTJzNpXQRyOSiiYr643hKjlXF2y1+Pd7zpEklsvedKdC/yz Z85ePTsVWY9cxpydRcsj5OAGhNjNBimYHMSOP5H8VlxxGCGz0xbqUthJ+LSM8yMhck CoV172/UzLW1txdJXH0exeHrVtAu6YDurU/Y+7+M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68790: net/mlx5: Fix double unregister of HCA_PORTS component Date: Tue, 13 Jan 2026 16:29:16 +0100 Message-ID: <2026011304-CVE-2025-68790-6166@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=4248; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mCaNrLDj/zRUhj9h84gZ9XqkHfnTohUGrL2rTXq119Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKQf8Vi3MO/3xXF/qXQm/ZeXOT1VWW86V3lHutmjPx gOLeJ6ZdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEdooxzFNJlWksDedmaL17 Sdv5UKmVxDL/bQwL9v9m9dGWnPHu46qtW1gftt5QjwrcBgA= 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: net/mlx5: Fix double unregister of HCA_PORTS component Clear hca_devcom_comp in device's private data after unregistering it in LAG teardown. Otherwise a slightly lagging second pass through mlx5_unload_one() might try to unregister it again and trip over use-after-free. On s390 almost all PCI level recovery events trigger two passes through mxl5_unload_one() - one through the poll_health() method and one through mlx5_pci_err_detected() as callback from generic PCI error recovery. While testing PCI error recovery paths with more kernel debug features enabled, this issue reproducibly led to kernel panics with the following call chain: Unable to handle kernel pointer dereference in virtual kernel address space Failing address: 6b6b6b6b6b6b6000 TEID: 6b6b6b6b6b6b6803 ESOP-2 FSI Fault in home space mode while using kernel ASCE. AS:00000000705c4007 R3:0000000000000024 Oops: 0038 ilc:3 [#1]SMP CPU: 14 UID: 0 PID: 156 Comm: kmcheck Kdump: loaded Not tainted 6.18.0-20251130.rc7.git0.16131a59cab1.300.fc43.s390x+debug #1 PREEMPT Krnl PSW : 0404e00180000000 0000020fc86aa1dc (__lock_acquire+0x5c/0x15f0) R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 RI:0 EA:3 Krnl GPRS: 0000000000000000 0000020f00000001 6b6b6b6b6b6b6c33 0000000000000000 0000000000000000 0000000000000000 0000000000000001 0000000000000000 0000000000000000 0000020fca28b820 0000000000000000 0000010a1ced8100 0000010a1ced8100 0000020fc9775068 0000018fce14f8b8 0000018fce14f7f8 Krnl Code: 0000020fc86aa1cc: e3b003400004 lg %r11,832 0000020fc86aa1d2: a7840211 brc 8,0000020fc86aa5f4 *0000020fc86aa1d6: c09000df0b25 larl %r9,0000020fca28b820 >0000020fc86aa1dc: d50790002000 clc 0(8,%r9),0(%r2) 0000020fc86aa1e2: a7840209 brc 8,0000020fc86aa5f4 0000020fc86aa1e6: c0e001100401 larl %r14,0000020fca8aa9e8 0000020fc86aa1ec: c01000e25a00 larl %r1,0000020fca2f55ec 0000020fc86aa1f2: a7eb00e8 aghi %r14,232 Call Trace: __lock_acquire+0x5c/0x15f0 lock_acquire.part.0+0xf8/0x270 lock_acquire+0xb0/0x1b0 down_write+0x5a/0x250 mlx5_detach_device+0x42/0x110 [mlx5_core] mlx5_unload_one_devl_locked+0x50/0xc0 [mlx5_core] mlx5_unload_one+0x42/0x60 [mlx5_core] mlx5_pci_err_detected+0x94/0x150 [mlx5_core] zpci_event_attempt_error_recovery+0xcc/0x388 The Linux kernel CVE team has assigned CVE-2025-68790 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 5a977b5833b7a261bfa6094595ffa73c1071588c and fixed in 6.18.3 with commit d2495f529d60e8e8c43e6ad524089c38b8be7bc4 Issue introduced in 6.18 with commit 5a977b5833b7a261bfa6094595ffa73c1071588c and fixed in 6.19-rc2 with commit 6a107cfe9c99a079e578a4c5eb70038101a3599f 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-68790 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/lag/lag.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/d2495f529d60e8e8c43e6ad524089c38b8be7bc4 https://git.kernel.org/stable/c/6a107cfe9c99a079e578a4c5eb70038101a3599f