Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Vulnerabilities

CVE-2026-125256 — FFmpeg

High · CVSS 7.3EPSS 0.2% First seen November 09, 2026

One of 121 FFmpeg vulnerabilities published together by NVD.

Vulnerabilities

Research article

FFmpeg Huffyuv RISC-V RVV encoder heap buffer overflow via negative lengths (CVE-2026-125256)

CVECVE-2026-125256
Vendor and productFFmpeg
PublishedNovember 12, 2026 07:20 UTC
Research cut-offNovember 12, 2026 07:12 UTC
Sources reviewed3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10)

Executive summary

CVE-2026-125256 is a heap-based out-of-bounds write (CWE-787) in FFmpeg's Huffyuv encoder on RISC-V builds with the RVV vector extension, in the routine named ffllvidencdiffbytesrvv(), reached when RGB input narrower than 8 or 16 pixels is transcoded [1]. The NVD record carries a secondary CVSS 4.0 score of 7.3 (High) with vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/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, and a secondary CVSS 3.1 score of 7.0 (High) with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H, both scored by the VulnCheck disclosure contact [1]. The CNA lists FFmpeg versions 7.0 through 9.0.2 as affected [1]; no fixed version is published in the reviewed sources. Exploitation requires a local attack position, a non-default RISC-V RVV build, and a transcoding workflow in which the crafted input is processed [1]. The record is Awaiting Analysis, the CVE is not in the CISA KEV catalog, and the FIRST EPSS estimate is 0.0014 (0.14%) for the next 30 days, which is a statistical estimate rather than evidence of exploitation [1, 2, 3]. Defenders should first inventory FFmpeg builds on RISC-V hosts with RVV and Huffyuv transcoding, restrict untrusted media from reaching them, and track an upstream fix, since no vendor advisory or fixed version is in the pack [1].

Key points

  • CVE-2026-125256 is a heap out-of-bounds write (CWE-787) in FFmpeg's Huffyuv encoder RVV routine, triggered by RGB input narrower than 8 or 16 pixels [1].
  • Secondary scores: CVSS 4.0 7.3 High and CVSS 3.1 7.0 High, both scored by the VulnCheck disclosure contact, with local attack vector and high attack complexity [1].
  • The CNA lists FFmpeg 7.0 through 9.0.2 as affected; no fixed version or vendor advisory is present in the reviewed pack [1].
  • Not in CISA KEV as of 2026-11-12; EPSS 0.0014 (0.14%) for 30 days, a statistical estimate, not evidence of exploitation [2, 3].
  • No public proof of concept or in-the-wild exploitation is documented in the reviewed sources [1, 2].
  • Immediate action: inventory RISC-V RVV FFmpeg builds and restrict untrusted media from reaching Huffyuv encoding on them until a vendor fix is confirmed [1].

Vulnerability identification

The table below lists the identifiers and scoring data recorded in the reviewed sources. Scores are shown exactly as published and attributed to their scorer; no score is provided by this article.

FieldValueSource
CVE IDCVE-2026-125256[1]
Vendor / projectFFmpeg project[1]
ProductFFmpeg, affected range 7.0 through 9.0.2 as published by the CNA[1]
ComponentHuffyuv encoder, RISC-V vector (RVV) routine ffllvidencdiffbytesrvv() in libavcodec[1]
Affected platformRISC-V builds with RVV enabled[1]
Published2026-11-09T20:18:11[1]
Last modified2026-11-10T21:46:37[1]
Record statusAwaiting Analysis (NVD has not completed its own analysis)[1]
CWECWE-787, Out-of-bounds Write[1]
CVSS 4.0 base score7.3, High; vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/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; scorer listed as the VulnCheck disclosure contact, type Secondary[1]
CVSS 3.1 base score7.0, High; vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H; scorer listed as the VulnCheck disclosure contact, type Secondary[1]
NVD primary scoreNot published in the reviewed record[1]
CISA KEV statusNot listed as of 2026-11-12[2]
EPSS0.0014 (0.14%), percentile 0.0363, dated 2026-11-10[3]
Related referencesPull request 25573 on the FFmpeg code host; commit 1f7bdea654a8a9a1761759e22d83943371cff21f; the FFmpeg repository; the n9.0.2 tag view of libavcodec/riscv/llvidencdsp_rvv.S at line 26; a VulnCheck advisory for this flaw[1]
GitHub Security AdvisoryNot present in the reviewed packNot established by the reviewed sources
Vendor security advisoryNot present in the reviewed packNot established by the reviewed sources

