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 804AF2C21F3 for ; Tue, 23 Dec 2025 13:58:45 +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=1766498325; cv=none; b=SY4pkcy9DMXTXwj8PR4sIb9oweqD0UHo56iy9QQo4lLnubpQGJLM+odn4iPSWJk3uEvV3b47GzmHtbnRDA2yD32lxZ41yn+9TjdwErCmMCE1OrrzaNbD6zrmlMivPzwiDhtvqmTbaHZVzBfmZYCHVwgm4nUtz5ASSPocbrdcayo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766498325; c=relaxed/simple; bh=+GcRiIZJ1BZRwZ1+lZwhlZaePRzX30443gCon3DUjkg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Puk/eeuFibvLYMquK09iV4y1q/JzH+Y6XDovo+ymorFUUCwMNckb01wWnmF/VMj4yOsM6EB2mTNGV1o+OdPdPb35pQn6ecmtKiiqZdYX72Rk766Z19Dio2WsPOIIdKgid8gYoCETv4fwdhVn0JTVrH5g/h8aMn8aySnakAUZV8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UfPBYofA; 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="UfPBYofA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37B6BC116C6; Tue, 23 Dec 2025 13:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766498324; bh=+GcRiIZJ1BZRwZ1+lZwhlZaePRzX30443gCon3DUjkg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=UfPBYofAbu52t8cjKPUJf8WT0sS6BOJU6MibwiJyaPtfhxSfFuVb4cTiCxD5I4YJL TvT+PhVB+umfD/ARjjibSulXQjETBkOddAhBkhF5eBZXS35Jn/CRV9ElVd6j0vr6e5 Qa03ZhFT+8icHJavUtAl/IkWwJOg9hugq7dyqVmU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68338: net: dsa: microchip: Don't free uninitialized ksz_irq Date: Tue, 23 Dec 2025 14:58:32 +0100 Message-ID: <2025122331-CVE-2025-68338-5e65@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=2324; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4BKKxC650N6ItF1TpHO/++qi5q8QKoVRCdn/7XBC5QM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJleC9ilPtQtSb23e61LydkJj1Z8cdQ+ZPZevP1siv3zm cZ3zjLf6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJJLYzzK/P1Nq7+4VtbMb7 81ai2VbpMw4++MMwP9o+Y+GZ4siOuXVyoaIrWtZ66Z6aDgA= 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: dsa: microchip: Don't free uninitialized ksz_irq If something goes wrong at setup, ksz_irq_free() can be called on uninitialized ksz_irq (for example when ksz_ptp_irq_setup() fails). It leads to freeing uninitialized IRQ numbers and/or domains. Use dsa_switch_for_each_user_port_continue_reverse() in the error path to iterate only over the fully initialized ports. The Linux kernel CVE team has assigned CVE-2025-68338 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit cc13ab18b201ab630f03511060ba289b70052959 and fixed in 6.12.61 with commit 9428654c827fa8d38b898135d26d39ee2d544246 Issue introduced in 6.3 with commit cc13ab18b201ab630f03511060ba289b70052959 and fixed in 6.17.11 with commit 32abbcf4379a0f851d7eb9d4389e7bf5c64bf6c0 Issue introduced in 6.3 with commit cc13ab18b201ab630f03511060ba289b70052959 and fixed in 6.18 with commit 25b62cc5b22c45face094ae3e8717258e46d1d19 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-68338 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/dsa/microchip/ksz_common.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/9428654c827fa8d38b898135d26d39ee2d544246 https://git.kernel.org/stable/c/32abbcf4379a0f851d7eb9d4389e7bf5c64bf6c0 https://git.kernel.org/stable/c/25b62cc5b22c45face094ae3e8717258e46d1d19