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 B8C8718C01A for ; Fri, 27 Sep 2024 12:40:16 +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=1727440816; cv=none; b=WJ1KJfQ48xOzrXQqDA1ixGq1h9TNBc3MVvou02++YPAc/6sZCYlnmk4cXt85MYZeiVvOtvYKTEI3pU57kFgR/M4974UbdZKswOflH4SBoVL1s+M3J6IkUWzIKl9cLn2AELZm4A1W7FiqqQlzG0gjglPMh1c3NC5PzL7MOoIinAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440816; c=relaxed/simple; bh=agbegD3JNXzn+z1ffUcUOpEBxucN9kGsPG9CmRHr57Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hx4AzEK3tLw1OnY4kGntWcDWFtwIfC0sFqQBFckm5hvpLg2YJzhYc1PEwLM5FD7jMAbEXWEFhg95knciaqpeSAgSMu3+PwnEQeBRwFq/3Msv5pZiLcEHuajx16qiJo+rkxfveUoyg6cvpYBt0YwFPINRLF3XZMIIjLPcrkp0RQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V4mg+ujY; 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="V4mg+ujY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BF26C4CEC4; Fri, 27 Sep 2024 12:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440816; bh=agbegD3JNXzn+z1ffUcUOpEBxucN9kGsPG9CmRHr57Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V4mg+ujY6pf3koiSMlVoJEL4YviL1yBKa0DNonevUfd9yfGwDq42sVl1qWMK4SN44 Ys4qxilx1cyoYEDThly7k5rnrxqy+BcjZc8CCm/CyiHfS53gvk8VnrSWOTAXBMWgkk vscVlBO08TLljHJLIBGBY46R8VY9ondzYxz1q8L0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46827: wifi: ath12k: fix firmware crash due to invalid peer nss Date: Fri, 27 Sep 2024 14:39:55 +0200 Message-ID: <2024092751-CVE-2024-46827-0300@gregkh> X-Mailer: git-send-email 2.46.2 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=2472; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=agbegD3JNXzn+z1ffUcUOpEBxucN9kGsPG9CmRHr57Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflk+3Ewyx7PSra/t9gvtM2iI9h7oHV+osJ5ZwzrA4X PHVi+9KRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkxCGGBbMZ2PK/PvO8uFPE TebeS33JTbdyAxkW7PR5b5KsdvTjMcN5uj/e6kuf/7ZlDgA= 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: ath12k: fix firmware crash due to invalid peer nss Currently, if the access point receives an association request containing an Extended HE Capabilities Information Element with an invalid MCS-NSS, it triggers a firmware crash. This issue arises when EHT-PHY capabilities shows support for a bandwidth and MCS-NSS set for that particular bandwidth is filled by zeros and due to this, driver obtains peer_nss as 0 and sending this value to firmware causes crash. Address this issue by implementing a validation step for the peer_nss value before passing it to the firmware. If the value is greater than zero, proceed with forwarding it to the firmware. However, if the value is invalid, reject the association request to prevent potential firmware crashes. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2024-46827 to this issue. Affected and fixed versions =========================== Fixed in 6.6.51 with commit 838c2cfdb6be Fixed in 6.10.10 with commit 25a15f80253a Fixed in 6.11 with commit db163a463bb9 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-46827 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/ath12k/mac.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/838c2cfdb6be7d7d8c06c711edf893eb34ca2e7c https://git.kernel.org/stable/c/25a15f80253a7c8776e4e4880d797d20ec864154 https://git.kernel.org/stable/c/db163a463bb93cd3e37e1e7b10b9726fb6f95857