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 5C35A12D768 for ; Wed, 1 May 2024 13:07:26 +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=1714568846; cv=none; b=CaQuOIc/fiVZDx1gGMBsUFMyHVXM2C2nYVIXy9vrwcRh7v4P2IKh14LpXU3WCmsZnYyxFii2qTWxk8lKFDLn72zB90eZEd4h+LZJC0XNCkfqBFe+JCDKmnq66b8XOyV8aAPLFzo8VI0/VZ//g/Vl/tnHwWvpIgFuv36mb9SOOXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568846; c=relaxed/simple; bh=7Ks+Wuo3T0m9S+XLmv8Wd27oLjhFSPUBwxuXColrPu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qyU0kSlUEGoUWRm7pfADQ1PJGJRKjhkh/WtG7ndQ8iHjLdyOQbiRh+OnwcEUlDipWX/ErCBqy8ZD3IdlJLOtBDZC1cDre0yMqf/9Ga7xLki6iOwHSsup+YvYsp18zhNz3q+j/Y4HZBbesxaqaq1Me2gOsIpL9XhPWO9J55IOPNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jfeP5MDE; 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="jfeP5MDE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A404EC113CC; Wed, 1 May 2024 13:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568846; bh=7Ks+Wuo3T0m9S+XLmv8Wd27oLjhFSPUBwxuXColrPu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jfeP5MDEwZhhZz5YnKcRxwNe6sy4zEukAHn/PO6gpVF3/BQXjPK9DBMM7cRkTAAtb 70ayVQurmleXVemuLAMFY5HSUijraNAzh1+NJdfzXIp9RU4hkcB0RjTxglCFrh2htU k4DvLTsf33H2urh/XhmLZgvc+UWTdFv8ZV4+W/vg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27391: wifi: wilc1000: do not realloc workqueue everytime an interface is added Date: Wed, 1 May 2024 15:06:55 +0200 Message-ID: <2024050135-CVE-2024-27391-6014@gregkh> X-Mailer: git-send-email 2.44.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=3434; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Ks+Wuo3T0m9S+XLmv8Wd27oLjhFSPUBwxuXColrPu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdjErjYUjpn9dHXrL9VTVggxPmwl6hve+OHotZwnsT 9m65sWCjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIrxXDgosyQQ997kVNndVx ztVO4ewStseicQzzU5nZr8foTOV57OooFPfs+K7L+48tBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: do not realloc workqueue everytime an interface is added Commit 09ed8bfc5215 ("wilc1000: Rename workqueue from "WILC_wq" to "NETDEV-wq"") moved workqueue creation in wilc_netdev_ifc_init in order to set the interface name in the workqueue name. However, while the driver needs only one workqueue, the wilc_netdev_ifc_init is called each time we add an interface over a phy, which in turns overwrite the workqueue with a new one. This can be observed with the following commands: for i in $(seq 0 10) do iw phy phy0 interface add wlan1 type managed iw dev wlan1 del done ps -eo pid,comm|grep wlan 39 kworker/R-wlan0 98 kworker/R-wlan1 102 kworker/R-wlan1 105 kworker/R-wlan1 108 kworker/R-wlan1 111 kworker/R-wlan1 114 kworker/R-wlan1 117 kworker/R-wlan1 120 kworker/R-wlan1 123 kworker/R-wlan1 126 kworker/R-wlan1 129 kworker/R-wlan1 Fix this leakage by putting back hif_workqueue allocation in wilc_cfg80211_init. Regarding the workqueue name, it is indeed relevant to set it lowercase, however it is not attached to a specific netdev, so enforcing netdev name in the name is not so relevant. Still, enrich the name with the wiphy name to make it clear which phy is using the workqueue. The Linux kernel CVE team has assigned CVE-2024-27391 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 09ed8bfc5215 and fixed in 6.1.83 with commit 515cc676dfbc Issue introduced in 5.17 with commit 09ed8bfc5215 and fixed in 6.6.23 with commit 4041c60a9d54 Issue introduced in 5.17 with commit 09ed8bfc5215 and fixed in 6.7.11 with commit 90ae293d1d25 Issue introduced in 5.17 with commit 09ed8bfc5215 and fixed in 6.8.2 with commit 9ab0c303ccab Issue introduced in 5.17 with commit 09ed8bfc5215 and fixed in 6.9-rc1 with commit 328efda22af8 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-2024-27391 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/cfg80211.c 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/515cc676dfbce40d93c92b1ff3c1070e917f4e52 https://git.kernel.org/stable/c/4041c60a9d543b3ad50225385b072ba68e96166e https://git.kernel.org/stable/c/90ae293d1d255f622318fce6eeea2e18f9fde5c1 https://git.kernel.org/stable/c/9ab0c303ccabfd6bdce14432792d41090070008c https://git.kernel.org/stable/c/328efda22af81130c2ad981c110518cb29ff2f1d