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 5299713774D for ; Tue, 9 Dec 2025 04:10: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=1765253433; cv=none; b=CnaYDi/4DK4ZLdnFfkkwTFP9UIKa/eP5vXnG1XMXvIhx2kX+G4K64WvK5J8BRL8OPgpJYU9LMDWQpCvNq9QkNzbF2ZeQpxkovTnPL8bF6ymZtjSoSzAtFcO5IzxxVyYFhl/2YZPHzwtGii0JMFkB2dgtVtB1o01pitCJAFO3JI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253433; c=relaxed/simple; bh=ZWhOpty4InprS0Lb9wOsuk/ggHsnazQJWR8BRb6QvPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=azhQR57CyUn8SWRFq36RPkUIf+Uu1Rcw5aJ7QThmkkU/VMglA6sHwmtEbe+m8qzdiP26sSesWSLfsd0Ns84CXThuSf70cC+aqxpjzacNg4D2iU2QRdS/YzYk5g2cBlRKKoWk2SZyRJ+2Ug0cPjoHUdEmiAYUBj1cl9OfboFBJsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1pGQngkA; 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="1pGQngkA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C15BC4CEF5; Tue, 9 Dec 2025 04:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253431; bh=ZWhOpty4InprS0Lb9wOsuk/ggHsnazQJWR8BRb6QvPE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=1pGQngkAmQyXWUBTtDaVflx3WcrFbQ/YdTLKdLOJATxNosiTciuv7oPi3M83QZwPo o6wI2fIzu+ChhRIP+kU6XvjC7RpIO+822EQ5U0uniTBdA3NW0bkRf0BDNAqHal/PD9 0qh5A2GKtHER4HP+TXRgJDUg8OKCH5c6TiPZwSHU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40338: ASoC: Intel: avs: Do not share the name pointer between components Date: Tue, 9 Dec 2025 13:10:20 +0900 Message-ID: <2025120911-CVE-2025-40338-c637@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1968; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d4MX/GmDVCnjgSFBGHr9mm6jxKiL3AL4FzTEXjK7KwI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5VtFwptvLd+SsvqCeHPXyp78hft+73cYHN+Y9Y+X 851yc6TO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiWfsYFnQzrJo3m+XHgrU1 dVt/Xz5QwPcgVpZhwfx5dqq7brDlm7hxlr//sKBNPvV7KAA= 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: Intel: avs: Do not share the name pointer between components By sharing 'name' directly, tearing down components may lead to use-after-free errors. Duplicate the name to avoid that. At the same time, update the order of operations - since commit cee28113db17 ("ASoC: dmaengine_pcm: Allow passing component name via config") the framework does not override component->name if set before invoking the initializer. The Linux kernel CVE team has assigned CVE-2025-40338 to this issue. Affected and fixed versions =========================== Fixed in 6.17.8 with commit 128bf29c992988f8b4f3829227339908fde5ec86 Fixed in 6.18 with commit 4dee5c1cc439b0d5ef87f741518268ad6a95b23d 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-40338 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/intel/avs/pcm.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/128bf29c992988f8b4f3829227339908fde5ec86 https://git.kernel.org/stable/c/4dee5c1cc439b0d5ef87f741518268ad6a95b23d