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 34C5E26CE25 for ; Thu, 4 Sep 2025 15:34:22 +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=1757000062; cv=none; b=OdsjKGNb//WAp0SsTPExLA5G47hgVBZXmo3In2/k30JO/x4p0U47fFc0Px4iJANVd2/W80F1ff/zqBetzjOIVzSmOj+8+zGcq9u9+2HqUvwP1/gmmCac5NAV+zLP1IC6QhPINYTuLg7mTuvlY6h/nUnxG6Gs+BKO3ZuBrerTXok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000062; c=relaxed/simple; bh=8xVvo2sCDr+bKpIuh8jZAzQyIJ9QjAyGlsv1jQ7NcGg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NhezOqqVIS0Ilp1HrEngbOfGmdFCKIRBTVAT7lOotkQi4OHg9SHHV7cygdST0Vq/Hsf6pUJExI7PMDvO+SMJvAJxXWstokMpiXfnQyOIm1sXYj2WMx+HjAOK5pjcB+pWOkXULruFgYZhLGx9MWg15xqExadNhVS66+/uAVQKiE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VndtKxbs; 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="VndtKxbs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B01BCC4CEF6; Thu, 4 Sep 2025 15:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000062; bh=8xVvo2sCDr+bKpIuh8jZAzQyIJ9QjAyGlsv1jQ7NcGg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VndtKxbsuTP1idQAhZ8GTf5KnmnREOt+dfdYr2hDmrgs2G8q6smPYFkJwlp4TXRls 9JtkN5D/PFpRTJC6/nrtMdq9yuhmG1nhOiQ0k1eiTK9gVhVgFAFN+ZGdvgLANpgBOK rg1yTyafIGZ9o3UiDk2uFeD0/dcyMLMGqTeNLh7g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38706: ASoC: core: Check for rtd == NULL in snd_soc_remove_pcm_runtime() Date: Thu, 4 Sep 2025 17:33:11 +0200 Message-ID: <2025090455-CVE-2025-38706-da55@gregkh> X-Mailer: git-send-email 2.51.0 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=2880; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ibB/+nXkUD9DNG9rXp8Ux1ybGRBMPO8RyN1FEDexJKw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N6ozZwZf+ND9cFaWefjFZL8U3p2aEqJL4tq//zxyv TXL59q6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIX0WG+b5Lg5K27/x38KRY u9VFo4MTQpSaMxkW3FA4O/VclcvxbCaZtsQGmVX67juOAAA= 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: ASoC: core: Check for rtd == NULL in snd_soc_remove_pcm_runtime() snd_soc_remove_pcm_runtime() might be called with rtd == NULL which will leads to null pointer dereference. This was reproduced with topology loading and marking a link as ignore due to missing hardware component on the system. On module removal the soc_tplg_remove_link() would call snd_soc_remove_pcm_runtime() with rtd == NULL since the link was ignored, no runtime was created. The Linux kernel CVE team has assigned CVE-2025-38706 to this issue. Affected and fixed versions =========================== Fixed in 5.10.241 with commit 8b465bedc2b417fd27c1d1ab7122882b4b60b1a0 Fixed in 5.15.190 with commit 82ba7b8cf9f6e3bf392a9f08ba3d1c0b200ccb94 Fixed in 6.1.149 with commit 7f8fc03712194fd4e2df28af7f7f7a38205934ef Fixed in 6.6.103 with commit 41f53afe53a57a7c50323f99424b598190acf192 Fixed in 6.12.43 with commit 2fce20decc6a83f16dd73744150c4e7ea6c97c21 Fixed in 6.15.11 with commit cecc65827ef3df9754e097582d89569139e6cd1e Fixed in 6.16.2 with commit 7ce0a7255ce97ed7c54afae83fdbce712a1f0c9e Fixed in 6.17-rc1 with commit 2d91cb261cac6d885954b8f5da28b5c176c18131 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-38706 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/soc-core.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/8b465bedc2b417fd27c1d1ab7122882b4b60b1a0 https://git.kernel.org/stable/c/82ba7b8cf9f6e3bf392a9f08ba3d1c0b200ccb94 https://git.kernel.org/stable/c/7f8fc03712194fd4e2df28af7f7f7a38205934ef https://git.kernel.org/stable/c/41f53afe53a57a7c50323f99424b598190acf192 https://git.kernel.org/stable/c/2fce20decc6a83f16dd73744150c4e7ea6c97c21 https://git.kernel.org/stable/c/cecc65827ef3df9754e097582d89569139e6cd1e https://git.kernel.org/stable/c/7ce0a7255ce97ed7c54afae83fdbce712a1f0c9e https://git.kernel.org/stable/c/2d91cb261cac6d885954b8f5da28b5c176c18131