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 20D623446DB for ; Thu, 30 Oct 2025 09:48:32 +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=1761817713; cv=none; b=beR+siFUTb6LI9WKhTCdZ8hKSjT3vJxTLa22pn+GF6eEuB3uYXaEOcXKLIfkVc7/jIIXcqdKOv9OArlymzOgoqEibYtGereSi/JjVGH4ODeNR5fFMiwDCU7njazkM/5IZw/9UEcXyPdimE1nLyJo9oXXxpkyXH9JyDTx8VTwNyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761817713; c=relaxed/simple; bh=tHAo8fluWYWYeO8bS5Jk0b2hPGvK9owALMyyQEGOwqs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YVEymNpHJv6/Ocr8xJTU5CRfHQVHCByuEDZe4F9QuVSHGe1xozj/fpcfgu+hoWGKNxCDfgHhPWNeOEflPJkibBzHW+5bT4zxlUaFeHk5dday3gmyWlMepSDCGgAH32e/N4QYJA2bDn9bDa/vvFSWA2M8mFoEEumbL+hYvz62ppw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JA3UtIHl; 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="JA3UtIHl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC50C4CEFD; Thu, 30 Oct 2025 09:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761817712; bh=tHAo8fluWYWYeO8bS5Jk0b2hPGvK9owALMyyQEGOwqs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JA3UtIHlBLV74OmFG6ry5Inh5yaKm815QUhknf4y8zOv3+w6P75ACYQ7eAMhBdrge PQsce89RtdnTdIZuig01liDmbGVvjl0q1oQDajQqtmY/OklA8NLmx4UtdSxEmwcCUc dpS+KhuJ/mVs0kq4uAE0h7DAE2qZiuHRmWKbx0+g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40097: ALSA: hda: Fix missing pointer check in hda_component_manager_init function Date: Thu, 30 Oct 2025 10:48:24 +0100 Message-ID: <2025103016-CVE-2025-40097-7676@gregkh> X-Mailer: git-send-email 2.51.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=2447; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y31NmHDDG9Yhm8+ObpwDVjgz42O03yHOoP/tcy1LP+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnMJokdq2Qbd+queKK4PvTYQcONv81tWgWfxIlGvZtRF HGpuPV2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykR51hruDPz+dPO2TK/jpW nG8qs662m2EDN8M8y9s3G7Pf5qyc8+OCqrbzvKjdz1p7AA== 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: ALSA: hda: Fix missing pointer check in hda_component_manager_init function The __component_match_add function may assign the 'matchptr' pointer the value ERR_PTR(-ENOMEM), which will subsequently be dereferenced. The call stack leading to the error looks like this: hda_component_manager_init |-> component_match_add |-> component_match_add_release |-> __component_match_add ( ... ,**matchptr, ... ) |-> *matchptr = ERR_PTR(-ENOMEM); // assign |-> component_master_add_with_match( ... match) |-> component_match_realloc(match, match->num); // dereference Add IS_ERR() check to prevent the crash. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2025-40097 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit ae7abe36e352eddf8e30d3b1ea3fb402514ba13b and fixed in 6.17.5 with commit 47d1b9ca923b55c3f407788f1f15b04957e0e027 Issue introduced in 5.17 with commit ae7abe36e352eddf8e30d3b1ea3fb402514ba13b and fixed in 6.18-rc2 with commit 1cf11d80db5df805b538c942269e05a65bcaf5bc 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-2025-40097 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/hda/codecs/side-codecs/hda_component.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/47d1b9ca923b55c3f407788f1f15b04957e0e027 https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc