Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 895B6489FA4 for ; Fri, 25 Sep 2026 10:32:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332374; cv=none; b=rYGofXzVpSmZaf9X4uiIbYVAfn0GKqKqru8RJXiijjnH+ifEa37RKaISzal5oGr3Ee0xKsGcXrl0J3y2bKxY7nCSJc+/3GpPy37W0W24ENGgUKyUqEkW/g4zexy1kyLfvcTjHyEYBiKB/TFHcyvgI4F957Ro9yoVJvt7Ed6iMNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332374; c=relaxed/simple; bh=IkyepZUfRdm5dFZ0r6bS9ZQR4F29LnZCFXww160K8RI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GdIkpT2i7hYZktGiwU1ht118f6wUWXwCV0eU7HQkZSFMvFDv0bPiz682MBtftMrwpkIXGVic1xoaiZbbhIx44TJPDEjI65xG3TLnEP+WNziDG5tLr0zL9+nK78nGoKYMEGhXNsMs5IdsEyXp/QMY8ZIigw2kY4YAhnjvexltYCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gOaI/Sz8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gOaI/Sz8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E52D81F000FF; Fri, 25 Sep 2026 10:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332373; bh=qZcalSRsraGYoMJ0H9WNVGz7AGgB2tnrED9wSnA+k/A=; h=From:To:Cc:Subject:Date:Reply-To; b=gOaI/Sz8QPCK17oFx1rSVP2lXXJLwRxAU2L6YXCfSocnKImjDukruEpfpCKznM4Mw xsNr8UInAPSVGbuKQd0czloDexwG+/88hpz1sbpPHwcK3t3Rhp6mIkXXJx+/SHAcQA TffGCIGJ1NsMCr8ahzlIyvKZKh6hXDnpa+07NdjM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98015: net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put Date: Fri, 25 Sep 2026 12:25:17 +0200 Message-ID: <2026092525-CVE-2026-98015-2a31@gregkh> X-Mailer: git-send-email 2.55.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=2869; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=czPW/J52IS+x+UKJSnXskF+RySiKleTSNeslH2VllWI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvBNnH2Uu7bp06aDslO1hSsxPy1jnbl1iLbpRhfW7u nypzp9JHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxlkM81RKavc3fj3um7Om 8n7/tC5DpWvO3QzzPSt1L6aslfVXvpl5LsjhT1zMH2Z1AA== 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: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put In mlx5_eswitch_termtbl_put(), the zero-ref cleanup check reads tt->ref_count after termtbl_mutex has been released. Two concurrent callers on the same mlx5_termtbl_handle race: one decrements ref_count to zero, removes the hash entry, and calls kfree(tt) while the other has already dropped the mutex and is about to evaluate if (!tt->ref_count), producing a use-after-free. Fix this by capturing the result of the decrement into a stack-local last variable before dropping the mutex. The cleanup decision is now made entirely under termtbl_mutex, and tt is not touched after kfree. The Linux kernel CVE team has assigned CVE-2026-98015 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 10caabdaad5ace85577a453da97d1f8d3b944427 and fixed in 6.12.111 with commit 304ea40ef4561671503c36e47da44a0a31b71e36 Issue introduced in 5.3 with commit 10caabdaad5ace85577a453da97d1f8d3b944427 and fixed in 6.18.53 with commit e393789e92310d7c66f57c876101779c90816a12 Issue introduced in 5.3 with commit 10caabdaad5ace85577a453da97d1f8d3b944427 and fixed in 7.2.7 with commit 18b2969073879b9cce24e1a78b118bdad54518d1 Issue introduced in 5.3 with commit 10caabdaad5ace85577a453da97d1f8d3b944427 and fixed in 7.3-rc3 with commit 7ee07f601f8f507c9faf25c68a49396ab8950596 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-2026-98015 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/eswitch_offloads_termtbl.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/304ea40ef4561671503c36e47da44a0a31b71e36 https://git.kernel.org/stable/c/e393789e92310d7c66f57c876101779c90816a12 https://git.kernel.org/stable/c/18b2969073879b9cce24e1a78b118bdad54518d1 https://git.kernel.org/stable/c/7ee07f601f8f507c9faf25c68a49396ab8950596