libFLAC 1.5.0 Memory Leak via FLAC__stream_encoder_finish
- State
- Published
- Severity
- 4.8 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 25, 2026
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.
| Product | Versions |
|---|---|
| libFLAC Xiph.Org | 1.5.0 through 1.5.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | VulnCheck | |
| 3.1 | 3.3 Low | VulnCheck |
Weaknesses
- CWE-401 Missing Release of Memory after Effective Lifetime
References
- https://github.com/xiph/flac/pull/948Issue TrackerPatch
- https://github.com/mamedev/mame/issues/16742Issue Tracker
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L2767Technical Details
- https://github.com/xiph/flac/blob/1.5.0/src/libFLAC/stream_encoder.c#L1280Technical Details
- VulnCheck Advisory: libFLAC 1.5.0 Memory Leak via FLAC__stream_encoder_finishThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.