CVE-2025-40097
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-30

Last updated on: 2025-11-24

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Fix missing pointer check in hda_component_manager_init function The __component_match_add function may assign the 'matchptr' pointer the value ERR_PTR(-ENOMEM), which will subsequently be dereferenced. The call stack leading to the error looks like this: hda_component_manager_init |-> component_match_add |-> component_match_add_release |-> __component_match_add ( ... ,**matchptr, ... ) |-> *matchptr = ERR_PTR(-ENOMEM); // assign |-> component_master_add_with_match( ... match) |-> component_match_realloc(match, match->num); // dereference Add IS_ERR() check to prevent the crash. Found by Linux Verification Center (linuxtesting.org) with SVACE.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-30
Last Modified
2025-11-24
Generated
2026-06-16
AI Q&A
2025-10-30
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a missing pointer check in the Linux kernel's ALSA hda_component_manager_init function. Specifically, the __component_match_add function may assign the 'matchptr' pointer the value ERR_PTR(-ENOMEM), which indicates an error due to memory allocation failure. However, this pointer is later dereferenced without checking if it contains an error value, leading to a potential crash. The fix involves adding an IS_ERR() check to prevent dereferencing an error pointer and thus avoid the crash.

Impact Analysis

This vulnerability can cause the Linux kernel to crash due to dereferencing an invalid pointer when handling ALSA hda component initialization. Such a crash can lead to system instability or denial of service, affecting the availability of the system or audio components relying on ALSA.

Mitigation Strategies

Apply the patch or update to the fixed version of the Linux kernel that includes the fix for the missing pointer check in the hda_component_manager_init function. This fix adds an IS_ERR() check to prevent the crash caused by dereferencing ERR_PTR(-ENOMEM).

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40097. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart