| Name | CVE-2024-31585 | 
| Description | FFmpeg version n5.1 to n6.1 was discovered to contain an Off-by-one Error vulnerability in libavfilter/avf_showspectrum.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DSA-5712-1 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| ffmpeg (PTS) | bullseye | 7:4.3.7-0+deb11u1 | fixed | 
|  | bullseye (security) | 7:4.3.9-0+deb11u1 | fixed | 
|  | bookworm, bookworm (security) | 7:5.1.7-0+deb12u1 | fixed | 
|  | trixie | 7:7.1.1-1 | fixed | 
|  | trixie (security) | 7:7.1.2-0+deb13u1 | fixed | 
|  | forky, sid | 7:7.1.2-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| ffmpeg | source | experimental | 7:7.0-1 |  |  |  | 
| ffmpeg | source | buster | (not affected) |  |  |  | 
| ffmpeg | source | bullseye | (not affected) |  |  |  | 
| ffmpeg | source | bookworm | 7:5.1.5-0+deb12u1 |  | DSA-5712-1 |  | 
| ffmpeg | source | (unstable) | 7:7.0.1-3 |  |  |  | 
Notes
[bullseye] - ffmpeg <not-affected> (Vulnerable code not present)
[buster] - ffmpeg <not-affected> (Vulnerable code not present)
Fixed by https://github.com/ffmpeg/ffmpeg/commit/ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06 (n7.0)
Introduced by https://github.com/FFmpeg/FFmpeg/commit/81df787b53eb5c6433731f6eaaf7f2a94d8a8c80 (n5.1)