The two CVSS scores disagree on user interaction: the 4.0 vector sets UI:P (passive) while the 3.1 vector sets UI:R (required) [1]. Both score sets come from a secondary scorer rather than NVD, and the record is still awaiting analysis, so these scores may change [1]. The record names the weakness as CWE-787 [1].

Technical background

FFmpeg is an open-source multimedia framework whose libavcodec library provides encoders and decoders for audio and video formats. Huffyuv is a lossless video codec implemented in libavcodec; its encoder converts pixel data and compresses it using Huffman-coded difference values. The flaw is reported in the Huffyuv encoder's difference routine for pixel bytes, which has a RISC-V vector-extension (RVV) implementation [1].

RVV is the RISC-V vector extension, a set of instructions that operate on variable-length vectors of data in parallel. Optimised FFmpeg routines commonly ship with a generic C path and architecture-specific assembly paths, selected at runtime or build time according to CPU features and build configuration. The record places the issue specifically in the RVV-enabled path on RISC-V builds [1].

A heap buffer is a block of memory allocated dynamically at runtime. A write past the end of such a buffer is an out-of-bounds write, the weakness class CWE-787 [1]. In this codec the relevant buffer is described in the record as a temporary encoder buffer [1].

Trust boundary: the encoder processes video frames that may come from files, streams or other programs. Any pipeline that feeds untrusted media into the encoder crosses a trust boundary, because the frame dimensions and pixel layout are controlled by the input [1].

Vulnerability description

The record describes a heap buffer overflow in the RVV difference routine of the Huffyuv encoder. It states that the overflow allows corruption of heap memory through negative length values, and that RGB input narrower than 8 or 16 pixels, when transcoded to Huffyuv on RVV-enabled RISC-V builds, causes writes beyond the encoder's temporary buffer [1].

Security property violated: memory safety, specifically the integrity of heap memory bounded by the temporary buffer. The record reports write-based corruption, so integrity is the primary property affected [1].

What an attacker can cause: corruption of adjacent heap memory during encoding. The record does not state whether the corruption can be steered to control execution, leak data or crash the process [1]. Confidentiality and availability effects are therefore not established by the reviewed sources beyond the secondary scores' vectors, which assign high values to confidentiality, integrity and availability [1].

Conditions that must exist: a build of FFmpeg through 9.0.2 on a RISC-V platform with RVV enabled; a Huffyuv encoding path; and RGB input whose width is below the 8 or 16 pixel threshold described in the record [1].

What the record does not establish: whether default builds are affected, whether non-RVV architectures are affected, the precise threshold per pixel format, whether the overflow is reachable through common frontends, and whether it has been reproduced. Analyst assessment: the record's description of the trigger indicates the issue is data-dependent rather than requiring a special API sequence, but this is not confirmed by a vendor analysis in the pack [1].

Root cause analysis

Confirmed: the record attributes the issue to the RVV Huffyuv difference routine producing or using negative length values that lead to writes beyond a temporary buffer, classified as CWE-787 [1].

Analyst assessment: the likely underlying error is missing or insufficient validation of a computed length against the allocated size of the temporary buffer when the image width is smaller than the vector processing granularity. Vector routines commonly process fixed-width blocks; when the input is narrower than a block, a length computed by subtraction can become negative and, if treated as unsigned or used without a lower-bound check, produce an oversized write. This reasoning is consistent with the record's wording about width thresholds of 8 or 16 pixels, but the reviewed sources do not confirm the code-level mechanism [1].

Why existing controls may fail: the C reference path may be correct while the assembly path is not exercised by the same tests, so the defect can persist in an optimised variant only. This is an analyst assessment and not established by the reviewed sources.

