5.5medium
ASoC: soc-pcm: don't use soc_pcm_ret() on .prepare callback
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-pcm: don't use soc_pcm_ret() on .prepare callback commit 1f5664351410 ("ASoC: lower "no backend DAIs enabled for ... Port" log severity") ignores -EINVAL error message on common soc_pcm_ret(). It is used from many functions, ignoring -EINVAL is over-kill. The reason why -EINVAL was ignored was it really should only be used upon invalid parameters coming from userspace and in that case we don't want to log an error since we do not want to give userspace a way to do a denial-of-service attack on the syslog / diskspace. So don't use soc_pcm_ret() on .prepare callback is better idea.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1f566435141047ca7db26aa4b0b6647a25badaee before 79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee, from 1f566435141047ca7db26aa4b0b6647a25badaee before 90778f31efdf44622065ebbe8d228284104bd26f, from 1f566435141047ca7db26aa4b0b6647a25badaee before 8ec4e8c8e142933eaa8e1ed87168831069250e4e, from 1f566435141047ca7db26aa4b0b6647a25badaee before 301c26a018acb94dd537a4418cefa0f654500c6f, 6.5 Not affected: before 6.5, from 6.6.78 up to 6.6.*, from 6.12.14 up to 6.12.*, from 6.13.3 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 6.5.1 before 6.6.78, from 6.7 before 6.12.14, from 6.13 before 6.13.3, 6.5 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-pcm: don't use soc_pcm_ret() on .prepare callback commit 1f5664351410 ("ASoC: lower "no backend DAIs enabled for ... Port" log severity") ignores -EINVAL error message on common soc_pcm_ret(). It is used from many functions, ignoring -EINVAL is over-kill. The reason why -EINVAL was ignored was it really should only be used upon invalid parameters coming from userspace and in that case we don't want to log an error since we do not want to give userspace a way to do a denial-of-service attack on the syslog / diskspace. So don't use soc_pcm_ret() on .prepare callback is better idea.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: soc-pcm: no usar soc_pcm_ret() en la devolución de llamada .prepare commit 1f5664351410 ("ASoC: menor severidad del registro "no backend DAIs enabled for ... Port") ignora el mensaje de error -EINVAL en soc_pcm_ret() común. Se usa desde muchas funciones, ignorar -EINVAL es exagerado. La razón por la que se ignoró -EINVAL fue que realmente solo debería usarse en parámetros no válidos que provengan del espacio de usuario y, en ese caso, no queremos registrar un error ya que no queremos darle al espacio de usuario una forma de realizar un ataque de denegación de servicio en el syslog / espacio de disco. Por lo tanto, no usar soc_pcm_ret() en la devolución de llamada .prepare es una mejor idea.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58077 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-58077 changed 2026-10-15 | Public domain |