An issue was discovered in matio 1.5.28. A heap-based memory corruption can occur in Mat_VarCreateStruct() when the nfields value does not match the actual number of strings in the fields array. This leads to out-of-bounds reads and invalid memory frees during cleanup, potentially causing a segmentation fault or heap corruption.
History

Tue, 30 Dec 2025 20:00:00 +0000

Type Values Removed Values Added
Description An issue was discovered in matio 1.5.28. A heap-based memory corruption can occur in Mat_VarCreateStruct() when the nfields value does not match the actual number of strings in the fields array. This leads to out-of-bounds reads and invalid memory frees during cleanup, potentially causing a segmentation fault or heap corruption.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-12-30T19:44:32.448Z

Reserved: 2025-06-16T00:00:00.000Z

Link: CVE-2025-50343

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-12-30T20:16:00.217

Modified: 2025-12-30T20:16:00.217

Link: CVE-2025-50343

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.