From mboxrd@z Thu Jan 1 00:00:00 1970 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 1EF3B1D151C for ; Tue, 19 Nov 2024 17:20:25 +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=1732036828; cv=none; b=gBTyq/xYfsRVKRc9YuR5rAUxlV6D4B9S+WlVMNMfdWdE3L1ohiNienLBi5uHhPJlrzOaudu9O0H++9iROTmwvrPXfvqTtnM07Erns3Sy5q2fmC5+NE6fz7j87CquMT6Qzc/mKAKJBPZsTBx0g9lqNhY4QtQfP63hmegfVlAwHxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732036828; c=relaxed/simple; bh=EgO99MTiKT134siEdtcvmvaao3fn1nUz19uixEsicJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G28qIAjxGx4/FNA8cOsELds7iYK+CeoqYJp73mf5/qGYqPhkQpyEu0AhZ3hbmGYmN4LgtvhtocnSrPv+a1sjGh7yF+vE1iH4b+/mYBnxBtSFikm0tREQuTflwZKKfhz5ez0QuB8W575Rf2yXU/SduNnfmcnGxgsxdErLy3cyeco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VHTJMMfL; 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="VHTJMMfL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B535C4CECF; Tue, 19 Nov 2024 17:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732036825; bh=EgO99MTiKT134siEdtcvmvaao3fn1nUz19uixEsicJs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VHTJMMfL5F7+3Y2u0xueDHW6jGQVdGjPFPxWA4MNeyRB8Y42UjPnWVtUjU5kGvqh6 wmOCTp9ygKF7fLzlI6l/8ThUUQ3xPIUktbCYosDMeeeZgy+X/bdKfyf3D5KLG/S0/H fWhV2yaDXyb9a3oYRyrxf9e72VHSAhZS09sTGiVo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53045: ASoC: dapm: fix bounds checker error in dapm_widget_list_create Date: Tue, 19 Nov 2024 18:19:27 +0100 Message-ID: <2024111925-CVE-2024-53045-e1dc@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=2230; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EgO99MTiKT134siEdtcvmvaao3fn1nUz19uixEsicJs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk2J+aeOpe9v7jy9Ga1COPPFUGFL+c1PPX9YF7SnN/8n Ougdr9nRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk5myGBZuTOwrKFf6vsNn6 y/PhipxZZuunFDPMs159MWnP/AgmMZ/uvW1OocW7FH7dBwA= 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: ASoC: dapm: fix bounds checker error in dapm_widget_list_create The widgets array in the snd_soc_dapm_widget_list has a __counted_by attribute attached to it, which points to the num_widgets variable. This attribute is used in bounds checking, and if it is not set before the array is filled, then the bounds sanitizer will issue a warning or a kernel panic if CONFIG_UBSAN_TRAP is set. This patch sets the size of the widgets list calculated with list_for_each as the initial value for num_widgets as it is used for allocating memory for the array. It is updated with the actual number of added elements after the array is filled. The Linux kernel CVE team has assigned CVE-2024-53045 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 80e698e2df5b and fixed in 6.11.7 with commit c549cb66e8de Issue introduced in 6.7 with commit 80e698e2df5b and fixed in 6.12 with commit 2ef9439f7a19 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-53045 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: sound/soc/soc-dapm.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/c549cb66e8de0ba1936fc97a59f0156741d3492a https://git.kernel.org/stable/c/2ef9439f7a19fd3d43b288d38b1c6e55b668a4fe