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 680E436D for ; Wed, 17 Sep 2025 14:58:39 +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=1758121119; cv=none; b=cK4uSZd2h2tSrXgWqY2WnJ3CSfaU12Xwi/qzFlGbgB+RmzNZJA5QfLfkMz3zSh8RMvA4FUCdPxqvGKi5m+AeA4E32B/YqKNPOWMkdF3Jxx+65HlOvOs2BipIMP9xE28EXgL7xcqSgl4yiZAIi6Pv7o9XXAKF4Ir+gpSfQ9Ie7iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121119; c=relaxed/simple; bh=9bCRfIJV27wOz6XbEYfY1yjLns9RCoU2gO8mcC8DVME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uJuNyyvhxnAH3gViWCI64uJdefIb0CfPR13qQlyFxLtuKYuCRPlcthcTloHzttBAJqrW6qgPWxKsGUhW3ukzR8BKa5PeTSddaWLLzD4CA3F1xYavqlp7apR8cSNL6A1uoXNGYgcvC4kapH0/4ufzomo8cHyE9icYWPMFHYAWuX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TpdQSgDA; 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="TpdQSgDA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CD42C4CEE7; Wed, 17 Sep 2025 14:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121119; bh=9bCRfIJV27wOz6XbEYfY1yjLns9RCoU2gO8mcC8DVME=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TpdQSgDAUMZKk87+hvrA3s2Pf3VP+5IoRjN8dkQ0jXGBKBfp6vWZfdv5WfLVmvLyd dpJsHKdI5pi8hOVv/hsdvKOV9GXu2vIPvbIJxOpgy2pLnt4sMS5OOiduo1ZUhnvmk3 o9is8fwaej34cY6g3vhlFyO/fcBKcRaMxsGMX1ic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50358: brcmfmac: return error when getting invalid max_flowrings from dongle Date: Wed, 17 Sep 2025 16:56:17 +0200 Message-ID: <2025091714-CVE-2022-50358-6a86@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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cJZB0LlSeCqHKTDCc38TfLwGolkXux1qFFnsQnq2QjY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzvA5VN1xFX4872XIZPEUleCoZ3EFGy+/d/6SZ/jkg Prjg8meHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRF4EM8wxKj1y4GcR1cxuD pmirXtw21yZZMYYFKwVDs/TvPdWKz9mckcPgtbroOvdTAA== 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: brcmfmac: return error when getting invalid max_flowrings from dongle When firmware hit trap at initialization, host will read abnormal max_flowrings number from dongle, and it will cause kernel panic when doing iowrite to initialize dongle ring. To detect this error at early stage, we directly return error when getting invalid max_flowrings(>256). The Linux kernel CVE team has assigned CVE-2022-50358 to this issue. Affected and fixed versions =========================== Fixed in 5.4.229 with commit 3cc9299036bdb647408e11e41de3eb1ff6d428cd Fixed in 5.10.163 with commit 2e8bb402b060a6c22160de3d72cee057698177c8 Fixed in 5.15.86 with commit 10c4b63d09a5b0ebf1b61af1dae7f25555cf58b6 Fixed in 6.0.16 with commit 87f126b25fa8562196f0f4c0aa46a446026199bf Fixed in 6.1.2 with commit 200347eb3b2608cc8b54c13dd1d5e03809ba2eb2 Fixed in 6.2 with commit 2aca4f3734bd717e04943ddf340d49ab62299a00 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-50358 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/broadcom/brcm80211/brcmfmac/pcie.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/3cc9299036bdb647408e11e41de3eb1ff6d428cd https://git.kernel.org/stable/c/2e8bb402b060a6c22160de3d72cee057698177c8 https://git.kernel.org/stable/c/10c4b63d09a5b0ebf1b61af1dae7f25555cf58b6 https://git.kernel.org/stable/c/87f126b25fa8562196f0f4c0aa46a446026199bf https://git.kernel.org/stable/c/200347eb3b2608cc8b54c13dd1d5e03809ba2eb2 https://git.kernel.org/stable/c/2aca4f3734bd717e04943ddf340d49ab62299a00