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 94506218587 for ; Wed, 26 Feb 2025 02:15:28 +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=1740536128; cv=none; b=lerNHzJnCkJ6bybN2ltqbYXqwO/wofNg8Ocz6ElUXJEHIuFUeKo+qeAmZESkgHIrAaE5xecMWmE5bHQWaWvholwoY6nYhRCcFZpufqvlPy/DGARW/G3BkobbygweQxOwudKPe5zcU/IGqSmNe1TMy4dgtrzUqTGRYSmhscDWd4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536128; c=relaxed/simple; bh=Dmp42/q/aI8B+xFh+fmN9gBx5HHbD2bTPbJffTmaf9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JI62UfXCZNtWs2n7MRNsAi3vf4/gNPSsmaPwSgNFLHSDAa2GI5wZBJaLoQ31cCrdX608agJ9ZCkbFYu9wDJUymJH41X58+ViDmcoHKc2w/VUNHPkAdl5vg6AzVjhn7yyeTYBpzsuTElYi57yzzON5sGvzgJN31mP9c5Dlq3UdeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KiZRDZH+; 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="KiZRDZH+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 669A8C4CEE6; Wed, 26 Feb 2025 02:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536128; bh=Dmp42/q/aI8B+xFh+fmN9gBx5HHbD2bTPbJffTmaf9U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KiZRDZH+bbbwKiGeKwWNFrF4R6NXikMuVL5shm4y4/dXQ3ztHxG0SyXfHnAy9+l83 R8IA9T0+6jp2WIRMBEAqhA0jqRjlnvLNg1O24+1DwfQSGUK7RVkU+T3CKHncEJ3Chr b4KaAn0EdnyCRQzFjZlbTp+gb2cXrjBRg7JQE3wo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49533: ath11k: Change max no of active probe SSID and BSSID to fw capability Date: Wed, 26 Feb 2025 03:13:27 +0100 Message-ID: <2025022613-CVE-2022-49533-a0a4@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=2531; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Dmp42/q/aI8B+xFh+fmN9gBx5HHbD2bTPbJffTmaf9U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7KliX1IuLZG8o3a7LeTbg5jUxwWrdE5ea90zM3Ll7e 4Bs0rmrHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRGcsY5tlfFgy0CnJfv8hc diLPqu0ac13iaxgWrF/H2/HcLcta/N/v4z7zZ10XyHHLBwA= 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: ath11k: Change max no of active probe SSID and BSSID to fw capability The maximum number of SSIDs in a for active probe requests is currently reported as 16 (WLAN_SCAN_PARAMS_MAX_SSID) when registering the driver. The scan_req_params structure only has the capacity to hold 10 SSIDs. This leads to a buffer overflow which can be triggered from wpa_supplicant in userspace. When copying the SSIDs into the scan_req_params structure in the ath11k_mac_op_hw_scan route, it can overwrite the extraie pointer. Firmware supports 16 ssid * 4 bssid, for each ssid 4 bssid combo probe request will be sent, so totally 64 probe requests supported. So set both max ssid and bssid to 16 and 4 respectively. Remove the redundant macros of ssid and bssid. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01300-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2022-49533 to this issue. Affected and fixed versions =========================== Fixed in 5.17.14 with commit 210505788f1d243232e21ef660efcd4838890ce8 Fixed in 5.18.3 with commit ec5dfa1d66f2f71a48dab027d26a9fa78eb0f58f Fixed in 5.19 with commit 50dc9ce9f80554a88e33b73c30851acf2be36ed3 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-49533 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/ath/ath11k/wmi.h 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/210505788f1d243232e21ef660efcd4838890ce8 https://git.kernel.org/stable/c/ec5dfa1d66f2f71a48dab027d26a9fa78eb0f58f https://git.kernel.org/stable/c/50dc9ce9f80554a88e33b73c30851acf2be36ed3