ASoC: codecs: wc938x: fix accessing array out of bounds for enum type
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s wc938x codec can access an array out of bounds when it uses integers to access enum values on platforms such as aarch64, where a long is 8 bytes and an enum is 4 bytes. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running the Linux kernel with the wc938x codec should check their installations; affected versions are not specified.