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 BB737210E4 for ; Thu, 4 Apr 2024 08:23:58 +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=1712219038; cv=none; b=mCtZNwN0hk2VIH9QFnJH9wGcfe+0xojnwysPODzZ/oThBiKNJz37SENNnckh61x5pqNgCGZp4RvwrYYuItp21sQRcDEOrp80QznD6jnyjmDxDkvZdjrcaTQh6pYvtZxs/a0JxWvULFf9u/KO5AhKXOa++H6N2Ct6cvvBM9iNi+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219038; c=relaxed/simple; bh=FZMYjs9tacFiyoTKeIBu0Nrhs5z23uqIlgA8FHbmNzw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ldlAwGwNPwpvxoBe9pM3PnS78ZakGYYMR4//XmWViMDJlpqFqQEfAvvzXpKkwBtkjR1+KrEn1Yr5DYx+6d5r6BDLfYwqyI+aNRNV8UtqcgkJ/MK8VRUXjMj9YdsyR0pW4s7YkvlymUCYwXcp2L7np2UPPgMXhBejjMoOiDlGzJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=atFQxAqu; 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="atFQxAqu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9854C433C7; Thu, 4 Apr 2024 08:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712219038; bh=FZMYjs9tacFiyoTKeIBu0Nrhs5z23uqIlgA8FHbmNzw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=atFQxAquYBFdu7XzIEUXhLZXL+2CcnBITV+qSt1hcJG9HXs7L0OsNJWys7xgnYAHJ lGRenCMkwhw961mUW3oX/0MuiW3pjz0R2WFI/ozx7oOScIujVJk7/8pun/ZQ/P8S+q 41gwuoX/tFIH69AXXp9RVeOkRks9C32G9+twrL1Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26799: ASoC: qcom: Fix uninitialized pointer dmactl Date: Thu, 4 Apr 2024 10:23:16 +0200 Message-ID: <2024040403-CVE-2024-26799-1fd6@gregkh> X-Mailer: git-send-email 2.44.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=2473; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FZMYjs9tacFiyoTKeIBu0Nrhs5z23uqIlgA8FHbmNzw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl8yem2HSdlfEKEjb7dzhQpjlF+XbV4pVF/rXzU2uc/p ja8NqjtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImYPWSY7/DH6/kLmQnaR6bP 97qTV6Aad/igH8McDk0HG45Fz1N6o73e1O5gFUwMdi8HAA== 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: qcom: Fix uninitialized pointer dmactl In the case where __lpass_get_dmactl_handle is called and the driver id dai_id is invalid the pointer dmactl is not being assigned a value, and dmactl contains a garbage value since it has not been initialized and so the null check may not work. Fix this to initialize dmactl to NULL. One could argue that modern compilers will set this to zero, but it is useful to keep this initialized as per the same way in functions __lpass_platform_codec_intf_init and lpass_cdc_dma_daiops_hw_params. Cleans up clang scan build warning: sound/soc/qcom/lpass-cdc-dma.c:275:7: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch] The Linux kernel CVE team has assigned CVE-2024-26799 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit b81af585ea54 and fixed in 6.6.21 with commit 99adc8b4d2f3 Issue introduced in 5.18 with commit b81af585ea54 and fixed in 6.7.9 with commit d5a7726e6ea6 Issue introduced in 5.18 with commit b81af585ea54 and fixed in 6.8 with commit 1382d8b55129 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-26799 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/qcom/lpass-cdc-dma.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/99adc8b4d2f38bf0d06483ec845bc48f60c3f8cf https://git.kernel.org/stable/c/d5a7726e6ea62d447b79ab5baeb537ea6bdb225b https://git.kernel.org/stable/c/1382d8b55129875b2e07c4d2a7ebc790183769ee