# CVE-2022-49249: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-02)
- Published: 2025-02-26T01:56:07.215Z
- Modified: 2026-06-17T05:17:30.607Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e8ba1e05bdc016700c85fad559a812c2e795442f before adafea71b49ec4dbc44e0b84ec6eb602004a7a08; from e8ba1e05bdc016700c85fad559a812c2e795442f before f03c0c94186d5876857132d97e28f20cdc100bdc; from e8ba1e05bdc016700c85fad559a812c2e795442f before d09aee1b1da196be11ed86dd4897f228f2487613; from e8ba1e05bdc016700c85fad559a812c2e795442f before cc587b7c8fbbe128f6bd0dad025a0caea5e6d164; 5.14 (not affected: before 5.14; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.14 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## References

- <https://git.kernel.org/stable/c/adafea71b49ec4dbc44e0b84ec6eb602004a7a08> (patch)
- <https://git.kernel.org/stable/c/f03c0c94186d5876857132d97e28f20cdc100bdc> (patch)
- <https://git.kernel.org/stable/c/d09aee1b1da196be11ed86dd4897f228f2487613> (patch)
- <https://git.kernel.org/stable/c/cc587b7c8fbbe128f6bd0dad025a0caea5e6d164> (patch)

## Sources

- CVE List: [CVE-2022-49249](https://www.cve.org/CVERecord?id=CVE-2022-49249), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49249](https://nvd.nist.gov/vuln/detail/CVE-2022-49249), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49249 · Whole record: https://cve.day/CVE-2022-49249.json · Rebuilt by cve.day 2026-11-25T22:58:20.325Z
