CVE-2022-49249

ASoC: codecs: wc938x: fix accessing array out of bounds for enum type

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e8ba1e05bdc016700c85fad559a812c2e795442f to before adafea71b49ec4dbc44e0b84ec6eb602004a7a08Affected
  • e8ba1e05bdc016700c85fad559a812c2e795442f to before f03c0c94186d5876857132d97e28f20cdc100bdcAffected
  • e8ba1e05bdc016700c85fad559a812c2e795442f to before d09aee1b1da196be11ed86dd4897f228f2487613Affected
  • e8ba1e05bdc016700c85fad559a812c2e795442f to before cc587b7c8fbbe128f6bd0dad025a0caea5e6d164Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.15.33 through 5.15.*Not affected
  • 5.16.19 through 5.16.*Not affected
  • 5.17.2 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.