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 23EB219D06B for ; Sat, 11 Jan 2025 12:40:19 +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=1736599219; cv=none; b=arrAOyJSwIKr6qAOYnNhsDFwwyo5cO5kE7piF9ulJGJfOiZ20iPrqWG/gyurpxCiHOnLqPR3ui3gQN5W7JPVip5IfcuWdBBZL1BHfjBFis/cdCKpR8GVBVnFo0PXzKrbO35tOGibX54I0Dvh7FygCMN6wI8EOatcH6uhDMYWnZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736599219; c=relaxed/simple; bh=ll37MiS6yc8rR2zW2lnzyypaudGsdnkgUK+6ZK8aKP0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JacQ3oyL2n+wCa/lB/FkMtAZpOGB6gstSlISoq0AdwJWng+eBsJdqyNVa0Vw1qha09AzlPvWaryy9/yuozX6Fz/C7D+cH9H/1JEuqYF2mtjvBOf/ojoiDL9knuECFYWORpDiQqppP6mZp3iFcqyVhXi9XViT03MyidXXCAEFgYI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y+WI83l3; 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="y+WI83l3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F205C4CED2; Sat, 11 Jan 2025 12:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736599219; bh=ll37MiS6yc8rR2zW2lnzyypaudGsdnkgUK+6ZK8aKP0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y+WI83l3cvA9cZ/YRcAgG92e0OY/71MzWtDeSXneaqUdOZVzfJWCARNa1BwwOA2fo 1zSsbIDK7Y6yyZc8urQnbZ3MSB8EO1oT/qZqg2smGOtX2j8uHZyQTV2Kp55jF4b/lc l2AuNsdPTGV3jtSgWkcl349OZRJrVYDDjlgJHwZA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57805: ASoC: SOF: Intel: hda-dai: Do not release the link DMA on STOP Date: Sat, 11 Jan 2025 13:39:57 +0100 Message-ID: <2025011152-CVE-2024-57805-fbae@gregkh> X-Mailer: git-send-email 2.48.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=2513; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ll37MiS6yc8rR2zW2lnzyypaudGsdnkgUK+6ZK8aKP0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNaTMOVq9i+d6x1NTggKWCYOvCfed99yVqCcw69KWqf dLOv3OYO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi8h4M8+wZXhasePxcSOmT 84b7ey/MXy3Iz8wwT+dgbofixX8KRvwnzib+nvuk1jzWHwA= 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-dai: Do not release the link DMA on STOP The linkDMA should not be released on stop trigger since a stream re-start might happen without closing of the stream. This leaves a short time for other streams to 'steal' the linkDMA since it has been released. This issue is not easy to reproduce under normal conditions as usually after stop the stream is closed, or the same stream is restarted, but if another stream got in between the stop and start, like this: aplay -Dhw:0,3 -c2 -r48000 -fS32_LE /dev/zero -d 120 CTRL+z aplay -Dhw:0,0 -c2 -r48000 -fS32_LE /dev/zero -d 120 then the link DMA channels will be mixed up, resulting firmware error or crash. The Linux kernel CVE team has assigned CVE-2024-57805 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit ab5593793e9088abcddce30ba8e376e31b7285fd and fixed in 6.12.8 with commit 909ecf15cb70f78cdb5c930f58df01db039a0ff8 Issue introduced in 6.12 with commit ab5593793e9088abcddce30ba8e376e31b7285fd and fixed in 6.13-rc5 with commit e8d0ba147d901022bcb69da8d8fd817f84e9f3ca Issue introduced in 6.11.6 with commit ec0c7735dd014e54e55bc3bf4ed2e73d56bb00b3 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-57805 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 sound/soc/sof/intel/hda.h 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/909ecf15cb70f78cdb5c930f58df01db039a0ff8 https://git.kernel.org/stable/c/e8d0ba147d901022bcb69da8d8fd817f84e9f3ca