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 618162F6930 for ; Tue, 9 Dec 2025 01:33:52 +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=1765244033; cv=none; b=SOdsO8YqkcVOxmFd8bZXl+MyuuYrquF+0QagaRG81Q2cu101SToyLmdQ0Lo3zissxCvGA6GhXWrPFj8JAo7SsQ6OUH+h1BwFf32uLVbvOidTox7eeJ40eugN/RNGSTgDQfqiENIdQMhvK/4I1LcBCZCYUnI869KoB8IlLab8X4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765244033; c=relaxed/simple; bh=n3Q0dVpEOW3Noyrxumuh1Qp65fO8OwwfCRwyP6i1ySM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HP4imai7jgX8BJ3uLiRbR4QehKLabZIp53HTi5nHsN8XJG2m2PRPRwXI2eoGSEewLn0zRRsuyKDwbzU2flRYVBpHgIgbrIDO7fiYtYlCgWWtz9LVCbZh7VibxameE6YqUWgEwGh9OcLrDxDqTYl6wIYMQpFoauscPHESjeT5Huo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ezwnCvol; 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="ezwnCvol" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81A94C4CEF1; Tue, 9 Dec 2025 01:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765244032; bh=n3Q0dVpEOW3Noyrxumuh1Qp65fO8OwwfCRwyP6i1ySM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ezwnCvols0ojk/CAH5HqhSTPL5BPQm8voWeUd98QpNfrEfprxa4EDO+8aFTrzh5Am 9BlfEHQHtg/zp3eytSvnVenY9NhkN3MmHRIKxyXljbD9PEBY7g8cYOckmd1uZ4Dm9a Ak+jRB/JXTuGR4ez75MOjWZO70NH6Qy6QfqjV4iE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53866: ASoC: soc-compress: Reposition and add pcm_mutex Date: Tue, 9 Dec 2025 10:31:50 +0900 Message-ID: <2025120907-CVE-2023-53866-59ec@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NG/sg1oQQ/l6NaJGLyoT1dChhDfsS7m+xmZ76+uZ1ac=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1bezzm33Onpx5fbXTPrs3yZsUXYRZc1iezzrnc8B1 qxY1vT8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwjSGeRpPPlzLmMr06nRb 8NXwNJULgsoLjjIsOHG+rDps3wwht4TU8BTOOyZ3p089AAA= 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: ASoC: soc-compress: Reposition and add pcm_mutex If panic_on_warn is set and compress stream(DPCM) is started, then kernel panic occurred because card->pcm_mutex isn't held appropriately. In the following functions, warning were issued at this line "snd_soc_dpcm_mutex_assert_held". static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, struct snd_soc_pcm_runtime *be, int stream) { ... snd_soc_dpcm_mutex_assert_held(fe); ... } void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream) { ... snd_soc_dpcm_mutex_assert_held(fe); ... } void snd_soc_runtime_action(struct snd_soc_pcm_runtime *rtd, int stream, int action) { ... snd_soc_dpcm_mutex_assert_held(rtd); ... } int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir, int event) { ... snd_soc_dpcm_mutex_assert_held(fe); ... } These functions are called by soc_compr_set_params_fe, soc_compr_open_fe and soc_compr_free_fe without pcm_mutex locking. And this is call stack. [ 414.527841][ T2179] pc : dpcm_process_paths+0x5a4/0x750 [ 414.527848][ T2179] lr : dpcm_process_paths+0x37c/0x750 [ 414.527945][ T2179] Call trace: [ 414.527949][ T2179] dpcm_process_paths+0x5a4/0x750 [ 414.527955][ T2179] soc_compr_open_fe+0xb0/0x2cc [ 414.527972][ T2179] snd_compr_open+0x180/0x248 [ 414.527981][ T2179] snd_open+0x15c/0x194 [ 414.528003][ T2179] chrdev_open+0x1b0/0x220 [ 414.528023][ T2179] do_dentry_open+0x30c/0x594 [ 414.528045][ T2179] vfs_open+0x34/0x44 [ 414.528053][ T2179] path_openat+0x914/0xb08 [ 414.528062][ T2179] do_filp_open+0xc0/0x170 [ 414.528068][ T2179] do_sys_openat2+0x94/0x18c [ 414.528076][ T2179] __arm64_sys_openat+0x78/0xa4 [ 414.528084][ T2179] invoke_syscall+0x48/0x10c [ 414.528094][ T2179] el0_svc_common+0xbc/0x104 [ 414.528099][ T2179] do_el0_svc+0x34/0xd8 [ 414.528103][ T2179] el0_svc+0x34/0xc4 [ 414.528125][ T2179] el0t_64_sync_handler+0x8c/0xfc [ 414.528133][ T2179] el0t_64_sync+0x1a0/0x1a4 [ 414.528142][ T2179] Kernel panic - not syncing: panic_on_warn set ... So, I reposition and add pcm_mutex to resolve lockdep error. The Linux kernel CVE team has assigned CVE-2023-53866 to this issue. Affected and fixed versions =========================== Fixed in 5.15.99 with commit 9576b7ccc20365d27c26c494651c89360a85bbdc Fixed in 6.1.16 with commit 9a9942cbdb7c3f41452f7bc4a9ff9f0b45eb3651 Fixed in 6.2.3 with commit 37a3eb6054d17676ce2a0bb5dd1fbf7733ecfa7d Fixed in 6.3 with commit aa9ff6a4955fdba02b54fbc4386db876603703b7 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-2023-53866 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/soc-compress.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/9576b7ccc20365d27c26c494651c89360a85bbdc https://git.kernel.org/stable/c/9a9942cbdb7c3f41452f7bc4a9ff9f0b45eb3651 https://git.kernel.org/stable/c/37a3eb6054d17676ce2a0bb5dd1fbf7733ecfa7d https://git.kernel.org/stable/c/aa9ff6a4955fdba02b54fbc4386db876603703b7