MidnightBSD mport
mport index decompression can leave partial or corrupt index data after zstd failures
mport is the MidnightBSD Package Manager. Prior to 2.7.8, libmport/util.c did not make every truncated, corrupt, or failed zstd stream fatal in mport_decompress_zstd(), and libmport/fetch.c did not consistently propagate those failures to index-fetch callers. A malicious or faulty mirror could supply compressed package index data that caused ZSTD_decompressStream() or an output write to fail while leaving partial index output available for later use, resulting in package-index integrity loss or denial of service. This issue is fixed in version 2.7.8.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.7.8
Fixed in 2.7.8
Mitigation
Upgrade mport to 2.7.8 or later.
References
- Vendor advisory github.com/MidnightBSD/mport/security/advisori…
- Patch github.com/MidnightBSD/mport/pull/135
- Patch github.com/MidnightBSD/mport/commit/b3e11ba078…
1 more
- Release notes github.com/MidnightBSD/mport/releases/tag/2.7.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.