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 EB7681D14E5 for ; Tue, 19 Nov 2024 17:20:08 +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=1732036809; cv=none; b=YdmAj8xN4wqhS5Bg37oQnaqX0Y428J2QBL2l04mfY3bIUE1z5ad0gX7oBPW+7r0dDDElpCZjaUII4fdB81CI3dhh5BF/iACxEj4KdHx5q8MDEMY4fmd4s0rdC1kFRZACGShahoSWMW2GIt0rUyXXNnMIJs5M3aAnw8yT+jixlkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732036809; c=relaxed/simple; bh=tdAA6S/jcAvJV6N4guRcotONVCs1ndyEkrCIFkU/7MQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D0pC9Rz905q6dEf8Q3j5wWnU1VRVwf3BKq3sMBzOpLYkY99nLxUYPHXHB5y2LIX4YVCcKyKeAtciOhePFuMHdENpJZkB3g1oSaUhKs0fF+IKQ26JS4JOoyFGAVRZ2jlR2ESSV/AMlI22i+55MKIUsInE34aQYZ96WZ5ms1lSFhc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YaxZ4tKu; 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="YaxZ4tKu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD0DEC4CECF; Tue, 19 Nov 2024 17:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732036808; bh=tdAA6S/jcAvJV6N4guRcotONVCs1ndyEkrCIFkU/7MQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YaxZ4tKuq6x8LsjqB3wd/SJmVLkRGqfG0tlY+qR22BsV5o0Cn6nRsKNhLx3iDDhNY dCwWg0ScwmSyocANv2zsmT1mASYkExYw7vHuOezpWtW0rtazyT6TjjWcOgijzFNbr0 2E6ZoF+9ekkGZ319zA9nGIIQF2xN2Dx6FUJBWTR4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53055: wifi: iwlwifi: mvm: fix 6 GHz scan construction Date: Tue, 19 Nov 2024 18:19:37 +0100 Message-ID: <2024111928-CVE-2024-53055-4a64@gregkh> X-Mailer: git-send-email 2.47.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=2887; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tdAA6S/jcAvJV6N4guRcotONVCs1ndyEkrCIFkU/7MQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk2JxawR+jXvo7a8So0K9HD53/UpbszDS4UyKz1CVFpc 0oV2vW6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSWs8wVyDjgPk5s1uPVv6+ YrjlRgOT+MkbBxgWLN8b/OD99FO/agSFH/B4Knw0/HBYEwA= 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: iwlwifi: mvm: fix 6 GHz scan construction If more than 255 colocated APs exist for the set of all APs found during 2.4/5 GHz scanning, then the 6 GHz scan construction will loop forever since the loop variable has type u8, which can never reach the number found when that's bigger than 255, and is stored in a u32 variable. Also move it into the loops to have a smaller scope. Using a u32 there is fine, we limit the number of APs in the scan list and each has a limit on the number of RNR entries due to the frame size. With a limit of 1000 scan results, a frame size upper bound of 4096 (really it's more like ~2300) and a TBTT entry size of at least 11, we get an upper bound for the number of ~372k, well in the bounds of a u32. The Linux kernel CVE team has assigned CVE-2024-53055 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit eae94cf82d74 and fixed in 5.15.171 with commit 2ac15e5a8f42 Issue introduced in 5.11 with commit eae94cf82d74 and fixed in 6.1.116 with commit cde8a7eb5c67 Issue introduced in 5.11 with commit eae94cf82d74 and fixed in 6.6.60 with commit fc621e7a043d Issue introduced in 5.11 with commit eae94cf82d74 and fixed in 6.11.7 with commit 2ccd5badadab Issue introduced in 5.11 with commit eae94cf82d74 and fixed in 6.12 with commit 7245012f0f49 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-53055 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/intel/iwlwifi/mvm/scan.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/2ac15e5a8f42fed5d90ed9e1197600913678c50f https://git.kernel.org/stable/c/cde8a7eb5c6762264ff0f4433358e0a0d250c875 https://git.kernel.org/stable/c/fc621e7a043de346c33bd7ae7e2e0c651d6152ef https://git.kernel.org/stable/c/2ccd5badadab2d586e91546bf5af3deda07fef1f https://git.kernel.org/stable/c/7245012f0f496162dd95d888ed2ceb5a35170f1a