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 F2E5581AB6 for ; Wed, 10 Jul 2024 07:14:31 +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=1720595672; cv=none; b=e/VOnhUERFbP4J/rvVE7uH683zdYbktV3yY0H3BaiiIZMSa1avoyu2Vhaoa6WAZPJiqVy2+PRTvH0r5VzrKcGVyC2RKhLd5866R9KZV+TQL2KMJdtH/0NB515lk9a34ZWD9rNhLKqwfeEPAiDK2J+pH4WICg+mvtcigc6X7fvYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720595672; c=relaxed/simple; bh=wzetiFO1cMYCyz7nIVT9Jogt2LMmRHASGS0VMQkjBW8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RXcLggt9/28gYWmjIr9b9WTmYwkCL6GFOOxApGSm3dajdApPR+5Fu6see8/m42dM1AURbYVWyoYnZYP0ax7YMHa7rLdbHT6KOzg2XvzIF6AdCs8zHswF8Fm/BdopbBONlzkcCNwezRdX/GZEcwfT+yUTYD16ZXwub60P5q0wpKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ngst3y+4; 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="Ngst3y+4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 769CFC32781; Wed, 10 Jul 2024 07:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720595671; bh=wzetiFO1cMYCyz7nIVT9Jogt2LMmRHASGS0VMQkjBW8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ngst3y+45XkIwZS1OS0eAjp8xz/EPclnsCl9PDyK7OZvjo8HraNSipj3/n49M1Kod dW12P6tAtQo3qRhhArq8b244dch86kvJDJ2+fVK/iApl6KQ3GReCXLqIL4colTmGPF RkClVdv55eXhiAmggNSI7Cg2McNdk75PNGN0pq5Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39491: ALSA: hda: cs35l56: Fix lifetime of cs_dsp instance Date: Wed, 10 Jul 2024 09:14:17 +0200 Message-ID: <2024071016-CVE-2024-39491-fb62@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=2475; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wzetiFO1cMYCyz7nIVT9Jogt2LMmRHASGS0VMQkjBW8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl9JifC1srFHCy8UNW2v/vNi7S3zloX+Wombw34fk6nO Cz1dc2jjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI2TsM8wsWTbPqerc67+jK 90dmz3u4UYXj8A2G+cXLQrVC7W5YlC+r/OrOd6f98QcFVgA= 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: cs35l56: Fix lifetime of cs_dsp instance The cs_dsp instance is initialized in the driver probe() so it should be freed in the driver remove(). Also fix a missing call to cs_dsp_remove() in the error path of cs35l56_hda_common_probe(). The call to cs_dsp_remove() was being done in the component unbind callback cs35l56_hda_unbind(). This meant that if the driver was unbound and then re-bound it would be using an uninitialized cs_dsp instance. It is best to initialize the cs_dsp instance in probe() so that it can return an error if it fails. The component binding API doesn't have any error handling so there's no way to handle a failure if cs_dsp was initialized in the bind. The Linux kernel CVE team has assigned CVE-2024-39491 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 73cfbfa9caea and fixed in 6.6.33 with commit 9054c474f9c2 Issue introduced in 6.6 with commit 73cfbfa9caea and fixed in 6.9.4 with commit 60d5e087e5f3 Issue introduced in 6.6 with commit 73cfbfa9caea and fixed in 6.10-rc1 with commit d344873c4cbd 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-39491 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/cs35l56_hda.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/9054c474f9c219e58a441e401c0e6e38fe713ff1 https://git.kernel.org/stable/c/60d5e087e5f334475b032ad7e6ad849fb998f303 https://git.kernel.org/stable/c/d344873c4cbde249b7152d36a273bcc45864001e