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 7908D21322B for ; Wed, 26 Feb 2025 02:00:35 +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=1740535235; cv=none; b=qxl4E1X/3+w+M5F9ILUQosarW24cst9nOjvCZlRsaANd0v2B50bpW48lFNL2KXqzK6YKWTIdBQn93AwmYhGr7G57jjk/5hmt8hde/ZnZRgqDB3s/1SBdOU876yZuXdhKjfmHBhimsoJA3WDLnJ1hO3IKp/Kk4gqi6odwL+wGNOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535235; c=relaxed/simple; bh=H1p/H0H4ZBIj1JF8DQqXGVqFz+Fa0PwdGZRowvPM4MM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XAWzrWikiakz90zXP1uMhkQkHCpB1tsAsfZSYxs+pxrdx2vTp4E49DkjGRflMnCWVOzKPiHYJw0wJLR4vfRvuZSKm2bUGIbSEYurv7kYexwTlxiBgGby9aedOQY59tjjA1myowLfRaSVIqsdNq/R8ftG3uBRS9usx/VFcLDqfyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T9fdoHAb; 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="T9fdoHAb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C799C4CEDD; Wed, 26 Feb 2025 02:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535235; bh=H1p/H0H4ZBIj1JF8DQqXGVqFz+Fa0PwdGZRowvPM4MM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T9fdoHAblxo2iM6HfjTc8IQtUsCIeIfBMafvDhBMkMlSsTQWxLHKlteZ3KYMKm8OO LNBQr5Qj3cKOATDkXyjTXaH0cNI5oS25a+z0ugzeLcB7rsfan+bV0MwGCJ2Dd9Jenz e6i1+v8Sjhm/ILJAYjJvm5yCmk9E5KBRywzMXFDE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49288: ALSA: pcm: Fix races among concurrent prealloc proc writes Date: Wed, 26 Feb 2025 02:58:13 +0100 Message-ID: <2025022633-CVE-2022-49288-d3cb@gregkh> X-Mailer: git-send-email 2.48.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=2788; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H1p/H0H4ZBIj1JF8DQqXGVqFz+Fa0PwdGZRowvPM4MM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SiLtsiX1faxam+XKd232+7ohwV9kzhl56R8Pu2Qsa oQ+vlLtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcC2dYMDOmUy3RfV+29Xl2 a2ajxW/MclewMCyYUBLScmbR1Pfa5snvLNkbZcrOa+UDAA== 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: ALSA: pcm: Fix races among concurrent prealloc proc writes We have no protection against concurrent PCM buffer preallocation changes via proc files, and it may potentially lead to UAF or some weird problem. This patch applies the PCM open_mutex to the proc write operation for avoiding the racy proc writes and the PCM stream open (and further operations). The Linux kernel CVE team has assigned CVE-2022-49288 to this issue. Affected and fixed versions =========================== Fixed in 4.14.279 with commit e7786c445bb67a9a6e64f66ebd6b7215b153ff7d Fixed in 4.19.243 with commit e14dca613e0a6ddc2bf6e360f16936a9f865205b Fixed in 5.4.193 with commit 37b12c16beb6f6c1c3c678c1aacbc46525c250f7 Fixed in 5.10.109 with commit b560d670c87d7d40b3cf6949246fa4c7aa65a00a Fixed in 5.15.32 with commit 51fce708ab8986a9879ee5da946a2cc120f1036d Fixed in 5.16.18 with commit a21d2f323b5a978dedf9ff1d50f101f85e39b3f2 Fixed in 5.17.1 with commit 5ed8f8e3c4e59d0396b9ccf2e639711e24295bb6 Fixed in 5.18 with commit 69534c48ba8ce552ce383b3dfdb271ffe51820c3 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-2022-49288 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/core/pcm_memory.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/e7786c445bb67a9a6e64f66ebd6b7215b153ff7d https://git.kernel.org/stable/c/e14dca613e0a6ddc2bf6e360f16936a9f865205b https://git.kernel.org/stable/c/37b12c16beb6f6c1c3c678c1aacbc46525c250f7 https://git.kernel.org/stable/c/b560d670c87d7d40b3cf6949246fa4c7aa65a00a https://git.kernel.org/stable/c/51fce708ab8986a9879ee5da946a2cc120f1036d https://git.kernel.org/stable/c/a21d2f323b5a978dedf9ff1d50f101f85e39b3f2 https://git.kernel.org/stable/c/5ed8f8e3c4e59d0396b9ccf2e639711e24295bb6 https://git.kernel.org/stable/c/69534c48ba8ce552ce383b3dfdb271ffe51820c3