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.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before b38486e82ecb9f3046e0184205f6b61408fc40c9
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before e385360705a0b346bdb57ce938249175d0613b8a
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 2f46e95bf344abc4e74f8158901d32a869e0adb6
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 63badfed200219ca656968725f1a43df293ac936
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 15c42ab8d43acb73e2eba361ad05822c0af0ecfa
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before fccd454129f6a0739651f7f58307cdb631fd6e89
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 13ee8fb5410b740c8dd2867d3557c7662f7dda2d
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 05530ef7cf7c7d700f6753f058999b1b5099a026
4.9.336 (semver)
4.14.302 (semver)
4.19.269 (semver)
5.4.227 (semver)
5.10.159 (semver)
5.15.83 (semver)
6.0.13 (semver)
6.1 (original_commit_for_fix)
References
git.kernel.org/...c/b38486e82ecb9f3046e0184205f6b61408fc40c9
git.kernel.org/...c/e385360705a0b346bdb57ce938249175d0613b8a
git.kernel.org/...c/2f46e95bf344abc4e74f8158901d32a869e0adb6
git.kernel.org/...c/63badfed200219ca656968725f1a43df293ac936
git.kernel.org/...c/15c42ab8d43acb73e2eba361ad05822c0af0ecfa
git.kernel.org/...c/fccd454129f6a0739651f7f58307cdb631fd6e89
git.kernel.org/...c/13ee8fb5410b740c8dd2867d3557c7662f7dda2d
git.kernel.org/...c/05530ef7cf7c7d700f6753f058999b1b5099a026