FFmpeg versions before 9.1 have a stack out-of-bounds read vulnerability in the ff_h264_parse_framesize() function within libavformat/rtpdec_h264.c. This occurs when parsing an SDP a=framesize attribute that lacks a height value. An attacker controlling an RTSP server's DESCRIBE response or a crafted .sdp file can trigger atoi() to read beyond the line buffer, potentially causing client crashes or parsing of stale stack data.
FFmpeg versions before 9.1 contain an information disclosure vulnerability in the MXG demuxer's mxg_read_packet() function. This flaw allows attackers to leak uninitialized heap memory by supplying a crafted MXG file with a truncated APP13 segment that declares a large length. The uninitialized memory can be emitted as audio packet payload, potentially exposing sensitive data in remuxed output files. The vulnerability has a low severity rating and a CVSS score of 3.3.
FFmpeg versions before 9.1 contain a low-severity uninitialized memory use vulnerability in the asfrtp_parse_packet() function within the ASF RTP demuxer. This flaw allows a malicious RTP source to leak heap memory by supplying an oversized ASF packet length, causing the demuxer to return stale heap contents as media data.
FFmpeg versions 7.0 through 9.0.2 contain an out-of-bounds read vulnerability in the dvdvideo_menu_next_ps_block() function within libavformat/dvdvideodec.c. This flaw occurs when demuxing DVD menu domains, allowing crafted DVD images to bypass boundary checks and cause a process crash due to memory overread.
FFmpeg versions through 9.0.2 have a heap out-of-bounds read vulnerability in the v4l2_buffer_swframe_to_buf() function within libavcodec/v4l2_buffers.c. This flaw mishandles frames with negative linesize, allowing attackers to supply crafted bottom-up AVI or PNM/PFM files that are transcoded to a V4L2 M2M encoder. Exploitation can cause application crashes or leak heap memory into encoded output.
FFmpeg versions through 9.0.2 have a double free vulnerability in the libavcodec/cbs_sei.c component. The flaw occurs because cbs_sei_delete_message() leaves a stale reference that is reused by ff_cbs_sei_add_message(), leading to heap memory corruption when processing crafted H.264 streams with specific SEI messages.
FFmpeg versions up to 9.0.2 have an uninitialized memory disclosure vulnerability in the CineForm HD decoder. This flaw allows attackers to leak heap memory by supplying a crafted CFHD file with an ImageHeight tag that exceeds coded band heights, causing uninitialized heap bytes to be included in the decoded video output.
FFmpeg versions before 8.1.3 and 9.x before 9.0.2 contain a heap out-of-bounds write vulnerability in the APAC decoder. This flaw is caused by an unreset bitstream index leading to an integer overflow, which can result in heap corruption or application crashes when processing crafted APAC files.
FFmpeg versions through 9.0.2 have an uninitialized stack memory disclosure vulnerability in the old_codec23() function of libavcodec/sanm.c. This flaw causes stack bytes to leak into decoded frames when processing crafted LucasArts SMUSH/SANM animations using codec 23 with an inline table. The vulnerability has a low severity rating and a CVSS score of 3.3.
FFmpeg versions through 9.0.2 contain a use-after-free vulnerability in the libavcodec/nvdec.c component. The flaw occurs because the function ff_nvdec_start_frame() does not reset ctx->bitstream after slice errors. This allows attackers to supply specially crafted video data that abandons a picture before end_frame, causing the cuvidDecodePicture() function to read freed heap memory. This can lead to application crashes or exposure of stale heap contents.
FFmpeg versions through 9.0.2 have an uncontrolled resource consumption vulnerability in the parse_frame_header() function within libavcodec/jpegxl_parser.c. The flaw arises because the function does not validate the Table of Contents (TOC) entry counts against the remaining input. An attacker can craft a JPEG XL frame header with a manipulated TOC and an excessively large toc_count, causing the parser to loop excessively and exhaust CPU resources.
FFmpeg versions 9.0 through 9.0.2 built with liblcevc_dec contain a vulnerability where the software fails to validate LCEVC enhanced output dimensions against max_pixels before frame allocation. This flaw allows attackers to supply crafted video streams that declare excessively large LCEVC resolutions, causing oversized memory allocations and potential memory exhaustion.
FFmpeg versions through 9.0.2 have a heap buffer overflow vulnerability in the libavcodec/lcevcdec.c component. This occurs because the LCEVC output picture dimensions are not properly validated against the allocated frame size. Crafted LCEVC enhancement data embedded in H.264 or HEVC streams with differing global configurations can cause heap memory corruption during decoding.
FFmpeg versions through 9.0.2 have an out-of-bounds read vulnerability in the SGI encoder's encode_frame() function. This flaw arises from improper handling of negative linesize frames, allowing crafted video input to cause the process to read memory outside the intended frame buffer and crash. The vulnerability is triggered when a video with a display matrix that causes autorotate vertical flip is transcoded to SGI images.
FFmpeg versions through 9.0.2 contain a heap buffer overflow vulnerability in the libavcodec/exrenc.c component. This flaw occurs when the encode_scanline_rle() function processes frames taller than the encoder height, allowing attackers to corrupt heap memory. Crafted input with a resolution that grows mid-stream and is transcoded to OpenEXR with RLE compression can cause pointer writes beyond the scanline array, leading to application crashes.
FFmpeg versions through 9.0.2 have an integer overflow vulnerability in the ff_prores_kostya_encode_init() function. This flaw causes incorrect calculation of frame_size_upper_bound using 32-bit arithmetic for large frame dimensions. An attacker can exploit this by supplying a high-resolution video encoded with the prores_ks encoder, leading to heap memory corruption due to buffer overflow during encoding.
FFmpeg versions through 9.0.2 have a division by zero vulnerability in the dovi_configure_ext() function within libavcodec/dovi_rpuenc.c. This flaw allows attackers to cause a denial of service by crashing the process when supplying a crafted HEVC or AV1 input with a nonzero frame rate numerator and zero denominator to certain encoders or bitstream filters.
FFmpeg versions through 9.0.2 contain an off-by-one heap overflow vulnerability in the get_exponent_dynamic() function within libavcodec/nellymoserenc.c. This flaw allows an attacker to write one element beyond allocated memory when encoding Nellymoser audio with trellis enabled, potentially overwriting adjacent heap memory. The vulnerability can be triggered by supplying crafted audio input to affected applications.
FFmpeg versions through 9.0.2 contain a heap buffer overflow vulnerability in the ff_llvidenc_diff_bytes_rvv() function. This flaw allows attackers to corrupt heap memory by triggering negative length values in the Huffyuv encoder when processing RGB video narrower than 8 or 16 pixels on RVV-enabled RISC-V builds. The vulnerability can cause writes beyond the encoder's temporary buffer.
FFmpeg versions through 9.0.2 have a use-after-free vulnerability in the MJPEG decoder component (libavcodec/mjpegdec.c). This flaw allows attackers to cause reads from freed memory by sending a Start of Frame (SOF) marker without a preceding Start of Image (SOI) marker in crafted MJPEG streams. The vulnerability can lead to application crashes or potential leakage of heap memory when the stale pointer is passed to hardware acceleration decoders such as NVDEC.