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 5CF895C613 for ; Fri, 17 May 2024 14:28:08 +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=1715956088; cv=none; b=U/PVF8AWatBp0aHeYT9602Rm/i7TQ1P5ppk6yrA+YUrTMuI3w06tIogq/W15R9jYicbUunjz2NSJGZByodXcNUofgHwcDEAp5pGBWyN7MwbWn1Zm3oV7730PzanhIdNNBo3+SjEb1QUSraWsWmb4QdhQRKnSBqNYJ/f/ThHbuyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956088; c=relaxed/simple; bh=ayTZCay6POiVqQB/hBqwqWdC06K23vItJlU5tOT9T9c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yn5UAsJYUKdWT4gx63TCwirmB8N40nkck6b2R2b7mdZsiXJo3kQwePKus2JyjT3wwkzzQ1H/BUW9r10YxIOaZUHRt69J72U+wPdnu1WZb3yS8Df7vGXRe0bEZKhACn3DbGuEuuIM/1t2dhztwpwkI7W2ndw2DUoZ0FHGhgYMkO0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KJ7bwZvW; 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="KJ7bwZvW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9868C2BD10; Fri, 17 May 2024 14:28:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956088; bh=ayTZCay6POiVqQB/hBqwqWdC06K23vItJlU5tOT9T9c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KJ7bwZvWjEkJ1vO7XxT6MhGeeAt2zPXVTBjzK0+pCnMDXSlOg72J8ckhjiB3dJy6M onb4Ynr8YBx548Fkqs/JA2FXEA0sS5IC+DG6coYFbbjgTIASKegWt27aL4kde+m+yA XUAMiqbTSqmszkA3RBB01fbQGS9S25puCNDiPvZs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52697: ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL Date: Fri, 17 May 2024 16:27:10 +0200 Message-ID: <2024051755-CVE-2023-52697-1b7f@gregkh> X-Mailer: git-send-email 2.45.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=2270; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ayTZCay6POiVqQB/hBqwqWdC06K23vItJlU5tOT9T9c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumQYXBB8F7f60Rse2bomJ1pmJy5MCFic0CSjnH/X++ FX5klRKRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyER4thrqSJ+wFto38asppM 25MMhEybAo7LMMyzkl7qEvL15Wmbntz/8j9M22M3PrkPAA== 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: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL sof_sdw_rt_sdca_jack_exit() are used by different codecs, and some of them use the same dai name. For example, rt712 and rt713 both use "rt712-sdca-aif1" and sof_sdw_rt_sdca_jack_exit(). As a result, sof_sdw_rt_sdca_jack_exit() will be called twice by mc_dailink_exit_loop(). Set ctx->headset_codec_dev = NULL; after put_device(ctx->headset_codec_dev); to avoid ctx->headset_codec_dev being put twice. The Linux kernel CVE team has assigned CVE-2023-52697 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 5360c6704638 and fixed in 6.6.14 with commit a410d58117d6 Issue introduced in 6.5 with commit 5360c6704638 and fixed in 6.7.2 with commit 582231a8c4f7 Issue introduced in 6.5 with commit 5360c6704638 and fixed in 6.8 with commit e38e252dbcee 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-52697 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/intel/boards/sof_sdw_rt_sdca_jack_common.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/a410d58117d6da4b7d41f3c91365f191d006bc3d https://git.kernel.org/stable/c/582231a8c4f73ac153493687ecc1bed853e9c9ef https://git.kernel.org/stable/c/e38e252dbceeef7d2f848017132efd68e9ae1416