CVE-2025-50343

Description

A flaw was found in matio. This vulnerability involves a memory error within the Mat_VarCreateStruct() function, where the system incorrectly handles the number of fields in a data structure. This can lead to out-of-bounds memory access and improper memory cleanup. An attacker could exploit this issue to cause the application to crash, resulting in a denial of service, or potentially to execute unauthorized code on the affected system.

Statement

This vulnerability is rated Moderate because it involves heap-based memory corruption, which could lead to a denial of service or other impacts. Exploitation requires user interaction, such as opening a specially crafted MAT file, limiting the attack vector.

Understanding the Weakness (CWE)

Integrity,Confidentiality,Availability

Technical Impact: Read Memory; Modify Memory; Execute Unauthorized Code or Commands

Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. This can often be used to subvert any other security service.

Availability

Technical Impact: Modify Memory; DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU)

Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.

Frequently Asked Questions

Want to get errata notifications? Sign up here.