Description
Xiph.Org libFLAC 1.5.0 contains a memory leak in FLAC__stream_encoder_finish() because free_() never releases the main thread task's frame bit writer buffer. Attackers submitting many audio streams to a long-running service that reuses one encoder can leak at least 32 KiB per stream, causing memory exhaustion.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Xiph.Org libFLAC
Default version status: unaffected
1.5.0 to ≤ 1.5.0affected
pkg:github/xiph/flacReferences
- https://github.com/xiph/flac/pull/948 ↗
- https://github.com/mamedev/mame/issues/16742 ↗
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L2767 ↗
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L1280 ↗
- https://www.vulncheck.com/advisories/libflac-1.5.0-memory-leak-via-flac-stream-encoder-finish ↗