FFmpeg Memory Corruption and NULL Dereference Flaws
2026-11-24
Heap out-of-bounds read and write in FFmpeg's dynaudnorm audio filter (releases 4.3 through 9.0.x) occurs when the filter's gain-history queue is resized after the gausssize parameter is changed at runtime. Unauthenticated remote delivery applies only where the azmq filter exposes its command socket; otherwise the flaw is reachable through asendcmd command scripts already processed by the pipeline, and the result is heap memory corruption that can crash the process or potentially lead to code execution. No public exploit code was identified at time of analysis, but the vendor patch (fixed in 9.1) and the act-now priority signal make this an urgent upgrade for any deployment that runs dynaudnorm.
Heap out-of-bounds read and write in FFmpeg's libavfilter deband filter (vf_deband.c) lets an attacker who can reach the filter's runtime command interface toggle 'deband coupling 1' so that chroma planes are processed using luma dimensions, corrupting heap memory, crashing the process, or potentially enabling code execution. Affected builds are FFmpeg 4.4 through versions before 9.1; the trigger requires the deband filter to be active, a reachable command path (the sendcmd filter, or an unauthenticated zmq filter), and a chroma-subsampled pixel format. The CVSS 4.0 base score is 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N) and a priority label of act_now has been assigned, though no public exploit code was identified at time of analysis and no CISA KEV listing exists; exploitation depends on a deliberately enabled, non-default command interface, which is what the high attack-complexity and attack-requirements metrics reflect.
Denial of service in FFmpeg before 9.1 comes from an integer truncation in the optional zmq/azmq filters: an unauthenticated remote sender can deliver an approximately 4 GiB command message to the filter's ZeroMQ REP socket (default tcp://*:5555), causing memcpy() to write past a heap allocation and crash the FFmpeg process. Only deployments whose filtergraphs explicitly enable zmq or azmq and expose that socket are affected, because the filters are not enabled by default; the supplied CVSS 4.0 vector rates availability High with no confidentiality or integrity impact, and no public exploit or CISA KEV entry is identified at time of analysis.
Heap out-of-bounds write in FFmpeg's signalstats video filter affects releases before 9.1: when the filter computes per-plane and saturation histograms for high bit depth input, samples above the nominal maximum index past the end of the allocated histogram buffers and corrupt adjacent heap memory. Practical exploitation is gated on the signalstats filter actually being present in the processing chain - it is an optional, non-default filter - and on the attacker being able to supply a planar 9- to 14-bit YUV stream carrying unclamped sample or saturation values, which is why the assessed vector is local with user interaction required (CVSS 3.1: AV:L/AC:L/PR:N/UI:R, C:H/I:H/A:H; the CNA publishes 8.5 under CVSS 4.0). A vendor fix exists in the form of commit 04955e8b and the 9.1 release; no public exploit code has been identified at the time of analysis, and the vuln.today priority label places remediation in the current week.
Stack-based buffer overflow in FFmpeg's RTMP publishing client (versions before 9.1) lets a malicious or compromised RTMP server overwrite a 16-byte stack header buffer in ff_rtmp_packet_write(), corrupting or crashing the process that is pushing the stream. The flaw is client-side only: it triggers when FFmpeg acts as an RTMP publisher connecting outbound to an attacker-controlled server, and the user must initiate that publish (unauthenticated from the attacker's side, but user interaction is required). The overflow is bounded to roughly two attacker-controlled bytes past the buffer, so impact is weighted toward denial of service and limited integrity loss rather than confirmed code execution; there is no CISA KEV listing and no public exploit identified at time of analysis.
A heap out-of-bounds write in FFmpeg's readeia608 closed-caption extraction filter (libavfilter/vf_readeia608.c) lets crafted high bit depth video corrupt heap memory when the filter is explicitly used, causing crashes or potentially code execution. All FFmpeg builds before 9.1 that ship the readeia608 filter are affected, but only when processing 9, 10, 12 or 14 bit gray or YUV input whose luma samples exceed the nominal maximum; ordinary 8-bit content and normal decoding/playback that omits this filter never reach the flaw. A vendor patch is available (upstream commit df1ddf75) and no public exploit code has been identified at time of analysis, though the CVSS 4.0 base score is 8.5 (High) and the vector is local (AV:L) with passive user interaction (UI:P) and no privileges required (PR:N).
Heap out-of-bounds writes and reads in FFmpeg's tmidequalizer filter before 9.1 allow unauthenticated local attackers to crash the process, corrupt heap memory, and leak heap contents by getting crafted planar 9-, 10-, 12-, or 14-bit video processed with that filter enabled. The filter graph must include tmidequalizer and the samples must exceed the nominal maximum for the declared bit depth; passive user interaction is required because a user or automated job must handle the malicious media. No public exploit code or CISA KEV entry was identified at time of analysis, and the vendor has released a fix in FFmpeg 9.1.
A heap out-of-bounds write in FFmpeg's deflicker video filter (vf_deflicker) lets crafted high-bit-depth video corrupt heap memory, crashing the process or potentially enabling code execution under the privileges of the FFmpeg process. Versions before 9.1 are affected; the flaw only triggers when the non-default deflicker filter is explicitly placed in the processing chain and is fed attacker-controlled media whose luma samples exceed the nominal bit depth (depth greater than 8). The vector is local with no privilege requirement and passive user interaction, no public exploit has been identified at time of analysis, and the vendor has released a fix in FFmpeg 9.1 along with upstream commit fa10042f.
FFmpeg releases before 9.1 can corrupt heap memory when the WAV muxer (libavformat/wavenc.c) writes peak-envelope data for an audio stream that declares zero channels, causing out-of-bounds writes past the peak_maxpos and peak_maxneg arrays and resulting in a crash or potential code execution. The flaw is reachable only when FFmpeg is used as a WAV encoder with the non-default peak-envelope option enabled and a crafted PCM stream with no channels is supplied for output; the assessed vector is local (AV:L) with a required user or automated job to process the crafted stream, but no authentication is needed (PR:N). The issue is fixed upstream in 9.1 by rejecting nb_channels <= 0 in peak_init_writer(); no public exploit code was identified at time of analysis, and the priority is assessed as this_week rather than emergency-level because the vulnerable configuration is non-default.
Out-of-bounds read in FFmpeg's libavfilter scale filter (versions 7.1 before 9.1) lets a runtime-supplied width or height expression that references ref variables dereference a pointer past the filter's input array, crashing the process. Reachability is narrow: the FFmpeg process must accept runtime filter commands through a sendcmd/asendcmd script or the zmq/azmq filters, and a scale instance must receive such a command while only one input exists, so a stock transcode or playback invocation that exposes no command interface is not reachable. No public exploit code or CISA KEV entry is associated with this CVE at time of analysis, and impact is confined to a small out-of-bounds read plus denial of service rather than memory corruption or code execution, which is why the 8.3 CVSS 4.0 score is tempered by AC:H and AT:P; the vendor fix is available and the case is prioritized for remediation this week.
Double free in FFmpeg's IMF Composition Playlist parser (libavformat/imf_cpl.c) before 9.1 can corrupt memory or crash a process that opens a crafted CPL file. The flaw is reachable only when the victim processes a malicious IMF CPL through FFmpeg's IMF demuxer and the default scope allocation fails under memory pressure, so exploitation is local, requires user interaction, and is high complexity; it is not a default or commonly exercised code path. Vendor patch is available and remediation is prioritized for this week; no public exploit was identified at time of analysis.
Out-of-bounds read in FFmpeg's D-10 MXF muxer allows a crafted non-PCM multichannel audio stream to leak heap memory into the written MXF file or to crash the muxing process. All FFmpeg builds before 9.1 are affected when they are used to remux an attacker-supplied input into D-10 MXF output, because the pre-patch mxf_init() accepts D-10 audio codecs it does not actually support and mxf_write_d10_audio_packet() subsequently reads past the end of its buffer. No public exploit code or confirmed active exploitation was identified at time of analysis, and impact is bounded to low-confidentiality leakage into the produced file plus high availability loss (process crash); exploitation is not a default-pipeline trigger and requires the operator to deliberately select D-10 MXF output while processing a malicious input.
An out-of-bounds write in FFmpeg's NUT muxer before 9.1 can crash the process and corrupt memory when a crafted input containing many audio streams is remuxed or encoded to the NUT container. The flaw is in libavformat/nutenc.c's build_frame_code(), which corrupts the header_len[] array; exploitation is local, requires the crafted file to be processed, and is realistically an availability-focused denial of service. No public exploit was identified at time of analysis, and this is a moderate, availability-focused issue rather than a top-priority emergency.
FFmpeg through 9.1 ships the zmq and azmq libavfilter filters with a default bind address of tcp://*:5555, so whenever one of those filters is instantiated the resulting ZeroMQ command socket listens on every network interface with no authentication. A remote, unauthenticated attacker who can reach port 5555 can send 'TARGET COMMAND [ARG]' messages that are dispatched to avfilter_graph_send_command(), changing filter runtime parameters and thereby altering the audio or video being processed. Exposure is narrow - the zmq/azmq filters are not part of typical FFmpeg command lines, so most installations never open the socket - and the impact is bounded to integrity and availability of the media stream rather than code execution or data disclosure; no public exploit code was identified at time of analysis, but an upstream fix commit is available.
Heap out-of-bounds read in FFmpeg before 9.1 occurs when the image2 muxer writes a rawvideo stream that declares very large width and height into a single-plane '.y' grayscale image: the split_planes size check in write_packet() performs the width-times-height multiplication in 32-bit integers, so the computed plane size can wrap and validate the packet against a too-small value, letting adjacent heap bytes be copied into the output file or crashing the process. Builds up to but not including 9.1 that remux attacker-supplied rawvideo into .y image files are affected, with the assessed vector being local (AV:L) and requiring a user or automated job to initiate the conversion (UI:R), yielding limited confidentiality loss and high availability impact. No public exploit code has been identified at time of analysis, the issue is not in CISA KEV, and the priority signal is 'this_month' rather than an emergency.
Heap out-of-bounds read in FFmpeg before 9.1 lets crafted video drive the colorchannelmixer filter's filter_slice_rgba_planar() routine past the end of its lookup tables, because high-bit-depth planar RGBA samples are used as indices without being masked to the nominal bit depth. The practical outcome is a crash (availability impact is the dominant component of the assessed vector) or disclosure of a limited amount of heap memory into the produced output video, and the condition only arises when the colorchannelmixer filter processes high-bit-depth planar RGBA frames whose samples arrive unmasked from the rawvideo demuxer. The assessed vector is local with user interaction and PR:N, so exploitation requires the victim or an automated pipeline to actively run that filter on the malicious file rather than merely decoding it; no public exploit code was identified at time of analysis and the issue is not in CISA KEV, with a vendor patch available in 9.1.
Heap out-of-bounds read in FFmpeg's curves filter (libavfilter/vf_curves.c) before version 9.1 lets crafted video with unmasked planar high-bit-depth samples, specifically gbrp9 through gbrp14 passed through the rawvideo decoder, read past per-channel lookup tables. Applications that apply the curves filter to such input can crash or leak limited heap contents into the output video; the CVSS vector requires local access and user interaction but no privileges (PR:N), and the impact is bounded to availability and limited confidentiality, not code execution. No public exploit was identified at time of analysis.
NULL pointer dereference in FFmpeg's legacy MMS-over-TCP client (libavformat/mmst.c) crashes any application that opens an mms:// stream to a malicious server, affecting releases before 9.1. mms_open() encounters an ASF header that omits the packet-size or stream-properties fields, frees its state and still returns success, so the first subsequent read dereferences a NULL pointer and the process aborts. Impact is availability-only (assessed CVSS:3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, 6.8): no code execution or data exposure, exploitation requires the user to initiate the stream (UI:P) over a non-default legacy protocol path, and no public exploit code was identified at time of analysis.
NULL pointer dereference in FFmpeg's AVIF muxer (libavformat/movenc.c) allows a crafted input to crash the process when its video stream is stream-copied to AVIF output and the stream's pixel format is unknown to av_pix_fmt_desc_get(). Versions before 9.1 are affected; the assessed impact is availability-only denial of service (CVSS 4.0 6.8, VA:H with no confidentiality or integrity impact), and exploitation requires a local operator or automated pipeline to invoke the AVIF muxing/stream-copy workflow on the malicious file. The supplied data contains no CISA KEV entry and no public exploit code, so no public exploit identified at time of analysis; the vendor fix is available in 9.1.
A NULL pointer dereference in FFmpeg 9.0's DASH demuxer (libavformat/dashdec.c) lets a crafted MPD manifest crash any application that parses it, causing a denial of service limited to availability with no confidentiality, integrity, or code-execution impact. The flaw triggers specifically when the DASH demuxer builds an LCEVC stream group from a representation that declares a dependencyId but omits the codecs attribute, so dash_read_header() dereferences a NULL codecs pointer without checking for it. Only FFmpeg 9.0 before 9.1 is affected; the vector is local with passive user interaction required (the target must open the malicious manifest), and unauthenticated per the provided CVSS vectors. No public exploit code has been identified at the time of analysis, and the vendor has published a fix commit, so this should be handled on a normal patching cycle rather than as an emergency.
An out-of-bounds read in FFmpeg's DVD-Video demuxer (libavformat/dvdvideodec.c) allows a crafted DVD image to crash any application that opens it, producing a denial of service. FFmpeg 7.0 through versions before 9.1 are affected when the dvdvideo demuxer is used in menu mode: a menu IFO (VMGM or VTSM) that declares more than 8 audio streams causes dvdvideo_audio_stream_add_all() to index past the fixed-size audio_control array. The CVSS 4.0 vector rates this availability-only (VA:H, no confidentiality or integrity impact) with a local attack vector and passive user interaction, since the victim must choose to process the supplied disc content; no public exploit code or confirmed active exploitation was identified at time of analysis, and the fix is committed upstream and shipped in FFmpeg 9.1.
Denial of service in FFmpeg's RTP VC-2 HQ packetizer (libavformat/rtpenc_vc2hq.c) lets a crafted Dirac/VC-2 stream crash the process that muxes it. The root cause is an integer overflow (CWE-190) in send_picture(): an oversized picture data unit makes the bit-reader size computation wrap, leaving the reader with no buffer and dereferencing NULL. Only applications that actually use this non-default RTP output path for VC-2 HQ content are exposed, and the crash requires a picture data unit of roughly 256 MiB or more, so impact is availability-only with no code execution or data disclosure; no public exploit code or in-the-wild exploitation has been identified at time of analysis.
CPU exhaustion in FFmpeg before 9.1: the RTP VC-2 HQ muxer (ff_rtp_send_vc2hq in libavformat/rtpenc_vc2hq.c) accepts a Dirac data unit whose next-parse offset is zero, so the parsing pointer never advances and the muxing thread spins indefinitely, hanging the process. Only workflows that actually remux crafted Dirac/VC-2 video into the RTP muxer are affected - the assessed vector is local (AV:L) with passive operator interaction (UI:P) required to feed the stream in - and impact is confined to availability, with no data exposure or code execution described. No public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis; a vendor patch is available and the issue is rated for remediation this month rather than as an emergency.
A NULL pointer dereference in FFmpeg's RDT handling (libavformat/rdt.c, rdt_parse_packet) lets a malicious RTSP server crash ffmpeg or ffprobe by negotiating RDT transport without supplying the ASMRuleBook SDP attribute and then sending an RDT data packet. All FFmpeg builds prior to 9.1 that can be pointed at an attacker-controlled RTSP endpoint are affected; the victim must actively open the stream (user interaction), and the result is limited to a denial of service against the client process with no code execution, data disclosure or integrity impact. Upstream fix commit bc6140f3972b740c6304addaefe5bbbb6046b856 (PR 24916) is available and the project's 9.1 release contains the patched code path; no public exploit code or active exploitation was identified at the time of analysis, and severity is medium, not an emergency.
An out-of-bounds heap read in FFmpeg's lut1d filter (libavfilter/vf_lut3d.c) affects releases before 9.1 and is triggered when 9, 10, 12 or 14-bit planar RGB frames containing sample values above the nominal bit depth are processed with a large 1D LUT. Successful triggering lets an attacker crash the processing application (availability impact is rated high) or leak heap bytes into output pixels, giving limited confidentiality impact; there is no write primitive or code execution path. The flaw is local-reachable and high-complexity, requiring the lut1d filter to be explicitly applied in the pipeline rather than occurring in default processing, and it is not confirmed actively exploited (CISA KEV not listed); no public exploit identified at time of analysis.
Heap-based out-of-bounds reads in FFmpeg's libavfilter lut2 filter (all versions before 9.1) can crash a transcoding process or leak heap memory into the produced video when a crafted image is fed as the filter's second input. Reachability is narrow: the application must build a non-default filtergraph that uses lut2 with the output depth ('d') option explicitly set while leaving the second input's pixel format unrestricted, and the operator must then process attacker-supplied media such as a monoblack BMP or PBM file. No public exploit code was identified at time of analysis and there is no KEV listing; scoring is CVSS 5.8 with a local vector, high attack complexity and a specific precondition, so the issue is a moderate, this-month priority rather than an emergency.
Denial of service in FFmpeg before 9.1 allows crafted HEIF/AVIF files to crash applications that decode them via libavformat, once a memory allocation failure occurs during tile grid parsing. The flaw is a NULL pointer dereference in avformat_stream_group_create(), which assigns the stream group type before the tile_grid parameters are allocated, so the cleanup routine ff_free_stream_group() later follows a NULL tile_grid pointer. The CVSS 4.0 vector is local with high attack complexity and a prerequisite attacker-controlled-conditions flag (AT:P), reflecting that exploitation hinges on an out-of-memory condition the attacker does not reliably control; impact is availability-only (crash, no code execution or data disclosure). No public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor-released fix is FFmpeg 9.1.
Availability-only crashes in FFmpeg’s DASH demuxer affect builds before 9.1 when a crafted MPD manifest supplies oversized BaseURL and SegmentTemplate values that overflow the signed URL-length accumulator and cause undersized allocations. The independent assessment rates this low-to-moderate priority: exploitation needs a victim or service to open the manifest, follows a local/high-complexity path, and requires roughly 2 GB of combined manifest text to reach INT_MAX. No public exploit was identified at time of analysis, and a vendor patch is available.
XML injection in FFmpeg's WebM DASH manifest muxer (libavformat/webmdashenc.c) affects all versions before 9.1: a crafted WebM track whose language metadata contains quote or angle-bracket characters is written verbatim into the AdaptationSet lang attribute, letting the attacker break out of the attribute and inject additional attributes or elements into the generated MPD. Only deployments that explicitly run the webm_dash_manifest muxer over untrusted input are exposed, and the consequence is limited to integrity of the produced manifest (CVSS 4.0 base 4.8, Medium; VI:L with no confidentiality or availability impact). No public exploit code was identified at time of analysis and there is no KEV entry; the vector is AV:L/PR:N/UI:P, so the victim operator must process the attacker-supplied file and generate the manifest for the flaw to matter.
FFmpeg before 9.1 contains a medium-severity uninitialized-memory disclosure (CWE-908) in the RFC 4175 uncompressed-video RTP depacketizer (libavformat/rtpdec_rfc4175.c): a stream that delivers only some scan lines of a frame leaves av_malloc-allocated frame bytes uninitialized, so heap contents can appear in decoded video that is displayed, stored, or re-streamed. Exposure is confined to deployments that ingest attacker-influenced RTP over this professional/broadcast path, which is non-default for most installations; confidentiality impact is low with no integrity or availability effect, and triggering it requires the victim to run FFmpeg against the crafted stream (vendor CVSS 4.0 base 4.8, UI:P; independent assessment CVSS 3.1 AV:N/AC:L/PR:N/UI:R/C:L). Vendor-released patch: FFmpeg 9.1; no public exploit identified at time of analysis.
Information disclosure in FFmpeg before 9.1 allows an attacker who controls an RTMP peer to leak uninitialized stack memory through FFmpeg log messages. The flaw affects RTMP AMF string parsing in libavformat/rtmppkt.c; a malicious RTMP server, or a malicious client connecting to FFmpeg in RTMP listen mode, can send truncated onStatus or _error strings whose declared length exceeds the bytes actually supplied. The assessed impact is low confidentiality only, with no integrity or availability effect; user interaction is required in the sense that the victim must initiate or accept the RTMP connection. A vendor patch is available in FFmpeg 9.1, and no public exploit was identified at time of analysis.
FFmpeg releases before 9.1 can leak leftover heap memory through the VPK demuxer in libavformat/vpk.c, where vpk_read_header() derives the size of the final audio packet from st->duration modulo samples_per_block in a way that can produce a last_block_size not divisible by the channel count. When a crafted VPK file declares a large channel count, the final packet is sized larger than the real remaining samples, so uninitialized heap bytes are carried into the decoded/exported audio output. It is a low-urgency information disclosure: the assessed vector (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N) requires local access and the user opening an attacker-supplied .vpk file, the rarely-used VPK code path is the only affected route, and there is no integrity, availability or code-execution impact. No public exploit has been identified at time of analysis, and the vendor fix is available (upstream commit aeadaca2ab90b78ce9199c45973cace4b619c5d3, released in FFmpeg 9.1).
Uninitialized stack memory disclosure in FFmpeg before 9.1 occurs when the DXA demuxer processes a crafted stream from a source that stalls or returns a short read while loading the 768-byte CMAP palette, causing uninitialized stack bytes to be copied into returned video packets and decoded frames. Exploitation requires a victim to locally invoke FFmpeg or a libavformat-based application on the attacker-supplied DXA input, with elevated complexity and passive user interaction, and impact is limited to low confidentiality loss with no integrity or availability effect. No public exploit was identified at time of analysis, and the issue is assessed as low real-world priority (monitor), with a vendor patch available.
Uninitialized-memory exposure in FFmpeg's RTP Opus depacketizer allows an attacker-controlled RTSP server or RTP sender to leak fragments of stale process memory through packet duration values. FFmpeg builds from 8.0 up to (but not including) 9.1 that actually demux Opus over RTSP/RTP are affected; parsing an empty Opus RTP payload causes opus_parse_packet() to read the TOC byte from stale buffer memory, producing incorrect pkt->duration values whose bits carry remnants of prior memory contents. Impact is confined to a limited confidentiality leak with no code execution, crash or availability effect - the CVSS 4.0 base score is 2.0 and the priority decision is 'monitor'; no public exploit has been identified at time of analysis, and a vendor fix is available (FFmpeg 9.1 / upstream commit 8d8616a).