CVE-2024-58077

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

No CVSS score yet EPSS 0.18%

Published 6 Mar 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-58077

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-58077 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.35% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1f566435141047ca7db26aa4b0b6647a25badaee, before 79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee
affected from 1f566435141047ca7db26aa4b0b6647a25badaee, before 90778f31efdf44622065ebbe8d228284104bd26f
affected from 1f566435141047ca7db26aa4b0b6647a25badaee, before 8ec4e8c8e142933eaa8e1ed87168831069250e4e
affected from 1f566435141047ca7db26aa4b0b6647a25badaee, before 301c26a018acb94dd537a4418cefa0f654500c6f
Other versions: unaffected
Linux
affected 6.5
unaffected before 6.5
unaffected from 6.6.78 up to and including 6.6.*
unaffected from 6.12.14 up to and including 6.12.*
unaffected from 6.13.3 up to and including 6.13.*
unaffected 6.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-58077 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-58077

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-58077
trivy image --scanners vuln IMAGE | grep CVE-2024-58077

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-58077 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.