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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Xiph.Org | libFLAC | 1.5.0 – ≤ 1.5.0 | — |
References
- https://github.com/xiph/flac/pull/948 issue-tracking patch
- https://github.com/mamedev/mame/issues/16742 issue-tracking
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L2767 technical-description
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L1280 technical-description
- VulnCheck Advisory: libFLAC 1.5.0 Memory Leak via FLAC__stream_encoder_finish third-party-advisory