CVE-2024-58077
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-58077 affects the Linux kernel's ASoC (ALSA System on Chip) sound driver component. The vulnerability was discovered on March 6, 2025, and involves improper error handling in the soc-pcm.c file. Specifically, the issue relates to how the socpcmret() function handles -EINVAL error messages during the .prepare callback (NVD, Red Hat).

Technical details

The vulnerability stems from the socpcmret() function ignoring -EINVAL error messages in the common error handling path. This behavior was implemented in commit 1f5664351410 which lowered the log severity for "no backend DAIs enabled" messages. However, this implementation was deemed over-kill as it affected many functions beyond its intended scope. The -EINVAL error should only be ignored when dealing with invalid parameters from userspace (Kernel Commit). According to Red Hat's assessment, this vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (Red Hat).

Impact

The primary impact of this vulnerability is the potential for a denial-of-service attack on the system's syslog and disk space. When invalid parameters are received from userspace, the improper error handling could allow attackers to flood the system logs, potentially affecting system performance and storage capacity (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed by removing the use of socpcmret() in the .prepare callback and implementing direct error returns. This change prevents the potential for log-based denial-of-service attacks while maintaining proper error handling. The fix has been incorporated into various Linux kernel versions, including 6.1.129-1 for Debian bookworm and 6.12.17-1 for Debian sid/trixie (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management