← CVE Intelligence

CVE-2022-49249

ASoC: codecs: wc938x: fix accessing array out of bounds for enum type PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Linux / Linuxaffected e8ba1e05bdc016700c85fad559a812c2e795442f before adafea71b49ec4dbc44e0b84ec6eb602004a7a08; affected e8ba1e05bdc016700c85fad559a812c2e795442f before f03c0c94186d5876857132d97e28f20cdc100bdc; affected e8ba1e05bdc016700c85fad559a812c2e795442f before d09aee1b1da196be11ed86dd4897f228f2487613; affected e8ba1e05bdc016700c85fad559a812c2e795442f before cc587b7c8fbbe128f6bd0dad025a0caea5e6d164
Linux / Linuxaffected 5.14; unaffected 0 before 5.14; unaffected 5.15.33 through 5.15.*; unaffected 5.16.19 through 5.16.*; unaffected 5.17.2 through 5.17.*; unaffected 5.18 through *

CWE

No CWE identifiers supplied.

References