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 1FAAC16EB66 for ; Fri, 12 Jul 2024 12:33:07 +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=1720787588; cv=none; b=bOsr4yIBgZYscwJkSbj+09TGOk+2PwVjFJLJx+lSEy5HMmmvV9n7qRrQHWyofqyAm0qsbt5QFNuBTGAvQfmHuChAJcGuXDUXYMnsXGpeEirfrV7RBt8qB2f0jTui9935ICxKqOQRhGVVn1yQN1AwhNceG53TmjtMiqzBX3DOpLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787588; c=relaxed/simple; bh=yAHR/uK+P/s9b/jsBihFNbv2/3STVdx7/UMt3vaQOQA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ex911YL+C3LwpNx4Br/7Z8bz9cqzzEsD777GItMqsa/VzBNPuHWv+pPyRnhip3EcUDOwoWT/rkD/pI7Ua9jPs+b3abHD3MaFF3kmF7toHZpiuMiGZAE709lPagrNQ/dhzKKwXpDGkf0FPO0GIATcognDTcdNSFhtkqnn8y2KLIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RQxMDqVi; 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="RQxMDqVi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ABE8C4AF0C; Fri, 12 Jul 2024 12:33:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787587; bh=yAHR/uK+P/s9b/jsBihFNbv2/3STVdx7/UMt3vaQOQA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RQxMDqVidggBOQkXd6Ao0rdy4j6bWHtlM0jEpgymv2SpW/ZcPd8Pc5/DI5ofqNMSR FIBT7HVM0hR12wviGcgljrMMNs1sjvmIZOjQRt7OZ3sn/hlW3QbNZgyVdEcppL9wyy DD3jOiLHjp0naRy3X9bm8BmlT7YCTobAHxWDvlww= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40964: ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind() Date: Fri, 12 Jul 2024 14:32:40 +0200 Message-ID: <2024071226-CVE-2024-40964-3f0d@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=2173; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yAHR/uK+P/s9b/jsBihFNbv2/3STVdx7/UMt3vaQOQA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlaJKuGfL8XPZ7Cu/368Zw2d5e82EiW/uv5hZlcD0r OPxzg0OHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/iyGBYc8uL9JWW0MC1aq fpwT+c/W5tyWlQxzBetaLf8saTj67cHkbTtElwmemVRZCQA= 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: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind() The cs35l41_hda_unbind() function clears the hda_component entry matching it's index and then dereferences the codec pointer held in the first element of the hda_component array, this is an issue when the device index was 0. Instead use the codec pointer stashed in the cs35l41_hda structure as it will still be valid. The Linux kernel CVE team has assigned CVE-2024-40964 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 7cf5ce66dfda and fixed in 6.6.36 with commit ff27bd8e1788 Issue introduced in 6.6 with commit 7cf5ce66dfda and fixed in 6.9.7 with commit 19be722369c3 Issue introduced in 6.6 with commit 7cf5ce66dfda and fixed in 6.10-rc5 with commit 6386682cdc8b 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-40964 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/cs35l41_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/ff27bd8e17884f7cdefecb3f3817caadd6813dc0 https://git.kernel.org/stable/c/19be722369c347f3af1c5848e303980ed040b819 https://git.kernel.org/stable/c/6386682cdc8b41319c92fbbe421953e33a28840c