# CVE-2022-49252: ASoC: codecs: rx-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.663Z
- Modified: 2026-06-17T05:17:30.950Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

ASoC: codecs: rx-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 4f692926f562ff48abfcca6b16f36ff8d57473b6 before eb15c6ea692fd88d70698d874d9a0d667fb4cde9; from 4f692926f562ff48abfcca6b16f36ff8d57473b6 before 7e3629e256d1cabf801d00050550ade4d036cafe; from 4f692926f562ff48abfcca6b16f36ff8d57473b6 before aed43e92e4b9187029903880d5db608f7fa1c53c; from 4f692926f562ff48abfcca6b16f36ff8d57473b6 before bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5; 5.12 (not affected: before 5.12; 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.12 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/eb15c6ea692fd88d70698d874d9a0d667fb4cde9> (patch)
- <https://git.kernel.org/stable/c/7e3629e256d1cabf801d00050550ade4d036cafe> (patch)
- <https://git.kernel.org/stable/c/aed43e92e4b9187029903880d5db608f7fa1c53c> (patch)
- <https://git.kernel.org/stable/c/bcfe5f76cc4051ea3f9eb5d2c8ea621641f290a5> (patch)

## Sources

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

---

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