ASoC: fsl: fsl_audmix: Validate written enum values
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ be1df61cf06efb355c90702e46b8d46f055acb4e · < 0f1510e84d7bfc3eb9538efa65c6ea0aadf1078c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: fsl: fsl_audmix: Validate written enum values
fsl_audmix_put_mix_clk_src() and fsl_audmix_put_out_src() convert the user-provided enum item with snd_soc_enum_item_to_val() before checking whether the item is within the enum's item count.
The generic snd_soc_put_enum_double() helper performs that validation, but these callbacks use the converted value first: the clock-source path tests it with BIT(), and the output-source path indexes the prms transition table with it.
Reject out-of-range enum items before converting them.
From the CVE record · Linux
The Linux kernel's fsl_audmix audio callbacks use a user-provided enum item before checking whether it is in range. A local user who supplies an out-of-range item can cause an invalid bit operation or out-of-bounds transition-table access; authentication requirements are not specified.
Engineers running Linux kernels that include the fsl_audmix audio component should check their kernel; affected versions are not specified.