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 84F51197 for ; Fri, 21 Jun 2024 10:24: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=1718965459; cv=none; b=jKhxgkCSnkilJDEzk5BNjoWTL3P7BJU+CXUsJiF5pbT7v4VkVjVuO97fbHPQ9ELdqUWfAp6OlT38+R2Bx1OStr+R1HLhqym0EzAzPc/jK9mbPdK1VtVedIWPI6DndOMVNLfYUOKAR89ZgQuJlZsbHIWgfYLADB65WibyPoY/BLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965459; c=relaxed/simple; bh=Iaes6ejK547JoO8VUQtDxjPxGrbxPCrGBuELpY4EBTU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PEoU6Kjb6Y6LYhVj0u/09dnFq06tyoQZZ8m5YJs1WAFdppfAMzmILKK5jbNiwibLG6DOQmwtOWT+9Hd5PPf9ObvFNrfurOFT7bI4z2TPYXQjp3MWhxbLUSmCw67keTzZKh+Ut746vqWMhYgawX84sNAY/iwYa9cgJZvJyugVtLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WbQULuVk; 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="WbQULuVk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B92BEC2BBFC; Fri, 21 Jun 2024 10:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965459; bh=Iaes6ejK547JoO8VUQtDxjPxGrbxPCrGBuELpY4EBTU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WbQULuVkKxIQ1GpYfHWwTE68cdkDtlOtdZOJOPJDwIShSjl0kYthw2k7NPmOdCOeF ZOBscCvjppMWYDBLIRQ4aMxnMthTiXCNYSbmVO66DQJBwA1rEZPBr5gXPOX1ZKbTxX SSJ5196a3xuzkfm70PaD9gEkKgTlcW87YEPBGZw8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38388: ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup Date: Fri, 21 Jun 2024 12:19:44 +0200 Message-ID: <2024062137-CVE-2024-38388-fb75@gregkh> X-Mailer: git-send-email 2.45.2 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=2538; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Iaes6ejK547JoO8VUQtDxjPxGrbxPCrGBuELpY4EBTU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwbvy4zwCVvJ8zv1lllfTwbH8ud/jN1vWMFjvDZrP5 hXeXbmoI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCsIlhDm+zz//5aqkcxlOq FfINEq52fGr9wzA/jONA6x7eP+0tE09dyLrF4adUo7IWAA== 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: hda/cs_dsp_ctl: Use private_free for control cleanup Use the control private_free callback to free the associated data block. This ensures that the memory won't leak, whatever way the control gets destroyed. The original implementation didn't actually remove the ALSA controls in hda_cs_dsp_control_remove(). It only freed the internal tracking structure. This meant it was possible to remove/unload the amp driver while leaving its ALSA controls still present in the soundcard. Obviously attempting to access them could cause segfaults or at least dereferencing stale pointers. The Linux kernel CVE team has assigned CVE-2024-38388 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 3233b978af23 and fixed in 6.1.93 with commit 191dc1b2ff0f Issue introduced in 6.0 with commit 3233b978af23 and fixed in 6.6.33 with commit 6e359be49750 Issue introduced in 6.0 with commit 3233b978af23 and fixed in 6.9.4 with commit 3291486af563 Issue introduced in 6.0 with commit 3233b978af23 and fixed in 6.10-rc1 with commit 172811e3a557 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-38388 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/pci/hda/hda_cs_dsp_ctl.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/191dc1b2ff0fb35e7aff15a53224837637df8bff https://git.kernel.org/stable/c/6e359be4975006ff72818e79dad8fe48293f2eb2 https://git.kernel.org/stable/c/3291486af5636540980ea55bae985f3eaa5b0740 https://git.kernel.org/stable/c/172811e3a557d8681a5e2d0f871dc04a2d17eb13