The reviewed sources do not disclose the exact code change, the commit's content, or the vendor's root cause analysis. The commit and pull request are listed in the record without tags, and the reviewed pack does not state that they fix this issue [1]. The root cause as written here is therefore only partly confirmed.

Technical mechanics

The following numbered flow describes the mechanism as the record summarizes it. Steps 3 and 4 are analyst assessment.

  1. The encoder receives RGB video frames for Huffyuv encoding on a RISC-V build with RVV enabled [1].
  2. The frame width is smaller than the block size the RVV difference routine expects, which the record ties to the 8 or 16 pixel thresholds [1].
  3. Analyst assessment: a length value used by the routine is computed in a way that becomes negative for such widths.
  4. Analyst assessment: the negative value is used as a write extent or converted to a large unsigned size, so the routine writes past the end of the temporary encoder buffer.
  5. The overflow corrupts adjacent heap memory, as stated by the record [1].
Illustrative flow (not from a source):
RGB frame (width < block size) -> RVV diff-bytes routine -> length computed as negative
      -> write extent exceeds temp buffer -> heap corruption

Authentication and authorization checks: none are described in the record. The attack is a data-processing flaw, so the relevant control is input validation at the encoder boundary, not an access check [1].

Preconditions and environment: RVV-enabled RISC-V build; Huffyuv encoding; sub-threshold RGB width. The record does not state a required FFmpeg command line or API call [1].

Control that should have prevented the issue: bounds validation of computed lengths against the allocated temporary buffer size before the vector store, and handling of narrow inputs with a scalar or safe fallback. Whether such a control exists in the fixed code is not established by the reviewed sources.

Attack surface and exploitation prerequisites

PrerequisiteAssessmentBasis
Network accessNot required by the 4.0 vector (AV:L) or 3.1 vector (AV:L)[1]
Adjacent networkNot indicated by either vector[1]
Local accessRequired by both vectors, AV:L[1]
Physical accessNot indicatedNot established by the reviewed sources
AuthenticationNone required (PR:N in both vectors)[1]
Privilege levelNone required per vectors[1]
User interaction4.0 vector UI:P (passive); 3.1 vector UI:R (required). The two vectors disagree[1]
Attack complexityHigh (AC:H in both vectors)[1]
Attack requirementsAT:P in the 4.0 vector, meaning deployment-specific conditions exist[1]
Required configurationRISC-V build with RVV enabled; Huffyuv encoding path[1]
Attacker-controlled inputRGB video frames with width below the record's thresholds[1]
Environmental dependenciesExact per-format thresholds and build flags not establishedNot established by the reviewed sources

The vectors show that local access is required and that the attack complexity is high. The record's description also says attackers can supply input, which is consistent with a local user or process that supplies media to an FFmpeg transcoding job. Whether this is a multi-tenant service, a user-facing application or a batch pipeline is not established by the reviewed sources [1].

Exploitation scenarios and attack lifecycle

Illustrative scenario: a user or automated job on a RISC-V workstation or build host transcodes a media file supplied from an untrusted source into Huffyuv. The input contains narrow RGB frames, triggering the defect. The defensive opportunities are to restrict which files reach the transcoder, to run transcodes in a sandboxed low-privilege account, and to monitor for crashes of the FFmpeg process on RISC-V hosts [1].

Illustrative scenario: a shared build or media-processing service on RISC-V hardware exposes FFmpeg to multiple tenants. Crossing tenant boundaries is not established by the reviewed sources, and the vectors' local attack vector and high attack complexity make this a less likely path than single-user exposure [1].

Confirmed post-exploitation outcomes: none. The record describes heap corruption but does not document code execution, data disclosure or denial of service from a demonstrated exploit [1].

Attack lifecycle status: no proof of concept, exploit sample or in-the-wild campaign is documented in the reviewed pack. The VulnCheck advisory is listed as a reference, but its content is not included in the pack and so is not evaluated here [1].

Impact analysis

