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 B4DA6376A03 for ; Sat, 15 Aug 2026 06:26:59 +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=1786775220; cv=none; b=e+3qul2rnJVFRozTvWGv65/Pc+21uNfRXD47q2xKVwlo8Uy31m87oPvGiX+MzRE8Rax77m5hoBFMmrAh31ZkfWAFYceC16OMDXzI1tOVc36k8M5D6Gzzrs6CmsMn0CkQkfme+7lW+mogENlXJhgXi2XtaYvioYQgqlpCixLQHPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775220; c=relaxed/simple; bh=lfxAhP/vS+fr8SGxS4xArON4T31//aFVuK3WYI/J5Bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GLV6VJTTjiEUyCy7zfAGRviUc2U97xW+gvtYaERyu8kfVfGdjBQAa7ZSkBphfOGGv0cGSrLvoJe8C/qJ18OWfxMXIgUuNpiJWeXFjMeLzj4bnOJ+Qwz/f9hmRVhyjn/+NxP9QsQE5f8k3fcIN/4MGHVngc0+80upV9ajh87YXyY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lm83SnWS; 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="lm83SnWS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 184C71F000E9; Sat, 15 Aug 2026 06:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775219; bh=58/mHHrVd6KGb0Yp48O5jvg501dHUbe5H6zy/dfdA2w=; h=From:To:Cc:Subject:Date:Reply-To; b=lm83SnWSy5cit2TEdOIF5ImqWcgFMwaXr6CXNnm8tjcMQVzydFdnO8wLk3waAo9T0 hdlgqqPCWD2WF/mVdbcUS1qRNXEI4s+9Jq6x1Cl7Gh9+FY+YgmLsxSw6me3aJWh6jp /tnJyUoNrvQgVmSER3VqSIYa97yz1qh+y7D7wWTA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72411: net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work Date: Sat, 15 Aug 2026 15:08:10 +0900 Message-ID: <2026081523-CVE-2026-72411-0fd3@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=2794; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LNuSkqkIrUBfMwueTpmtaFZQZtlgm6G1VlwbBwd3bpY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDO/3/H+0YMqtKTu3eK0WVHd/b8kYbVx9YtKduQsZX n25caC9tiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcvErw1yZt/L5ZhIf6hkP TNi+/qd96G23acUMC06yFblmMe89WzZjyvmNhqt6u7guCwMA 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: mxl862xx: fix use-after-free of DSA ports in crc_err_work Upon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports and closes the CPU port conduits: dsa_switch_for_each_cpu_port(dp, priv->ds) dev_close(dp->conduit); mxl862xx_remove() unregisters the switch before cancelling this work: set_bit(MXL862XX_FLAG_WORK_STOPPED, &priv->flags); cancel_delayed_work_sync(&priv->stats_work); dsa_unregister_switch(ds); mxl862xx_host_shutdown(priv); dsa_unregister_switch() frees the dsa_port objects. If a CRC error schedules the work during teardown it can run after the ports have been freed and dereference freed memory. Guard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set before dsa_unregister_switch(). DSA tears the ports down under rtnl_lock(), so checking the flag under rtnl_lock() means the work either runs before teardown and sees valid ports, or runs afterwards, observes the flag and skips the walk. This mirrors the host_flood_work handler, which skips torn-down ports under rtnl_lock(). The Linux kernel CVE team has assigned CVE-2026-72411 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit a319d0c8c8cede3b63538c9f111f84651d078bf6 and fixed in 7.1.5 with commit cf52622fbc274eb4ca9a2066b258da2ae3dc7406 Issue introduced in 7.1 with commit a319d0c8c8cede3b63538c9f111f84651d078bf6 and fixed in 7.2-rc1 with commit bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83 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-72411 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/mxl862xx/mxl862xx-host.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/cf52622fbc274eb4ca9a2066b258da2ae3dc7406 https://git.kernel.org/stable/c/bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83