# CVE-2024-58077: ASoC: soc-pcm: don't use soc_pcm_ret() on .prepare callback

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-03-06T16:13:41.159Z
- Modified: 2026-10-15T02:17:20.713Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## References

- <https://git.kernel.org/stable/c/79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee> (patch)
- <https://git.kernel.org/stable/c/90778f31efdf44622065ebbe8d228284104bd26f> (patch)
- <https://git.kernel.org/stable/c/8ec4e8c8e142933eaa8e1ed87168831069250e4e> (patch)
- <https://git.kernel.org/stable/c/301c26a018acb94dd537a4418cefa0f654500c6f> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2024-58077](https://www.cve.org/CVERecord?id=CVE-2024-58077), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-58077](https://nvd.nist.gov/vuln/detail/CVE-2024-58077), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-58077 · Whole record: https://cve.day/CVE-2024-58077.json · Rebuilt by cve.day 2026-11-25T22:58:52.220Z
