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 389FF32E73E for ; Wed, 17 Sep 2025 14:58:49 +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=1758121129; cv=none; b=Bw9QkymcQU7lmhgQphjSRDzqkejspO7Vz4nt8lEgyH8hRKkiw1b94zRtSuSW9OhxB5AgRYYZy6MTCteKkffy6+IdOcpoN4g1yFznGqkd5TvzpFpZBKvCkB3XvmpC8RYrYp14goP0SgBE6mKwBm1dFYdfWlee9W3snOaTdSIcGX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121129; c=relaxed/simple; bh=DIa6mygGnh7HlJ+XytFMpumt4PLKyDlpkjiu34GaQuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hPcC+rcFOOGcozMxbctmDNvFb+dH33VL6L/GszDvS35d+nfIHJ0eHveg3D2G0fi987xNIfnmYD5OYEVyXUOPn1VhCPYXrrG2xCBwTOePZPOks59EUmUUYm63UvSl8TQSB11XXcKdMTnjpVHBhR1I8W53UNK5jy5r6uGwv3sGCAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dIf0l6Rw; 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="dIf0l6Rw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A636BC4CEF0; Wed, 17 Sep 2025 14:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121129; bh=DIa6mygGnh7HlJ+XytFMpumt4PLKyDlpkjiu34GaQuU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dIf0l6Rw0/l7+ccmT3UEc5nD9WtA4M/54cQ8jkLbF3P8Qs+RL7T8GP+OGJL/2OLoK NW0mF77yV/TOo3dwH79954h/aZDdThvVh2eU7a5x6tmiJNcXV9QnILQWa3jvquAakG +eB9uNsBWWQyJ2JKMHd5XO36tEgr2w5IyNOoEQgE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50361: wifi: wilc1000: add missing unregister_netdev() in wilc_netdev_ifc_init() Date: Wed, 17 Sep 2025 16:56:20 +0200 Message-ID: <2025091715-CVE-2022-50361-60ad@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=2817; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FP/hfpJhqAX4jCMIL3heL7jGmbKpixQk9WT9a3FUUd8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzvBvnaSmU5PFXL6+93Vvye8a3mqef/lBHMtMuLqOr mlUlP7REcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5XcGwoK1myqkUd7+IJmYO h7sh6k+kU3nfMyyYW/VuTqrEw2eLl9a771DcNMfOyCAUAA== 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: wifi: wilc1000: add missing unregister_netdev() in wilc_netdev_ifc_init() Fault injection test reports this issue: kernel BUG at net/core/dev.c:10731! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI Call Trace: wilc_netdev_ifc_init+0x19f/0x220 [wilc1000 884bf126e9e98af6a708f266a8dffd53f99e4bf5] wilc_cfg80211_init+0x30c/0x380 [wilc1000 884bf126e9e98af6a708f266a8dffd53f99e4bf5] wilc_bus_probe+0xad/0x2b0 [wilc1000_spi 1520a7539b6589cc6cde2ae826a523a33f8bacff] spi_probe+0xe4/0x140 really_probe+0x17e/0x3f0 __driver_probe_device+0xe3/0x170 driver_probe_device+0x49/0x120 The root case here is alloc_ordered_workqueue() fails, but cfg80211_unregister_netdevice() or unregister_netdev() not be called in error handling path. To fix add unregister_netdev goto lable to add the unregister operation in error handling path. The Linux kernel CVE team has assigned CVE-2022-50361 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 09ed8bfc5215ad5aac91c50008277b5586b9ef24 and fixed in 6.1.16 with commit a1bdecedc7ad0512365267cd1a26bfc2ae455c59 Issue introduced in 5.17 with commit 09ed8bfc5215ad5aac91c50008277b5586b9ef24 and fixed in 6.2.3 with commit 6da6ce086221803ed6c3b1db11096cecd3e58ec8 Issue introduced in 5.17 with commit 09ed8bfc5215ad5aac91c50008277b5586b9ef24 and fixed in 6.3 with commit 2b88974ecb358990e1c33fabcd0b9e142bab7f21 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-2022-50361 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/wireless/microchip/wilc1000/netdev.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/a1bdecedc7ad0512365267cd1a26bfc2ae455c59 https://git.kernel.org/stable/c/6da6ce086221803ed6c3b1db11096cecd3e58ec8 https://git.kernel.org/stable/c/2b88974ecb358990e1c33fabcd0b9e142bab7f21