Bug 2347955 (CVE-2022-49249) - CVE-2022-49249 kernel: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type
Summary: CVE-2022-49249 kernel: ASoC: codecs: wc938x: fix accessing array out of bound...
Keywords:
Status: NEW
Alias: CVE-2022-49249
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:12 UTC by OSIDB Bzimport
Modified: 2025-02-27 23:05 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:12:34 UTC
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.

Comment 3 Avinash Hanwate 2025-02-27 23:00:11 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022626-CVE-2022-49249-18dc@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.