{"id":"CVE-2022-48994","summary":"ALSA: seq: Fix function prototype mismatch in snd_seq_expand_var_event","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: seq: Fix function prototype mismatch in snd_seq_expand_var_event\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed.\n\nseq_copy_in_user() and seq_copy_in_kernel() did not have prototypes\nmatching snd_seq_dump_func_t. Adjust this and remove the casts. There\nare not resulting binary output differences.\n\nThis was found as a result of Clang's new -Wcast-function-type-strict\nflag, which is more sensitive than the simpler -Wcast-function-type,\nwhich only checks for type width mismatches.","modified":"2026-03-20T12:22:05.236827Z","published":"2024-10-21T20:06:10.814Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4082-1","SUSE-SU-2024:4131-1","SUSE-SU-2024:4364-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48994.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/05530ef7cf7c7d700f6753f058999b1b5099a026"},{"type":"WEB","url":"https://git.kernel.org/stable/c/13ee8fb5410b740c8dd2867d3557c7662f7dda2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/15c42ab8d43acb73e2eba361ad05822c0af0ecfa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f46e95bf344abc4e74f8158901d32a869e0adb6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63badfed200219ca656968725f1a43df293ac936"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b38486e82ecb9f3046e0184205f6b61408fc40c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e385360705a0b346bdb57ce938249175d0613b8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fccd454129f6a0739651f7f58307cdb631fd6e89"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48994.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48994"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"b38486e82ecb9f3046e0184205f6b61408fc40c9"},{"fixed":"e385360705a0b346bdb57ce938249175d0613b8a"},{"fixed":"2f46e95bf344abc4e74f8158901d32a869e0adb6"},{"fixed":"63badfed200219ca656968725f1a43df293ac936"},{"fixed":"15c42ab8d43acb73e2eba361ad05822c0af0ecfa"},{"fixed":"fccd454129f6a0739651f7f58307cdb631fd6e89"},{"fixed":"13ee8fb5410b740c8dd2867d3557c7662f7dda2d"},{"fixed":"05530ef7cf7c7d700f6753f058999b1b5099a026"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48994.json"}}],"schema_version":"1.7.5"}