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 1B61A5C613 for ; Fri, 17 May 2024 14:28:22 +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=1715956103; cv=none; b=MRH9JWiS3L9oEjKZdevxd2PTFOKGQK1UvJjHLPTGnPEjM7T75gg4pbGvk6QOx8HaFMHr5VxFZq8Q9Ep4AZyYsei/TmDwYmE07MBALrTFSs++VKpo+gBasDqV24eOa1SDTiNGmcgyXppSX8x4ynVmMrvkSuwXYjmLcGd6Tv8GMgw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956103; c=relaxed/simple; bh=CodZsxd6oWQCFQjx20zHPOaft/9dLgdWVYPZ2zdz9gM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mj6eXDeMct7oOf3Prq5c2aTptmYEJOhdUeq6BXoraysJ48jnlCk0hzOBCbM4+hAp2hond1U1bFZmjSgKLYalt9hTjQUAAlMvGj7j6uHARQHpE3KV2Ymm3Ss+kLr39h1Tg8lfvz4eeq/Q73SVPCDvQiEwubZov8nSBSz1/6lznVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nDGcZDZy; 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="nDGcZDZy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D787C2BD10; Fri, 17 May 2024 14:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956102; bh=CodZsxd6oWQCFQjx20zHPOaft/9dLgdWVYPZ2zdz9gM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nDGcZDZy3xGb6jDr8wr5zORp/kXrYfwNMKZgkHGOJ21NMJSCVccyjMSMfvMRwpgZb oAPdCeTkukgpnylrQfMhYZiWWKqJGaGwkw5UFek9N3PvwEgD/z0/70Kni9z7NJ9xqB yOxB3YrERkFr0/fQZhstskGf5OPZ1YjW0nFui7KE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35842: ASoC: mediatek: sof-common: Add NULL check for normal_link string Date: Fri, 17 May 2024 16:27:15 +0200 Message-ID: <2024051757-CVE-2024-35842-2d97@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=2492; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CodZsxd6oWQCFQjx20zHPOaft/9dLgdWVYPZ2zdz9gM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumYZtO0s2qUQd+z97c+hEi0sR0d7svbeOz3h3zPl14 MPJxjeOd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEtnUyLDh4chHrPJUZ0l8b 7ZT0PGrtN0g4GjAsmF32ayXz6vAHhYVbj6nuMt6b7WhWCwA= 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: mediatek: sof-common: Add NULL check for normal_link string It's not granted that all entries of struct sof_conn_stream declare a `normal_link` (a non-SOF, direct link) string, and this is the case for SoCs that support only SOF paths (hence do not support both direct and SOF usecases). For example, in the case of MT8188 there is no normal_link string in any of the sof_conn_stream entries and there will be more drivers doing that in the future. To avoid possible NULL pointer KPs, add a NULL check for `normal_link`. The Linux kernel CVE team has assigned CVE-2024-35842 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 0caf1120c583 and fixed in 6.1.75 with commit cad471227a37 Issue introduced in 6.0 with commit 0caf1120c583 and fixed in 6.6.14 with commit b1d3db6740d0 Issue introduced in 6.0 with commit 0caf1120c583 and fixed in 6.7.2 with commit cde6ca5872bf Issue introduced in 6.0 with commit 0caf1120c583 and fixed in 6.8 with commit e3b3ec967a7d 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-35842 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/mediatek/common/mtk-dsp-sof-common.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/cad471227a37c0c7c080bfc9ed01b53750e82afe https://git.kernel.org/stable/c/b1d3db6740d0997ffc6e5a0d96ef7cbd62b35fdd https://git.kernel.org/stable/c/cde6ca5872bf67744dffa875a7cb521ab007b7ef https://git.kernel.org/stable/c/e3b3ec967a7d93b9010a5af9a2394c8b5c8f31ed