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 6682E2E542B for ; Tue, 7 Oct 2025 15:22:24 +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=1759850544; cv=none; b=sVOaWnBG0Ljiw98y0B9dv9CPR9gz6Grzs0gEnvQ2g0nR5oKgidgrPLo8TuK67WMaud8OI4b/S0WCI2SWVJUEZU6hMEVHgkmChIDWZKjVCZee/WB+p8/2B4ttPApzL6ZmUWBrdSgR6JgU4Fdz0nI1aUmVR2qGPqReWsgwD7qJ9Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850544; c=relaxed/simple; bh=tl5fEd5x8clgjraqKQLkd2ixMR2kOqk9HG0kObSyENk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mSBB6kF3QDgeGy+D4cVE5gK+0hXuWB/c0ESmdm6vkAnuX83iLZ4I4Zxar8UwRB36HgX9wj7kia1ymzDdTiWE2VR5X8bKWgKe0O/idhO5puY+Kf1m2T6w7vw1jrpVNDs4/YX45da2Y6w06veKcgLsp0VQwxr9xHg5PH9Ac/2tN8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d26VKQf2; 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="d26VKQf2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDAF6C4CEF1; Tue, 7 Oct 2025 15:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850544; bh=tl5fEd5x8clgjraqKQLkd2ixMR2kOqk9HG0kObSyENk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d26VKQf26+CiElX3yxw0xaMqX3CCrh5pe9M2Uc4ucMM9o//6G3zN8+E3MGd19Q1Ds GJvvhwr8Fzq/Gt0Dz2RwiMjeS30KyYdw2QEvr5uZFXq9vTjP8vJtjLAVaSYC/jsQXF aBTpax4AiT7jfp0lux9DuGutEN38ST2ZC+ULycVw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53638: octeon_ep: cancel queued works in probe error path Date: Tue, 7 Oct 2025 17:19:43 +0200 Message-ID: <2025100715-CVE-2023-53638-ded7@gregkh> X-Mailer: git-send-email 2.51.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=2341; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QMuqMn45qF2pK+ZzYBOqCGsbyL5bskfp5wfP68X6q6k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9YvtLN9Ke9kvuR6edZhN0rKV27JcaI3P9dm/g3Mq+ uU63hp1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQuP2ZYcOX07lbfDU+qpjbO kph3ozFke+HHNob5oadmLH6fvSJov3ToX50v55wW3J10AgA= 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: octeon_ep: cancel queued works in probe error path If it fails to get the devices's MAC address, octep_probe exits while leaving the delayed work intr_poll_task queued. When the work later runs, it's a use after free. Move the cancelation of intr_poll_task from octep_remove into octep_device_cleanup. This does not change anything in the octep_remove flow, but octep_device_cleanup is called also in the octep_probe error path, where the cancelation is needed. Note that the cancelation of ctrl_mbox_task has to follow intr_poll_task's, because the ctrl_mbox_task may be queued by intr_poll_task. The Linux kernel CVE team has assigned CVE-2023-53638 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 24d4333233b378114106a1327d3d635a004f4387 and fixed in 6.4.12 with commit 62312e2f6466b5f0a120542a38b410d88a34ed00 Issue introduced in 6.4 with commit 24d4333233b378114106a1327d3d635a004f4387 and fixed in 6.5 with commit 758c91078165ae641b698750a72eafe7968b3756 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-53638 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/marvell/octeon_ep/octep_main.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/62312e2f6466b5f0a120542a38b410d88a34ed00 https://git.kernel.org/stable/c/758c91078165ae641b698750a72eafe7968b3756