CVE-2022-49249

In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type Accessing enums using integer would result in array out of bounds access on platforms like aarch64 where sizeof(long) is 8 compared to enum size which is 4 bytes. Fix this by using enumerated items instead of integers.
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:*:*:*:*:*:*:*:*

History

22 Sep 2025, 20:53

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.1
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/adafea71b49ec4dbc44e0b84ec6eb602004a7a08 - () https://git.kernel.org/stable/c/adafea71b49ec4dbc44e0b84ec6eb602004a7a08 - Patch
References () https://git.kernel.org/stable/c/cc587b7c8fbbe128f6bd0dad025a0caea5e6d164 - () https://git.kernel.org/stable/c/cc587b7c8fbbe128f6bd0dad025a0caea5e6d164 - Patch
References () https://git.kernel.org/stable/c/d09aee1b1da196be11ed86dd4897f228f2487613 - () https://git.kernel.org/stable/c/d09aee1b1da196be11ed86dd4897f228f2487613 - Patch
References () https://git.kernel.org/stable/c/f03c0c94186d5876857132d97e28f20cdc100bdc - () https://git.kernel.org/stable/c/f03c0c94186d5876857132d97e28f20cdc100bdc - Patch
CWE CWE-125
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: codecs: wc938x: se corrige el acceso a una matriz fuera de los límites para el tipo de enumeración. El acceso a enumeraciones mediante números enteros daría como resultado un acceso a una matriz fuera de los límites en plataformas como aarch64 donde sizeof(long) es 8 en comparación con el tamaño de la enumeración, que es de 4 bytes. Corrija esto utilizando elementos enumerados en lugar de números enteros.
First Time Linux
Linux linux Kernel

26 Feb 2025, 07:01

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-26 07:01

Updated : 2025-09-22 20:53


NVD link : CVE-2022-49249

Mitre link : CVE-2022-49249

CVE.ORG link : CVE-2022-49249


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-125

Out-of-bounds Read