AreaTechnically demonstratedPlausible downstream consequence (analyst assessment)
ConfidentialityNot demonstrated; the secondary 3.1 and 4.0 vectors assign high impact [1]Heap corruption could expose adjacent data if the corrupted memory is later read; not established
IntegrityHeap memory corruption described by the record [1]Corrupted encoder state could produce wrong output or unstable processing
AvailabilityNot demonstrated; the vectors assign high impact [1]A crash of the transcoding process or host service is plausible
Authentication and authorizationNo authentication bypass described [1]Not established
Privilege boundariesNot described [1]Escalation beyond the user running FFmpeg is not established
Data and privacyNot describedDepends on what media is processed; not established
Business operationsNot describedDisruption of media pipelines on RISC-V hosts is plausible
Regulatory or contractualNot describedNot established by the reviewed sources

Affected products and versions

VendorProduct / componentAffected versionsPlatformFixed versionSource and qualification
FFmpeg projectFFmpeg, Huffyuv encoder RVV routine7.0 through 9.0.2 inclusive, as published by the CNARISC-V builds with RVVNot established by the reviewed sources[1]; CNA-published range, record awaiting NVD analysis

Known exclusions: none are published in the reviewed sources. Whether versions before 7.0 are unaffected is not stated. Whether non-RVV architectures are unaffected is not stated, although the record ties the flaw to RVV-enabled RISC-V builds [1]. The published range is stated by the CNA; no complete vendor-confirmed range from a vendor advisory is present in the pack.

Exploitation and threat intelligence status

Confirmed exploitation in the wild: not established by the reviewed sources.

CISA KEV: not listed as of 2026-11-12. The catalog entry is absent, which is not evidence that the CVE has not been exploited [2].

EPSS: 0.0014 (0.14%) probability of exploitation activity in the next 30 days, percentile 0.0363, dated 2026-11-10. EPSS is a statistical model estimate and does not indicate observed exploitation [3].

Public proof of concept: none identified in the reviewed pack. The record references a VulnCheck advisory, but its content is not in the pack [1].

Threat actors, campaigns and sectors: not attributed by any reviewed source.

Theoretical exploitability: the memory-corruption class and the record's description make the flaw a plausible target for further research, but the high attack complexity and local vector limit opportunity [1, 3].

Indicators of compromise

Not established by the reviewed sources. No file hashes, file names, domains, IP addresses, URLs for attacker infrastructure, process command lines, or log events are given for this CVE. The record's references are to the code host, the pull request, the commit and the advisory page, and these are not indicators of compromise [1]. Indicators, when published, go stale and must be validated against the local environment before blocking.

Detection and exposure assessment

Asset inventory: identify every host running FFmpeg with a version from 7.0 through 9.0.2 inclusive, on a RISC-V architecture with RVV support [1]. Use the installed package manager or build records on each host to list versions, and record the build configuration.

Version check: the standard FFmpeg command below prints the build version and configuration. It is read-only. Its expected output includes a version line and a configuration line. The reviewed sources do not state which configuration flag marks RVV support, so the operator must confirm the RVV build option from the build records rather than infer it from this output.

ffmpeg -version

Limitations: a version match is not proof of exploitability. Exploitability also depends on RVV being enabled, Huffyuv encoding being used and narrow RGB input being processed [1].

Log and telemetry review: review job logs of transcoding pipelines for Huffyuv output on RISC-V hosts, and for abnormal termination of FFmpeg processes. The reviewed sources give no specific log event or event ID for this flaw, so any detection rule must be authored from local telemetry and labelled as an analyst rule.

Network and endpoint monitoring: the vector shows local access, so network sensors are of limited value; endpoint process telemetry for FFmpeg crashes is the more relevant source.

Authenticated vulnerability scanning: no vendor scanner plugin or check is named in the reviewed sources.

