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 8619E1C7B64 for ; Mon, 21 Oct 2024 20:12:06 +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=1729541526; cv=none; b=W1bNTHaJ+9p9CTt+qxoxbNj16I1I/Z2rRwOJQ8dum7RLMb74L3GeGhlf0pBqRBTEOP6LQC35xX+crv6x03oDE/rYj15NiKZOUKhCQLw2yi9JMga9sCOWQrjLBr4c522HuAfED2L9pmE72j/SMvK+fN6geRtPZ2uuqsiIZCXVI04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541526; c=relaxed/simple; bh=HiEwJLIIkFJE5oKf8+vyL4HSJl2kljZ0z/ZwNLvkxQE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I55wHwn92dcuRqVMGC7aCh1/R18Xfa7FJH64cs9masf8HrbYE08W5OcOYzlABYYG6GQ5J2eFYMCRXKbXM7LqsvfTG1K7QjDFHQ8f/TC7QUIx5EXXbxeUpvfaB4ApqldR8xUWgLxzR/2ztG9ZZxElICdGjHcORkHNB+qA4OlBz8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=feXoOSFt; 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="feXoOSFt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3AB3C4CEC3; Mon, 21 Oct 2024 20:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541526; bh=HiEwJLIIkFJE5oKf8+vyL4HSJl2kljZ0z/ZwNLvkxQE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=feXoOSFt38Yi40+7mr51EbW6kPw4ItziMPn7Ov7yGxoCbCJOVJRwEpNV7i4ASLaE4 ddqJqpjoXyXDTTBtVdzMnJpdRm0Vu7DG/RcDk9Kz2n4A+MfO0louWsGU//B3xK0Ln4 aj0RkJAYttG7cvUllvr4hKVj/Ugw14yhPKQEGekc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48994: ALSA: seq: Fix function prototype mismatch in snd_seq_expand_var_event Date: Mon, 21 Oct 2024 22:06:26 +0200 Message-ID: <2024102149-CVE-2022-48994-530f@gregkh> X-Mailer: git-send-email 2.47.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=3004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HiEwJLIIkFJE5oKf8+vyL4HSJl2kljZ0z/ZwNLvkxQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW2RftW617Vlv80zixd9k1XN3g7RbI/f7f3/YUPju2 pkzbAuWdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErNwYFkzPex/HccE6t7qb h7c48dr07q9yGgzzw1Zw/T9yduN5pXPfZi43NPgf1CQYBAA= 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: seq: Fix function prototype mismatch in snd_seq_expand_var_event With clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed. seq_copy_in_user() and seq_copy_in_kernel() did not have prototypes matching snd_seq_dump_func_t. Adjust this and remove the casts. There are not resulting binary output differences. This was found as a result of Clang's new -Wcast-function-type-strict flag, which is more sensitive than the simpler -Wcast-function-type, which only checks for type width mismatches. The Linux kernel CVE team has assigned CVE-2022-48994 to this issue. Affected and fixed versions =========================== Fixed in 4.9.336 with commit b38486e82ecb Fixed in 4.14.302 with commit e385360705a0 Fixed in 4.19.269 with commit 2f46e95bf344 Fixed in 5.4.227 with commit 63badfed2002 Fixed in 5.10.159 with commit 15c42ab8d43a Fixed in 5.15.83 with commit fccd454129f6 Fixed in 6.0.13 with commit 13ee8fb5410b Fixed in 6.1 with commit 05530ef7cf7c 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-48994 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/core/seq/seq_memory.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/b38486e82ecb9f3046e0184205f6b61408fc40c9 https://git.kernel.org/stable/c/e385360705a0b346bdb57ce938249175d0613b8a https://git.kernel.org/stable/c/2f46e95bf344abc4e74f8158901d32a869e0adb6 https://git.kernel.org/stable/c/63badfed200219ca656968725f1a43df293ac936 https://git.kernel.org/stable/c/15c42ab8d43acb73e2eba361ad05822c0af0ecfa https://git.kernel.org/stable/c/fccd454129f6a0739651f7f58307cdb631fd6e89 https://git.kernel.org/stable/c/13ee8fb5410b740c8dd2867d3557c7662f7dda2d https://git.kernel.org/stable/c/05530ef7cf7c7d700f6753f058999b1b5099a026