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 D442B1465B0 for ; Tue, 21 May 2024 15:37:33 +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=1716305853; cv=none; b=sC45hlRMWHnWVWEgr8xLFezPEKDN33wsJ0XB0B7p0nkaTN0FsoFI+bgKXf1AcY+88ZhAmOONArCvxjdJSx52b4d315QW5iqBYRVlt0rwsT2F5hg1mXVlEExIEK+IqhS14dw8yjuTfizomKi7/1Wrhkod6W9jEXWnhYNy0YXqSso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305853; c=relaxed/simple; bh=2RGRTgFmbkcgs/8zDdbiqmsGQksN1PqpgsiyAeR9d1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=foueluEau6R7sIn/DN0aDfejDnjErskVPrLE9uR96qSUA6keYvmCdWlGgqqhJA1CDDkGt8W9GorCgqPYg4bgJpT4bolrLo+pwGxpRHg6N214ASG1lkBM8vO5Oh2E/Ls37Jr+WJjNwV1sYtBI4J71NdhULTvGL38UWOb717Z5KQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qOTYw1Ms; 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="qOTYw1Ms" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE563C32786; Tue, 21 May 2024 15:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305853; bh=2RGRTgFmbkcgs/8zDdbiqmsGQksN1PqpgsiyAeR9d1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qOTYw1Ms2U20iApZNJLNeK0JeQOoCcYakoFln21tchwJ6Y3XalByw1tA14O6SihNz jmRhVK+3TbTh79DcSlFFzJXjdvKP+UUn0I4OyXvO4i6riFAkPoR/ZB28nbND+uX6R5 qgKCzfC4RltR8ruTeMU7xEkvRjwKFSWgFKRFyaVE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52829: wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps() Date: Tue, 21 May 2024 17:32:05 +0200 Message-ID: <2024052108-CVE-2023-52829-3283@gregkh> X-Mailer: git-send-email 2.45.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=1976; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2RGRTgFmbkcgs/8zDdbiqmsGQksN1PqpgsiyAeR9d1g=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++2yMH+ybMidxuUGX/7lTZ9doOWlve1ZWJTs715Rld 6XU56fZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARTRWGedrCMt1RLp6+XseO cEqnaBbfsp9txrDg2tG9+swubzRmrmc2X8Io+JH5tKMqAA== 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 possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps() reg_cap.phy_id is extracted from WMI event and could be an unexpected value in case some errors happen. As a result out-of-bound write may occur to soc->hal_reg_cap. Fix it by validating reg_cap.phy_id before using it. This is found during code review. Compile tested only. The Linux kernel CVE team has assigned CVE-2023-52829 to this issue. Affected and fixed versions =========================== Fixed in 6.5.13 with commit dfe13eaab043 Fixed in 6.6.3 with commit 4dd0547e8b45 Fixed in 6.7 with commit b302dce3d9ed 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-2023-52829 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/wmi.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/dfe13eaab043130f90dd3d57c7d88577c04adc97 https://git.kernel.org/stable/c/4dd0547e8b45faf6f95373be5436b66cde326c0e https://git.kernel.org/stable/c/b302dce3d9edea5b93d1902a541684a967f3c63c