Immediate mitigation

  1. Restrict untrusted media from reaching FFmpeg on RISC-V RVV hosts. Protects against the untrusted-input path described in the record [1]. Limitation: does not remove the defect, and may block legitimate workflows. Side effect: transcoding jobs may fail. Verify by confirming that the input queue or upload path no longer passes files to the transcoder from untrusted sources. Analyst recommendation, following from the vector's local attack vector and the record's input description.
  1. Avoid Huffyuv encoding of RGB input in affected builds until a fixed build is confirmed. Protects against the encoding path named in the record [1]. Limitation: the record does not state whether other codecs share the routine, so the scope of this workaround is not established. Verify by checking job definitions for the Huffyuv encoder on RISC-V hosts. Analyst recommendation.
  1. Run transcoding jobs under a dedicated low-privilege account in a restricted sandbox or container, limiting filesystem and network access. Reduces the consequences of memory corruption. Limitation: sandboxing does not prevent the corruption itself. Verify the account, its permissions and the container configuration. Analyst recommendation, following general containment practice rather than a source.
  1. Increase monitoring of FFmpeg crashes and abnormal exits on RISC-V hosts. Provides early signal of triggering inputs. Limitation: crashes may have other causes. Verify that crash logs are collected centrally. Analyst recommendation.

Permanent remediation

Vendor-confirmed fix: not established by the reviewed sources. No vendor advisory, fixed release number or patch statement is present in the pack. The commit 1f7bdea654a8a9a1761759e22d83943371cff21f and pull request 25573 are referenced in the record without tags, and the pack does not state that either fixes this CVE [1].

Recommended action: upgrade to a FFmpeg release that the FFmpeg project publishes as containing the fix for this CVE, once identified. Until a fixed version is confirmed from the vendor, treat all builds in the 7.0 through 9.0.2 range on RISC-V RVV as affected [1].

Before upgrading: take a backup of job configurations and binaries, schedule a maintenance window for transcoding services, and record the currently installed version and build options so rollback is possible. Restart requirement: not established by the reviewed sources; a restart of the consuming service is expected after replacing the binary.

Configuration changes after updating: none documented in the pack.

Hardening that is not vendor-confirmed: rebuild RISC-V FFmpeg with the RVV path disabled where the build system permits, if the operational need allows, as a temporary measure to be validated against the test suite. This is an analyst recommendation and its effect on this flaw is not established by the sources.

Workarounds and compensating controls

Available workarounds: restricting untrusted input, avoiding Huffyuv encoding of RGB input, and running under sandboxing, as described in Immediate mitigation. Their residual risk is that the defective code path remains present and can be reached by any input that meets the record's conditions [1].

Why a workaround is not a permanent fix: input restriction depends on every upstream pipeline and can be bypassed by a new path; sandboxing limits impact but not corruption; and the defect remains in the binary until a fixed build is installed.

Validation and verification

  1. Confirm the installed FFmpeg version on each RISC-V host with ffmpeg -version, and record it. Confirm it is outside 7.0 through 9.0.2 only once a fixed version has been confirmed from the vendor [1].
  2. Confirm from build records that the installed binary matches the fixed build, including the RVV configuration.
  3. Confirm that the workaround controls remain in place: the input path restrictions, the Huffyuv job definitions and the sandbox configuration.
  4. Re-run the organisation's own regression tests for Huffyuv transcoding of narrow RGB inputs on a RISC-V RVV build in a non-production environment, using inputs the organisation creates and controls. The reviewed sources provide no vendor test case.
  5. Review crash and error logs of transcoding services for the period after the change.
  6. Record the evidence, owner, date and any exceptions. A single version check does not establish that the system is secure.

Incident response

If a crash or memory-corruption symptom is observed on an affected host, treat it as a potential exploitation signal pending investigation.

Triage and scope: identify the input files and jobs that preceded the crash, the user or service account that ran them, and the FFmpeg build version.

Containment: isolate the affected host from sensitive data and remove the untrusted input source, without deleting evidence.

Evidence preservation: preserve process crash output, job logs, the input files, and the binary and its build record. Do not overwrite or clean up these artefacts before collection.

Investigation: review endpoint process telemetry for unexpected child processes or file access following the FFmpeg crash. No indicators are given by the sources, so any finding must be established from local evidence.

Credential rotation: rotate credentials only where the evidence shows the transcoding account or its secrets were exposed.

Eradication and patching: install a fixed build once confirmed by the vendor, and rebuild or replace any binary that may have been affected.

Recovery and monitoring: restore service from verified binaries and monitor crash logs for a defined period.

