| Name | CVE-2025-50343 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1124797 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| libmatio (PTS) | bullseye | 1.5.19-2 | vulnerable |
| bookworm | 1.5.23-2 | vulnerable |
| trixie | 1.5.28-2 | vulnerable |
| forky, sid | 1.5.29-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| libmatio | source | experimental | 1.5.30-1 | | | |
| libmatio | source | (unstable) | (unfixed) | | | 1124797 |
Notes
[trixie] - libmatio <no-dsa> (Minor issue, revisit when fixed upstream)
[bookworm] - libmatio <no-dsa> (Minor issue, revisit when fixed upstream)
https://github.com/tbeu/matio/issues/275
Fixed by: https://github.com/tbeu/matio/commit/41b505410dafaa236b61b52c7910d4c4831404f2