CVE-2022-49252 ASoC: codecs: rx-macro: fix accessing array out of bounds for enum type
An out-of-bounds array access in the Linux kernel's ASoC rx-macro codec driver can lead to memory corruption and potential code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49252?
CVE-2022-49252 is a high-severity memory corruption vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2022-49252?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49252?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-49252 being exploited?
There is no known exploitation of CVE-2022-49252 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49252, GHSA-cgrq-2r8q-58fc, UBUNTU-CVE-2022-49252.