# CVE-2022-49251: ASoC: codecs: va-macro: 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 20% of CVEs (2026-12-01)
- Published: 2025-02-26T01:56:08.180Z
- Modified: 2026-06-17T05:17:30.840Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: codecs: va-macro: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f before 966408e37d84b762d11978b7bfb03fff0c6222ad; from 908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f before 4a799972a283ab4ec031041304d7e2d34e1a16eb; from 908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f before c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f; from 908e6b1df26efc9d2df70c9a7bf4f5eae5c5702f before 0ea5eff7c6063a8f124188424f8e4c6727f35051; 5.11 (not affected: before 5.11; 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.11 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/966408e37d84b762d11978b7bfb03fff0c6222ad> (patch)
- <https://git.kernel.org/stable/c/4a799972a283ab4ec031041304d7e2d34e1a16eb> (patch)
- <https://git.kernel.org/stable/c/c0099bbf8bc85d30c4cf38220fca3c8d4253fa7f> (patch)
- <https://git.kernel.org/stable/c/0ea5eff7c6063a8f124188424f8e4c6727f35051> (patch)

## Sources

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

---

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