Linux
ASoC: codecs: lpass-tx-macro: Fix enum kcontrol accesses
In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: lpass-tx-macro: Fix enum kcontrol accesses The "DEC0 MODE" to "DEC7 MODE" controls are enumerated, but tx_macro_dec_mode_get() and tx_macro_dec_mode_put() access their value through ucontrol->value.integer.value[0] (a long) instead of ucontrol->value.enumerated.item[0] (an unsigned int). This same pattern was fixed in the sibling drivers by commit bcfe5f76cc40 ("ASoC: codecs: rx-macro: fix accessing array out of bounds for enum type") and commit 0ea5eff7c606 ("ASoC: codecs: va-macro: fix accessing array out of bounds for enum type"), but tx-macro was missed. On 64-bit kernels built with CONFIG_SND_CTL_DEBUG, the elem value sanity check catches the 4 bytes written past the enumerated item and every read of these controls fails with -EINVAL: snd-sm8250 sound: control 2:0:0:DEC0 MODE:0: access overflow
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c39667ddcfc516fee084e449179d54430a558298, < dbc81b518f6936131bfd858be71cd4295136809c
- >= c39667ddcfc516fee084e449179d54430a558298, < f84f2c81d792cf1e65571108a3bdd2c29e09e995
- >= c39667ddcfc516fee084e449179d54430a558298, < 48b76879f5bfc8584b99052510ac645c6ade8d2b
- >= c39667ddcfc516fee084e449179d54430a558298, < 2ed3601e9db08fbdb071bd3d7bd8f115d6d871b0
- >= c39667ddcfc516fee084e449179d54430a558298, < b6baab796d11fb84c0e9444ffca91af5eab22c25
- >= c39667ddcfc516fee084e449179d54430a558298, < 3ee3c26ceee562079596abc9bc3307dd56dab4ed
- >= c39667ddcfc516fee084e449179d54430a558298, < 1ba381759e45d5d0442452cfa5c42e836191a568
Fixed in dbc81b518f6936131bfd858be71cd4295136809c, f84f2c81d792cf1e65571108a3bdd2c29e09e995, 48b76879f5bfc8584b99052510ac645c6ade8d2b, 2ed3601e9db08fbdb071bd3d7bd8f115d6d871b0, b6baab796d11fb84c0e9444ffca91af5eab22c25, 3ee3c26ceee562079596abc9bc3307dd56dab4ed, 1ba381759e45d5d0442452cfa5c42e836191a568
- 5.12
Fixed in 0, 5.15.218, 6.1.185, 6.6.154, 6.12.106, 6.18.47, 7.1.10, 7.2
Mitigation
Upgrade Linux to dbc81b518f6936131bfd858be71cd4295136809c or f84f2c81d792cf1e65571108a3bdd2c29e09e995 or 48b76879f5bfc8584b99052510ac645c6ade8d2b or 2ed3601e9db08fbdb071bd3d7bd8f115d6d871b0 or b6baab796d11fb84c0e9444ffca91af5eab22c25 or 3ee3c26ceee562079596abc9bc3307dd56dab4ed or 1ba381759e45d5d0442452cfa5c42e836191a568 or later.
Upgrade Linux to 0 or 5.15.218 or 6.1.185 or 6.6.154 or 6.12.106 or 6.18.47 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.