All reports
Medium

flac: flac: stack buffer overflow in the flac CLI via crafted metadata blocks and --picture options

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Description

A flaw was found in the flac command-line encoder. When re-encoding a specially crafted FLAC file carrying a very large number of metadata blocks, supplying multiple --picture options causes the encoder to write past the end of a fixed-size buffer on the stack, corrupting its internal state and crashing the process. This issue can be triggered only when a user runs the flac command-line tool with --picture options on an untrusted input file; the demonstrated impact is a crash of the encoding process.