Upstream information

CVE-2025-59734 at MITRE

Description

It is possible to cause an use-after-free write in SANM decoding with a carefully crafted animation using subversion <2.

When a STOR chunk is present, a subsequent FOBJ chunk will be saved in ctx->stored_frame. Stored frames can later be referenced by FTCH chunks. For files using subversion < 2, the undecoded frame is stored, and decoded again when the FTCH chunks are parsed. However, in process_frame_obj if the frame has an invalid size, there's an early return, with a value of 0.

This causes the code in decode_frame to still store the raw frame buffer into ctx->stored_frame. Leaving ctx->has_dimensions set to false.

A subsequent chunk with type FTCH would call process_ftch and decode that frame obj again, adding to the top/left values and calling process_frame_obj again.
Given that we never set ctx->have_dimensions before, this time we set the dimensions, calling init_buffers, which can reallocate the buffer in ctx->stored_frame, freeing the previous one. However, the GetByteContext object gb still holds a reference to the old buffer.




Finally, when the code tries to decode the frame, codecs that accept a GetByteContext as a parameter will trigger a use-after-free read when using gb.

GetByteContext is only used for reading bytes, so at most one could read invalid data. There are no heap allocations between the free and when the object is accessed. However, upon returning to process_ftch, the code restores the original values for top/left in stored_frame, writing 4 bytes to the freed data at offset 6, potentially corrupting the allocator's metadata.

This issue can be triggered just by probing whether a file has the sanm format.







We recommend upgrading to version 8.0 or beyond.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v3 Scores
CVSS detail SUSE
Base Score 8
Vector CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Adjacent Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality Impact High
Integrity Impact High
Availability Impact High
CVSSv3 Version 3.1
CVSS v4 Scores
CVSS detail CNA (Google Inc) SUSE
Base Score 8.7 7.5
Vector CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attack Vector Adjacent Network Adjacent Network
Attack Complexity High High
Attack Requirements None None
Privileges Required None None
User Interaction Passive Passive
Vulnerable System Confidentiality Impact High High
Vulnerable System Integrity Impact High High
Vulnerable System Availability Impact None High
Subsequent System Confidentiality Impact High None
Subsequent System Integrity Impact High None
Subsequent System Availability Impact None None
CVSSv4 Version 4.0 4.0
SUSE Bugzilla entry: 1251163 [RESOLVED / FIXED]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP6 ffmpeg-4 Not affected
SUSE Linux Enterprise Desktop 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP7 ffmpeg-4 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 ffmpeg-4 Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 ffmpeg-4 Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP6 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP7 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 16.0 ffmpeg-7 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 ffmpeg-4 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 ffmpeg-4 Not affected
SUSE Linux Enterprise Server for SAP Applications 16.0 ffmpeg-7 Not affected
SUSE Linux Enterprise Workstation Extension 15 SP6 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP6 ffmpeg-4 Not affected
SUSE Linux Enterprise Workstation Extension 15 SP7 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP7 ffmpeg-4 Not affected
openSUSE Leap 15.6 ffmpeg Not affected
openSUSE Leap 15.6 ffmpeg-4 Not affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise High Performance Computing 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS ffmpeg-4 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP3-LTSS ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP5 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 SP5-LTSS ffmpeg Not affected
SUSE Manager Proxy 4.3 ffmpeg Not affected
SUSE Manager Proxy 4.3 ffmpeg-4 Not affected
SUSE Manager Retail Branch Server 4.3 ffmpeg Not affected
SUSE Manager Retail Branch Server 4.3 ffmpeg-4 Not affected
SUSE Manager Server 4.3 ffmpeg Not affected
SUSE Manager Server 4.3 ffmpeg-4 Not affected
Products past their end of life and not receiving proactive updates anymore.
SUSE CaaS Platform 4.0 ffmpeg Not affected
SUSE Enterprise Storage 6 ffmpeg Not affected
SUSE Enterprise Storage 7 ffmpeg Not affected
SUSE Enterprise Storage 7.1 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Desktop 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Desktop 15 SP5 ffmpeg-4 Not affected
SUSE Linux Enterprise High Performance Computing 15 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS ffmpeg-4 Not affected
SUSE Linux Enterprise High Performance Computing 15-ESPOS ffmpeg Not affected
SUSE Linux Enterprise High Performance Computing 15-LTSS ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Module for Package Hub 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Real Time 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Real Time 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Real Time 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Real Time 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Server 15 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP1-BCL ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP1-LTSS ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP2-BCL ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP2-LTSS ffmpeg Not affected
SUSE Linux Enterprise Server 15 SP3-BCL ffmpeg Not affected
SUSE Linux Enterprise Server 15-LTSS ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 ffmpeg-4 Not affected
SUSE Linux Enterprise Workstation Extension 15 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP1 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP2 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP3 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP4 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP4 ffmpeg-4 Not affected
SUSE Linux Enterprise Workstation Extension 15 SP5 ffmpeg Not affected
SUSE Linux Enterprise Workstation Extension 15 SP5 ffmpeg-4 Not affected
SUSE Manager Proxy 4.0 ffmpeg Not affected
SUSE Manager Proxy 4.1 ffmpeg Not affected
SUSE Manager Proxy 4.2 ffmpeg Not affected
SUSE Manager Retail Branch Server 4.0 ffmpeg Not affected
SUSE Manager Retail Branch Server 4.1 ffmpeg Not affected
SUSE Manager Retail Branch Server 4.2 ffmpeg Not affected
SUSE Manager Server 4.0 ffmpeg Not affected
SUSE Manager Server 4.1 ffmpeg Not affected
SUSE Manager Server 4.2 ffmpeg Not affected
openSUSE Leap 15.3 ffmpeg Not affected
openSUSE Leap 15.4 ffmpeg Not affected
openSUSE Leap 15.4 ffmpeg-4 Not affected
openSUSE Leap 15.5 ffmpeg Not affected
openSUSE Leap 15.5 ffmpeg-4 Not affected
Container Status
containers/open-webui:0 ffmpeg-4Not affected


SUSE Timeline for this CVE

CVE page created: Mon Oct 6 12:01:57 2025
CVE page last modified: Thu Oct 9 18:36:04 2025