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 A9AA716C6BD for ; Wed, 21 Aug 2024 06:13:05 +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=1724220785; cv=none; b=hnB9mKVoCr+6EsvjlCypJMhATKnKQOQn+BxrEm7UZ58BhzIPOv2VAx9q9aS8aSkQSLX+ShMLxXa20tRmF+/ZqWiGotOUI1HBtXEwSu3bs+n3L0AzDGuz+rrcfqr3hTdXZjUPPEgI2rE8UY4ObpWOwtA2ihPj3t4ad57ff0C1eX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220785; c=relaxed/simple; bh=FGcH6JQq6LayWflyGPGuQ8zo2c0m5CluzFuuIgHwMs8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V/WiIHJtde7Rlzxgyyew6hk9Gn86RRJREABjpOe9+bIIln4m0BG8x15+xWH6CShWL57R+kTqkBbdBMJ1eUmMWrry3O2jvcMg8hPkntW7AL6Q5sOFyd0I5pzCgj4Ap3F7nEF6QKMXPIsaOQxolSrguDekwKlJVtSBgwAgAx12Kbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wfuew1ZQ; 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="Wfuew1ZQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F787C32782; Wed, 21 Aug 2024 06:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220785; bh=FGcH6JQq6LayWflyGPGuQ8zo2c0m5CluzFuuIgHwMs8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Wfuew1ZQhWfCA02alg2UsIloyc4Q3SjKC3DKFt2Fw0HNszVlLvR7tw97B/j50GTuo kecSz9tpIP2VIiBYhazECUF9yvhDoM+2gohnSxGjkeYgprjvmLQF1vrMFpQl3Cs3oT CERcLiTK1KZIBVX4TrmApvIT+EVmJPSj0K1QIqqo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48889: ASoC: Intel: sof-nau8825: fix module alias overflow Date: Wed, 21 Aug 2024 14:11:23 +0800 Message-ID: <2024082109-CVE-2022-48889-c929@gregkh> X-Mailer: git-send-email 2.46.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=2753; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FGcH6JQq6LayWflyGPGuQ8zo2c0m5CluzFuuIgHwMs8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/4euNe/wd3lZoZOfrO34xHZ5+w/ZZZdYXV5s2Tqp aPrbt3j7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJRE5jmO/AepvhmbOA7aO6 HtPoJ8yarOcT/zLM071p3uaqZll7zfnJtPMnVlnv55vFBgA= 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: ASoC: Intel: sof-nau8825: fix module alias overflow The maximum name length for a platform_device_id entry is 20 characters including the trailing NUL byte. The sof_nau8825.c file exceeds that, which causes an obscure error message: sound/soc/intel/boards/snd-soc-sof_nau8825.mod.c:35:45: error: illegal character encoding in string literal [-Werror,-Winvalid-source-encoding] MODULE_ALIAS("platform:adl_max98373_nau8825"); ^~~~ include/linux/module.h:168:49: note: expanded from macro 'MODULE_ALIAS' ^~~~~~ include/linux/module.h:165:56: note: expanded from macro 'MODULE_INFO' ^~~~ include/linux/moduleparam.h:26:47: note: expanded from macro '__MODULE_INFO' = __MODULE_INFO_PREFIX __stringify(tag) "=" info I could not figure out how to make the module handling robust enough to handle this better, but as a quick fix, using slightly shorter names that are still unique avoids the build issue. The Linux kernel CVE team has assigned CVE-2022-48889 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 8d0872f6239f and fixed in 6.1.7 with commit fba1b23befd8 Issue introduced in 5.17 with commit 8d0872f6239f and fixed in 6.2 with commit 3e78986a840d 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-2022-48889 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/boards/sof_nau8825.c sound/soc/intel/common/soc-acpi-intel-adl-match.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/fba1b23befd88366fe646787b3797e64d7338fd2 https://git.kernel.org/stable/c/3e78986a840d59dd27e636eae3f52dc11125c835