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 6807A42B74B for ; Wed, 6 May 2026 11:33:04 +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=1778067184; cv=none; b=c0ojJ7JH6s0RtHtU6CH5OlHMHauy9HjIT2YC6+tP4eaOwRNDvaWt4Zh64NaLEut4IkHb4u9pcNW2ozAdpCkJMwjejiGVIXm2bIpzWTMkgeFUUgQGHmiU2192bJtiVJheyXfANvd01IQdPExWGO/BEDul685uLTSYZCnXrlVpS4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067184; c=relaxed/simple; bh=bakTgXEUGEpyadTzuB0JeO+uCgCKmd+RgHSEHCM8yB4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WUd/RbH8ubkx5UNPUefeYx+fy4+dkadpualMEYyUEAAkB5Q8gjPsWC2YnL/I4R2dJrBGSfJ5QLW8ogFdqXqLAKx+lLxqeAz7hErq3hq/b/xkJu1F3B0V0ZTuP4Ltg+Cui3w7PsJ1/8+oAti5Lz8u2iTxlExRR4G7wckj2YmkcQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fPYehxuV; 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="fPYehxuV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2CB8C2BCB8; Wed, 6 May 2026 11:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067184; bh=bakTgXEUGEpyadTzuB0JeO+uCgCKmd+RgHSEHCM8yB4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=fPYehxuVlhXaKnOipJHo6+Us9xk8nzeLefZwn6hfdpJKEYxJEdlVm7nJzMN9KAoDr 996kDX1fx+i2SU06ZK6EFqMphxyJTTh7JtHCbgdars14svlc2mHDM/i0Eo8JYsKYvI HZEQgDPDYbB2Hqa4v8sD4r1d+FHKfsLbbH96+HW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43219: net: cpsw_new: Fix potential unregister of netdev that has not been registered yet Date: Wed, 6 May 2026 13:28:55 +0200 Message-ID: <2026050652-CVE-2026-43219-5cde@gregkh> X-Mailer: git-send-email 2.54.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=2492; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/QMisR14skcmaSa5FxknLLOyrdeZXoTjOBIWQ8LZ6yw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VXekbTeUuPfbQFFvG8PrHyvfiq3MnMxcrbxj4a9vA aeN6gssO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAie9sZ5vAY9vx5pte169ZJ o+vR7B/KKzLV9jIs6PmmYMm5v7rU9ObHNTqnF87o++SYDQA= 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: cpsw_new: Fix potential unregister of netdev that has not been registered yet If an error occurs during register_netdev() for the first MAC in cpsw_register_ports(), even though cpsw->slaves[0].ndev is set to NULL, cpsw->slaves[1].ndev would remain unchanged. This could later cause cpsw_unregister_ports() to attempt unregistering the second MAC. To address this, add a check for ndev->reg_state before calling unregister_netdev(). With this change, setting cpsw->slaves[i].ndev to NULL becomes unnecessary and can be removed accordingly. The Linux kernel CVE team has assigned CVE-2026-43219 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit ed3525eda4c4983fb8509e488de0a351788041ba and fixed in 6.18.16 with commit 29739ec197ed66535bc0b86f14ab66c5f4512138 Issue introduced in 5.5 with commit ed3525eda4c4983fb8509e488de0a351788041ba and fixed in 6.19.6 with commit 349c4cac6f54a81fc107589771f88136a2b20415 Issue introduced in 5.5 with commit ed3525eda4c4983fb8509e488de0a351788041ba and fixed in 7.0 with commit 9d724b34fbe13b71865ad0906a4be97571f19cf5 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-43219 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/ti/cpsw_new.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/29739ec197ed66535bc0b86f14ab66c5f4512138 https://git.kernel.org/stable/c/349c4cac6f54a81fc107589771f88136a2b20415 https://git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4be97571f19cf5