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 A2145316919 for ; Wed, 24 Dec 2025 10:58:41 +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=1766573921; cv=none; b=UvZMxi3dtJvfMntvFqv3DWMnh7ewkfgkuHIT5GDix2UmBNwGabDFBcXBIDmEQNA1mB3krGsVskHYX939RbWF9zXp1+OUSpS5TvJSiCPxAhLxwbxPKtqVkqF5WqL/ZNvHa7VPSNrWOQOwJvp5Ptba2V35wZ25J5ZtKMuf8lTjBmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573921; c=relaxed/simple; bh=YV8f4+5gKs02ZgbccyhjOxidhY9Vq6MCjz6Z2X62QuI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SEov+NxTGIggjgMf62uwF9F/OTdTTxdIFqCVQBQVuamOs3ovq6kg//PDTDtUiJUsB9l1hGcFeWPqkV5IEUjcLcUtabbd6QXgustYBW3DJANoMpVHf0twGRq7rWQMX1sybA3ysaJyylDCfvb2t/BOcoY/OtW7x7WVT7knO2ytY4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rgzw8hcL; 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="rgzw8hcL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23451C4CEFB; Wed, 24 Dec 2025 10:58:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573921; bh=YV8f4+5gKs02ZgbccyhjOxidhY9Vq6MCjz6Z2X62QuI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rgzw8hcLeUGrb0UJoZ00wLaW3PBaDo/EHWUrGxkWrsiqaKr1ErLjKJU87ymXB4k0h uruO1c0uvGk1dGGAZr254DoL1foiX3JPkNraQq4D4NuyWSG84afPylJnwZ+1I5uf8n YvE8JyOREfXqCGs8XZvYjCAl4JttWEPKDQHjda1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54015: net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device Date: Wed, 24 Dec 2025 11:56:59 +0100 Message-ID: <2025122431-CVE-2023-54015-13a3@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=2979; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gP4CvbFssZ+sStn0rUZ0KEm1w+5Pp17RND6QFr61ahw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex+5/Pr/wm1H/T6vOVQGHllecv/N7iQSL8otF0lnzW Y7xbkvK74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJBBsxzOHWfnE4OWm9dO56 h9Uxq7b1uRZPimCYKzv70K1lfiUtrZaFSe6f2lsnnv5rDQA= 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: Devcom, fix error flow in mlx5_devcom_register_device In case devcom allocation is failed, mlx5 is always freeing the priv. However, this priv might have been allocated by a different thread, and freeing it might lead to use-after-free bugs. Fix it by freeing the priv only in case it was allocated by the running thread. The Linux kernel CVE team has assigned CVE-2023-54015 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 5.4.244 with commit 3dfc1004d9afbf689087ae1eafd88f55481984c7 Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 5.10.181 with commit d4d10a6df1529b3f446cdada5c25e065f4712756 Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 5.15.114 with commit 1e755065368000205e6683fa924b2654e99f573b Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 6.1.31 with commit eaa365c10459052cbe3e44caa4ad760cb93bd435 Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 6.3.5 with commit a3a516caef2c5be2f4d171890a8b3415bfab4e5e Issue introduced in 5.0 with commit fadd59fc50d010145f251db583c7ccef37393d19 and fixed in 6.4 with commit af87194352cad882d787d06fb7efa714acd95427 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-2023-54015 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/lib/devcom.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/3dfc1004d9afbf689087ae1eafd88f55481984c7 https://git.kernel.org/stable/c/d4d10a6df1529b3f446cdada5c25e065f4712756 https://git.kernel.org/stable/c/1e755065368000205e6683fa924b2654e99f573b https://git.kernel.org/stable/c/eaa365c10459052cbe3e44caa4ad760cb93bd435 https://git.kernel.org/stable/c/a3a516caef2c5be2f4d171890a8b3415bfab4e5e https://git.kernel.org/stable/c/af87194352cad882d787d06fb7efa714acd95427