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 57FD2280CFB for ; Wed, 18 Jun 2025 09:36:10 +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=1750239370; cv=none; b=Syy6/6hgsepNCiOda7eaO2FSq6esNl7MGQmfRax5XuJzunrgr+jhQNcPG7N4lYpvDl8Fl25Yi6npb4jZ4lmt3WglXRulRTtn23z2NER2pSk7ZES4a3CVrnvQxj+XX2fa+9o1nEm32NvsxBGy5ufaHOOnF9YMW6icNVtWPrJKMXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239370; c=relaxed/simple; bh=jT+C1yH8BHe1ordZ1KreKVMRwMAcmXQ3qNG+qgP5REI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QNJtK1Q8O9R8SE0/VCw6aPUN5NI7PPxwtKuoAnMD3xXYsps9l5pURtmdG1H7FuZP8/+2teOSzaz/FZ/BvD/r/T/rSt3jFE69JPZ58NyWrRQAfChAWNLHj17VkILO5BkjPSru73ZCVVVaO3UK8Sjv1ZE7scwYjcvCB9wvigfkinY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OTsa6Wsi; 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="OTsa6Wsi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA8FAC4CEE7; Wed, 18 Jun 2025 09:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239370; bh=jT+C1yH8BHe1ordZ1KreKVMRwMAcmXQ3qNG+qgP5REI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OTsa6WsiKWCwcVhtk35b64buTjt9tbsjhulJ9lE1y8wzS92hcsn740PkKV4y5Of3B BTsfkGNImtym1OyhSG3np8lH6EhMh6CRSUU3l1UPVsJ/XOcDEi8NaE5KO27lPmM3lU vsvcSoxVIyFMM6+90j+3slUGnFmIv6VF7N7MP9XQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38078: ALSA: pcm: Fix race of buffer access at PCM OSS layer Date: Wed, 18 Jun 2025 11:34:13 +0200 Message-ID: <2025061841-CVE-2025-38078-3f10@gregkh> X-Mailer: git-send-email 2.49.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=3012; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U6EYHtuxz0+KVK71obUXXmdndq8PXJ+pvTNj3DXjeP8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7V+5VrBZm6/0+tknUXxitiHfrkwHBZvnH96/qObiy 3CcVKHVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMp+8kwP8p5Y4rplFCutcc2 XAspWuJ2KDO3gmGuqNG1R/2af3ccWbBc8lzI4ylc5f5pAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Fix race of buffer access at PCM OSS layer The PCM OSS layer tries to clear the buffer with the silence data at initialization (or reconfiguration) of a stream with the explicit call of snd_pcm_format_set_silence() with runtime->dma_area. But this may lead to a UAF because the accessed runtime->dma_area might be freed concurrently, as it's performed outside the PCM ops. For avoiding it, move the code into the PCM core and perform it inside the buffer access lock, so that it won't be changed during the operation. The Linux kernel CVE team has assigned CVE-2025-38078 to this issue. Affected and fixed versions =========================== Fixed in 5.4.294 with commit c0e05a76fc727929524ef24a19c302e6dd40233f Fixed in 5.10.238 with commit 8170d8ec4efd0be352c14cb61f374e30fb0c2a25 Fixed in 5.15.185 with commit 10217da9644ae75cea7330f902c35fc5ba78bbbf Fixed in 6.1.141 with commit f3e14d706ec18faf19f5a6e75060e140fea05d4a Fixed in 6.6.93 with commit 74d90875f3d43f3eff0e9861c4701418795d3455 Fixed in 6.12.31 with commit bf85e49aaf3a3c5775ea87369ea5f159c2148db4 Fixed in 6.14.9 with commit afa56c960fcb4db37f2e3399f28e9402e4e1f470 Fixed in 6.15 with commit 93a81ca0657758b607c3f4ba889ae806be9beb73 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-2025-38078 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: include/sound/pcm.h sound/core/oss/pcm_oss.c sound/core/pcm_native.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/c0e05a76fc727929524ef24a19c302e6dd40233f https://git.kernel.org/stable/c/8170d8ec4efd0be352c14cb61f374e30fb0c2a25 https://git.kernel.org/stable/c/10217da9644ae75cea7330f902c35fc5ba78bbbf https://git.kernel.org/stable/c/f3e14d706ec18faf19f5a6e75060e140fea05d4a https://git.kernel.org/stable/c/74d90875f3d43f3eff0e9861c4701418795d3455 https://git.kernel.org/stable/c/bf85e49aaf3a3c5775ea87369ea5f159c2148db4 https://git.kernel.org/stable/c/afa56c960fcb4db37f2e3399f28e9402e4e1f470 https://git.kernel.org/stable/c/93a81ca0657758b607c3f4ba889ae806be9beb73