From mboxrd@z Thu Jan 1 00:00:00 1970 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 8E28E19D081 for ; Wed, 26 Feb 2025 01:58:18 +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=1740535098; cv=none; b=nx2vML9Lxz+OxR4GBAoeh6Y+1dEe1uN7idI+OPlLSGIAOr3s/1lcvCjpuIaIyBU7nWZoD4v/9t3S+1t5HsKU23dvPniAHWB4KY7TIyFRRzfZB2eTJI3Re5dotSJ/6vbKmErAyLj1kSlOpMN7vNt8XlVaXAgGjOe1RjjTA4z8YF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535098; c=relaxed/simple; bh=0+qq+49orW5MWVlqHjQigbEnnQJgHmwmPIbPftwuWLc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EXLN6CAvhsVVCfxBVG6m1QTQQVVuDduJCIg1LFJgaeEIyyADa7WUlBHSxViP8D1tYumPWkwPNuQFnr1ymmSXrr4QoVQP2qs1GyCMXn32nuQ4OxGjmxy3HVF+pnutF7JkGx0a5eiSjLD+99yb7N7W4hEiaEQgapY/Vr3KDXIMX1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lv8o/5l8; 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="Lv8o/5l8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62104C4CEE6; Wed, 26 Feb 2025 01:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535098; bh=0+qq+49orW5MWVlqHjQigbEnnQJgHmwmPIbPftwuWLc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lv8o/5l8iCOkZpFryc7/M7AcY3Msawz6G8bh6V/rGVOKVkLe5OgntzqSHjjCLZt8H S+Hfa04ldDcnhJxMdnhJFunK2uuFFFmiker4WnSqnMvj9dDVk/u0RHwJn3t5RpHJ8V /v2wwRSCQ4yGB6tZo6kpP0BGM8sL7yoQV/1l9/ZI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49105: staging: wfx: fix an error handling in wfx_init_common() Date: Wed, 26 Feb 2025 02:55:10 +0100 Message-ID: <2025022601-CVE-2022-49105-b5ae@gregkh> X-Mailer: git-send-email 2.48.1 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=2260; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0+qq+49orW5MWVlqHjQigbEnnQJgHmwmPIbPftwuWLc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Siz1F4ZWVT1l9FYzYXtkkNAlvXRv6vmUzD13VsgHR js/vn+lI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZySp5hnjGPlI61uunjlZl5 JwTexTQFly7xZpgfvVntvcoKh6Zrfx+tj/asDhOxNjsGAA== 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: staging: wfx: fix an error handling in wfx_init_common() One error handler of wfx_init_common() return without calling ieee80211_free_hw(hw), which may result in memory leak. And I add one err label to unify the error handler, which is useful for the subsequent changes. The Linux kernel CVE team has assigned CVE-2022-49105 to this issue. Affected and fixed versions =========================== Fixed in 5.10.111 with commit 93498c6e775ae91732a8109dba1bdcd324908f84 Fixed in 5.15.34 with commit 86efcb524ae1889ae73f2a2f0bb7fff2ec757ab0 Fixed in 5.16.20 with commit ab0fed1fa744173433cfd1dbaf9239f200ded650 Fixed in 5.17.3 with commit 9727912e906762a63c1a667c84731d3427653f88 Fixed in 5.18 with commit 60f1d3c92dc1ef1026e5b917a329a7fa947da036 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-49105 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/staging/wfx/main.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/93498c6e775ae91732a8109dba1bdcd324908f84 https://git.kernel.org/stable/c/86efcb524ae1889ae73f2a2f0bb7fff2ec757ab0 https://git.kernel.org/stable/c/ab0fed1fa744173433cfd1dbaf9239f200ded650 https://git.kernel.org/stable/c/9727912e906762a63c1a667c84731d3427653f88 https://git.kernel.org/stable/c/60f1d3c92dc1ef1026e5b917a329a7fa947da036