CVE-2022-48994

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:*

History

07 Nov 2024, 13:52

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/05530ef7cf7c7d700f6753f058999b1b5099a026 - () https://git.kernel.org/stable/c/05530ef7cf7c7d700f6753f058999b1b5099a026 - Patch
References () https://git.kernel.org/stable/c/13ee8fb5410b740c8dd2867d3557c7662f7dda2d - () https://git.kernel.org/stable/c/13ee8fb5410b740c8dd2867d3557c7662f7dda2d - Patch
References () https://git.kernel.org/stable/c/15c42ab8d43acb73e2eba361ad05822c0af0ecfa - () https://git.kernel.org/stable/c/15c42ab8d43acb73e2eba361ad05822c0af0ecfa - Patch
References () https://git.kernel.org/stable/c/2f46e95bf344abc4e74f8158901d32a869e0adb6 - () https://git.kernel.org/stable/c/2f46e95bf344abc4e74f8158901d32a869e0adb6 - Patch
References () https://git.kernel.org/stable/c/63badfed200219ca656968725f1a43df293ac936 - () https://git.kernel.org/stable/c/63badfed200219ca656968725f1a43df293ac936 - Patch
References () https://git.kernel.org/stable/c/b38486e82ecb9f3046e0184205f6b61408fc40c9 - () https://git.kernel.org/stable/c/b38486e82ecb9f3046e0184205f6b61408fc40c9 - Patch
References () https://git.kernel.org/stable/c/e385360705a0b346bdb57ce938249175d0613b8a - () https://git.kernel.org/stable/c/e385360705a0b346bdb57ce938249175d0613b8a - Patch
References () https://git.kernel.org/stable/c/fccd454129f6a0739651f7f58307cdb631fd6e89 - () https://git.kernel.org/stable/c/fccd454129f6a0739651f7f58307cdb631fd6e89 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux
Linux linux Kernel
CWE NVD-CWE-noinfo
CPE cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*

23 Oct 2024, 15:13

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: seq: Fix function prototipo desajuste en snd_seq_expand_var_event Con la integridad del flujo de control del kernel de clang (kCFI, CONFIG_CFI_CLANG), los objetivos de llamada indirecta se validan contra el prototipo de puntero de función esperado para asegurarse de que el objetivo de llamada sea válido para ayudar a mitigar los ataques ROP. Si no son idénticos, hay un error en el tiempo de ejecución, que se manifiesta como un pánico del kernel o la muerte del hilo. seq_copy_in_user() y seq_copy_in_kernel() no tenían prototipos que coincidieran con snd_seq_dump_func_t. Ajústelo y elimine las conversiones. No hay diferencias de salida binaria resultantes. Esto se encontró como resultado del nuevo indicador -Wcast-function-type-strict de Clang, que es más sensible que el más simple -Wcast-function-type, que solo verifica los desajustes de ancho de tipo.

21 Oct 2024, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-10-21 20:15

Updated : 2024-11-07 13:52


NVD link : CVE-2022-48994

Mitre link : CVE-2022-48994

CVE.ORG link : CVE-2022-48994


JSON object : View

Products Affected

linux

  • linux_kernel