Notification and reporting: follow the organisation's incident response plan and any applicable obligations; the reviewed sources do not establish any regulatory requirement.

Lessons learned: record the input source and pipeline that allowed untrusted media to reach the encoder.

Security hardening and prevention

Secure development and code review (defence-in-depth, analyst recommendation): require bounds checks on all computed lengths before vector stores in architecture-specific routines, and review narrow-width edge cases in each SIMD path, including RVV, specifically.

Input validation: validate frame dimensions and pixel-format constraints before dispatch to the encoder, rejecting or handling widths below the thresholds the record describes [1].

Testing and regression coverage: add test cases for narrow RGB widths on RVV builds, and compare the RVV path against the C reference path for the same inputs.

Least privilege and isolation: run media processing under dedicated low-privilege accounts and sandboxes.

Secure configuration: where RISC-V RVV builds are not required, do not deploy them for untrusted media processing.

Patch and vulnerability management: track the FFmpeg project's fixed release for this CVE and CVE record updates, since the NVD record is still awaiting analysis [1].

Logging and alerting: collect FFmpeg crash and exit codes centrally and alert on repeated crashes in transcoding jobs.

Risk assessment

Technical severity: the secondary scores are 7.3 (CVSS 4.0) and 7.0 (CVSS 3.1), both High, attributed to VulnCheck's disclosure contact and not NVD [1]. These scores are not an organisation-specific risk rating.

Exposure and asset criticality: exposure is limited to RISC-V hosts with RVV-enabled FFmpeg builds performing Huffyuv encoding of RGB input. Such deployments are likely to be specialised. Their number in any organisation is unknown until inventory is complete.

Exploit prerequisites and opportunity: local access, high attack complexity, a non-default architecture and build, and a specific encoding path [1].

Evidence of exploitation: none confirmed; not in KEV; EPSS 0.0014 with percentile 0.0363 [2, 3].

Potential business impact: disruption of media pipelines and possible integrity issues in encoded output, with the wider consequences not established.

Existing controls and residual risk: sandboxing and input restriction reduce but do not remove risk until a fixed build is installed.

Recommended priority: for organisations with RISC-V RVV FFmpeg deployments that process untrusted media, treat as high priority for inventory and input restriction now, and for upgrade once a fix is confirmed. For organisations without such deployments, verify exposure and record the result. Reasoning: the memory-corruption class and the record's description justify prompt action where exposure exists, while the local vector, complexity and low EPSS reduce urgency relative to network-reachable issues [1, 3]. This priority is an analyst assessment with the stated assumptions that the affected builds are present and that untrusted input may reach them.

Conclusion

CVE-2026-125256 is a heap out-of-bounds write in the RVV-enabled Huffyuv encoder of FFmpeg, affecting the published range 7.0 through 9.0.2 on RISC-V builds, as recorded by the CNA and summarised in an NVD record that is still awaiting analysis [1]. The core flaw is a write beyond a temporary buffer triggered by narrow RGB input, with the root cause only partly confirmed [1]. Teams that operate RISC-V RVV FFmpeg builds should act first by inventorying those builds and restricting untrusted media from reaching them. The permanent fix is an upgrade to a vendor-confirmed fixed release, which the reviewed sources do not identify. Closure requires the vendor's fixed version, verified installed binaries, and regression evidence from controlled test inputs [1, 2, 3].

Remediation checklist

  1. Inventory every host running FFmpeg versions 7.0 through 9.0.2 inclusive on RISC-V with RVV enabled, recording version from ffmpeg -version and the build configuration from build records [1].
  2. Restrict untrusted media from reaching FFmpeg transcoding on those hosts; verify by confirming the input queue or upload path no longer delivers untrusted files to the transcoder [1].
  3. Suspend Huffyuv encoding of RGB input in affected builds where operationally possible; verify by reviewing job definitions on those hosts [1].
  4. Run transcoding jobs under a dedicated low-privilege account in a sandbox or container; verify account permissions and container configuration.
  5. Centralise FFmpeg crash and abnormal exit logs from RISC-V transcoding hosts and alert on repeated crashes; verify that events reach the log platform.
  6. Track the FFmpeg project and the NVD record for a vendor-confirmed fixed version, since none is published in the reviewed sources [1].
  7. Upgrade to the vendor-confirmed fixed FFmpeg release once identified, with backup of binaries and job configuration beforehand; verify the installed version and build options afterwards.
  8. Add regression tests with controlled narrow-width RGB inputs on RVV builds, comparing against the C reference path; verify results in a non-production environment.
  9. Record the evidence, owner, date and any exceptions, and keep the issue open until a fixed version is installed and verified [1].

