ASoC: codecs: wc938x: fix accessing array out of bounds for enum type
Published Feb 26, 2025
7.1
HIGHCVSS 3.1
EPSS 0.27%
Description
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 products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 5.14
Unaffected
- ≥ 0, < 5.14
- ≥ 5.15.33, ≤ 5.15.*
- ≥ 5.16.19, ≤ 5.16.*
- ≥ 5.17.2, ≤ 5.17.*
- 5.18
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
- ≥ 5.14 · < 5.15.33
- ≥ 5.16 · < 5.16.19
- ≥ 5.17 · < 5.17.2
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (10)
- https://access.redhat.com/security/cve/CVE-2022-49249 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2347955 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-54977 Advisory
- https://git.kernel.org/stable/c/adafea71b49ec4dbc44e0b84ec6eb602004a7a08 Patch
- https://git.kernel.org/stable/c/cc587b7c8fbbe128f6bd0dad025a0caea5e6d164 Patch
- https://git.kernel.org/stable/c/d09aee1b1da196be11ed86dd4897f228f2487613 Patch
- https://git.kernel.org/stable/c/f03c0c94186d5876857132d97e28f20cdc100bdc Patch
- https://lore.kernel.org/linux-cve-announce/2025022626-CVE-2022-49249-18dc@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-49249
- https://www.cve.org/CVERecord?id=CVE-2022-49249
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
GitHub
No data