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 40190158D96 for ; Mon, 29 Jul 2024 14:32:55 +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=1722263575; cv=none; b=lNtpXdw5s1D6byNHDYtCA/eCp3+VW9fjFYafKwuDGMDoaWmVcIsORMtyG5pmgTruj1yChXLfP+WgslLPzB0YZOS4etsFLIs/Yh5mD3+0BFUUSFI6OR/LwFDYJ3Eyc5MjzMYY20xJlfDdvrYZHS/xlfNNtfYd+ffgAgGZquktdGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263575; c=relaxed/simple; bh=R2GFV2HKmSG2r98+WHBSY/xksjSXuZBqrKqMCgz2LRU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t10mpvAB/5ZFHmTiPUxyNeoYsUC3iuHAfFc6pfZfB7aDBYLN8ny1DbPLiqfvYxbusRpw1fCtvAlVBDp71u/QGRM+KaK8dPCFlGW5jRe8TwtKB+8WUXLhxYIJkAp1XcIGPbTXTfL+9YnVHIbfFRh84N4OYyz6643CqPAswMxKaXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pJ77H74d; 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="pJ77H74d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1762C4AF0C; Mon, 29 Jul 2024 14:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722263575; bh=R2GFV2HKmSG2r98+WHBSY/xksjSXuZBqrKqMCgz2LRU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pJ77H74dACIFA2a4RQYo+H1zdNLX3jEROy7WhQHk8VOfgB3OnVWaYE8V2RUn7Dac1 cacDrw2iaseaFbDxsJUSpt6NoL/cqzq6IxAsgPsv/gkHX1Knsxuh+bQv/MpR5jD3a/ sOx1cTKJgik/XQ1A2xfgWx2BYjZCdFHMY0Fnegfc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41037: ASoC: SOF: Intel: hda: fix null deref on system suspend entry Date: Mon, 29 Jul 2024 16:32:32 +0200 Message-ID: <2024072923-CVE-2024-41037-84b8@gregkh> X-Mailer: git-send-email 2.45.2 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=2336; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R2GFV2HKmSG2r98+WHBSY/xksjSXuZBqrKqMCgz2LRU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLl3/Xyn/d/VnM9duUE3tmrNOvc1y35RFfvEZCtdaSq 0IRut0zOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAipcYMcwUmr0rvP+gktkE1 bc5RVZmFPuFlTAzzjA6zrnpwbeXzbU+7n/y6N/3FHa+fGQA= 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: SOF: Intel: hda: fix null deref on system suspend entry When system enters suspend with an active stream, SOF core calls hw_params_upon_resume(). On Intel platforms with HDA DMA used to manage the link DMA, this leads to call chain of hda_dsp_set_hw_params_upon_resume() -> hda_dsp_dais_suspend() -> hda_dai_suspend() -> hda_ipc4_post_trigger() A bug is hit in hda_dai_suspend() as hda_link_dma_cleanup() is run first, which clears hext_stream->link_substream, and then hda_ipc4_post_trigger() is called with a NULL snd_pcm_substream pointer. The Linux kernel CVE team has assigned CVE-2024-41037 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 2b009fa0823c and fixed in 6.6.41 with commit 8246bbf818ed Issue introduced in 6.4 with commit 2b009fa0823c and fixed in 6.9.10 with commit 993af0f2d9f2 Issue introduced in 6.4 with commit 2b009fa0823c and fixed in 6.10 with commit 9065693dcc13 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-41037 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/sof/intel/hda-dai.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/8246bbf818ed7b8d5afc92b951e6d562b45c2450 https://git.kernel.org/stable/c/993af0f2d9f24e3c18a445ae22b34190d1fcad61 https://git.kernel.org/stable/c/9065693dcc13f287b9e4991f43aee70cf5538fdd