Evidence gaps

  • Vendor security advisory or fixed release number: not in the pack; needed to define the permanent fix and closure criteria [1].
  • Complete affected range confirmation: only the CNA-published range 7.0 through 9.0.2 is given; whether earlier or other versions are affected is not established [1].
  • Root cause from the vendor or a technical analysis: the exact code defect, the length computation and buffer layout are not disclosed; the commit and pull request contents are not in the pack [1].
  • Whether the referenced commit or pull request fixes this CVE: not stated in the record [1].
  • NVD's own CVSS assessment: the record is Awaiting Analysis and the scores shown are secondary [1].
  • Per-format width thresholds and required build flags: the record gives 8 or 16 pixels without a per-format or configuration breakdown [1].
  • Proof-of-concept, exploit samples and exploitation evidence: none in the pack beyond the VulnCheck advisory reference, whose content is not included [1, 2].
  • Indicators of compromise: none given by any source [1].
  • Reproduction by the organisation: no test case is provided; reproduction in a controlled environment would be needed to confirm the trigger [1].

References

  1. CVE-2026-125256 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125256. Accessed 2026-11-12. CVE identity, record status and dates, official description summary, CWE-787 classification, CVSS 4.0 and 3.1 scores, vectors and secondary scorer, CNA affected range 7.0 through 9.0.2, component and platform scope, listed references including the pull request, commit and VulnCheck advisory, and the
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12. Not listed in CISA KEV as of 2026-11-12, and the caveat that absence is not evidence of non-exploitation.
  3. EPSS score for CVE-2026-125256. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125256. Accessed 2026-11-12. FIRST EPSS estimate of 0.0014 (0.14%), percentile 0.0363, dated 2026-11-10, and its interpretation as a statistical estimate.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in ff_llvidenc_diff_bytes_rvv() that allows attackers to corrupt heap memory by triggering negative length values in the Huffyuv encoder. Attackers can supply RGB video narrower than 8 or 16 pixels for huffyuv transcoding on RVV-enabled RISC-V builds, causing writes past the encoder's temp buffer.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.3 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
yes, a user must view or visit something
Impact
high on confidentiality, integrity and availability
Impact on other systems
none

Vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/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 3.1 7.0 from the CNA (vulncheck.com): CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
FFmpeg≥ 7.0, ≤ 9.0.2—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • FFmpeg

Frequently asked questions

What is CVE-2026-125256?

CVE-2026-125256 is a heap-based out-of-bounds write (CWE-787) in FFmpeg's Huffyuv encoder on RISC-V builds with the RVV vector extension, in the routine named ffllvidencdiffbytesrvv(), reached when RGB input narrower than 8 or 16 pixels is transcoded. Weakness type: Out-of-bounds Write (CWE-787).

How severe is CVE-2026-125256?

CVE-2026-125256 has a CVSS 4.0 base score of 7.3 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Is CVE-2026-125256 being exploited?

Not as far as is known: CVE-2026-125256 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-125256?

FFmpeg ≥ 7.0, ≤ 9.0.2.

How do I fix CVE-2026-125256?

Inventory every host running FFmpeg versions 7.0 through 9.0.2 inclusive on RISC-V with RVV enabled, recording version from ffmpeg -version and the build configuration from build records. Restrict untrusted media from reaching FFmpeg transcoding on those hosts; verify by confirming the input queue or upload path no longer delivers untrusted files to the transcoder. Suspend Huffyuv encoding of RGB input in affected builds where operationally possible; verify by reviewing job definitions on those hosts.

Timeline & sources

References