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

Home › CVE › Vulnerabilities

CVE-2026-125265 — FFmpeg

Medium · CVSS 5.8EPSS 0.1% First seen November 09, 2026

One of 121 FFmpeg vulnerabilities published together by NVD.

Vulnerabilities

Research article

FFmpeg NVDEC Use-After-Free in libavcodec (CVE-2026-125265): Stale Bitstream Pointer After Slice Errors

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

Update — November 25, 2026

Updates come from the CVE's records (NVD, CISA, GitHub, FIRST) as they change, newest first. The article below is as it was published on November 12, 2026.

Executive summary

CVE-2026-125265 is a use-after-free (CWE-416) in FFmpeg's NVDEC hardware-decoding path in libavcodec/nvdec.c, where a stale bitstream pointer is not reset after slice errors [1]. NVD lists two CVSS scores from VulnCheck: 5.3 MEDIUM under CVSS 3.1 (primary) with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H, and 5.8 MEDIUM under CVSS 4.0 (secondary) [1]. The CVE record states that FFmpeg versions through 9.0.2 are affected, and no fixed version is published in the reviewed sources [1]. Exploitation requires a local-access position in the cited vector and a user to process crafted video, and the record describes the result as a crash or disclosure of stale heap contents rather than code execution [1]. The CVE is not listed in the CISA KEV catalog as of 2026-11-12, which does not establish that it has not been exploited [2]. The FIRST EPSS estimate is 0.0012 (0.12%) with a percentile of 0.0174, a statistical estimate and not evidence of exploitation [3]. The record was still Awaiting Analysis at the research cut-off [1]. The most important immediate action is to inventory FFmpeg builds at or below 9.0.2 that use NVDEC, and to restrict decoding of untrusted media in those builds until a fixed release or vendor guidance is confirmed [1].

Key points

  • CVE-2026-125265 is a use-after-free (CWE-416) in FFmpeg's NVDEC path in libavcodec, caused by a stale ctx->bitstream pointer after slice errors [1].
  • NVD lists CVSS 3.1 5.3 MEDIUM (primary) and CVSS 4.0 5.8 MEDIUM (secondary), both scored by VulnCheck [1].
  • FFmpeg through and including 9.0.2 is listed as affected; no fixed version is published in the reviewed sources [1].
  • The record describes crashes and possible exposure of stale heap contents; code execution is not described [1].
  • Not listed in CISA KEV as of 2026-11-12, and EPSS is 0.0012 (0.12%); neither shows whether exploitation has occurred [2, 3].

Vulnerability identification

FieldValueSource
CVE IDCVE-2026-125265[1]
Vendor / CNA-published productFFmpeg[1]
Componentlibavcodec, NVDEC decoding source file libavcodec/nvdec.c, function ffnvdecstartframe[1]
Affected platformNot separately stated; the flaw is in the NVDEC hardware-accelerated decode path[1]
Published2026-11-09T20:18:13[1]
Last modified2026-11-10T21:46:36[1]
Record statusAwaiting Analysis[1]
CWECWE-416, Use After Free[1]
CVSS 3.1 base score5.3 MEDIUM, vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H, scored by disclosure@vulncheck.com (Primary)[1]
CVSS 4.0 base score5.8 MEDIUM, vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/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, scored by disclosure@vulncheck.com (Secondary)[1]
Related advisories or patch IDsNo vendor advisory identifier, fixed release or patch identifier is listed in the reviewed sources. The record references a pull request, a commit and a tagged source line for version 9.0.2, and a VulnCheck advisory[1]
KEV statusNot listed as of 2026-11-12[2]
EPSS0.0012 (0.12%), percentile 0.0174, dated 2026-11-10[3]

The two CVSS scores differ in version and in some metric values, which reflects different scoring methods rather than a conflict about the flaw. Both scores are secondary-scorer assessments published through NVD, and the record is not yet analysed by NIST [1]. Neither score should be read as an organization-specific risk rating.

Technical background

FFmpeg is an open-source multimedia framework whose libavcodec library decodes and encodes audio and video streams. NVDEC is NVIDIA's hardware video decoding interface. In FFmpeg, the nvdec.c source file in libavcodec provides the glue that passes compressed frame data, referred to as the bitstream, to NVIDIA's decoding API and retrieves decoded pictures [1]. The record names the calls ffnvdecstartframe, which begins decoding a picture, and cuvidDecodePicture, which submits picture data to the NVIDIA decoder [1].

A use-after-free condition occurs when a program continues to use a pointer to memory after that memory has been released back to the allocator. The memory may then be reused for another object, so reads or writes through the stale pointer act on unintended data. In this flaw, the relevant pointer is ctx->bitstream, the decoder context's reference to the bitstream buffer [1].

Trust boundary: media files and streams are untrusted input from the perspective of a decoder. A decoder processes attacker-controlled bytes in a privileged or sensitive process, such as a media server, transcoding service or desktop application, so correctness of its state handling matters even when the decoder is not network-facing [Analyst assessment].

Vulnerability description

The CVE record describes the flaw as a use-after-free in the NVDEC code path in libavcodec, caused by ffnvdecstartframe failing to reset the ctx->bitstream pointer after slice errors [1]. According to the record, an attacker can supply crafted video that causes a picture to be abandoned before the end-of-frame step. When this happens, cuvidDecodePicture can read heap memory that has already been freed. The record states the possible effects as application crashes or exposure of stale heap contents [1].

Security properties affected: availability, through crashes, and confidentiality, through reads of freed heap memory. The record's CVSS 3.1 vector assigns low confidentiality impact and high availability impact, with no integrity impact [1]. The record does not state that code execution, privilege escalation or memory corruption that changes program control flow has been demonstrated. Those outcomes are therefore not established by the reviewed sources.

Conditions for the flaw to matter: the affected build must use the NVDEC path, and the decoder must process a crafted stream that triggers a slice error and an abandoned picture before end-of-frame [1]. Whether the default FFmpeg build or common distribution packages enable NVDEC is not established by the reviewed sources.

Root cause analysis

Confirmed: the record attributes the flaw to the failure of ffnvdecstartframe to reset ctx->bitstream after a slice error, and classifies it as CWE-416 [1].

Analyst assessment: the likely mechanism is a state-management error. The decoder context keeps a pointer to a bitstream buffer. When the error path abandons a picture, the buffer is released or invalidated, but the pointer is retained. A later decode step in the same context then passes the stale pointer to the NVIDIA decoding call. This is consistent with the record's description but is not a verified code analysis, because the reviewed sources do not include the patch diff or the function body.

Why existing controls may fail: the error path is a rarely exercised branch. Ordinary functional tests of valid streams do not reach it, and memory-safety tools may not observe the stale read unless the error path is exercised with crafted input [Analyst assessment]. The record does not state whether AddressSanitizer or similar tools were used by the reporter.

Not established by the reviewed sources: the exact lines changed by the fix, whether the cause includes allocator-ownership ambiguity in addition to the missing reset, and whether other error paths share the pattern.

Technical mechanics

The following numbered flow is a conceptual reading of the record's description [1], labelled Illustrative for the steps not stated in the record.

  1. The decoder receives compressed video data and sets up a picture decode in ffnvdecstartframe, which stores a reference to the bitstream buffer in ctx->bitstream [1].
  2. A slice within the picture contains an error, and the picture is abandoned before the end-of-frame step [1].
  3. The error path releases or invalidates the bitstream buffer but does not reset ctx->bitstream, leaving a stale pointer [S1, Illustrative for the release step].
  4. The decoder proceeds to a later call that passes picture data to cuvidDecodePicture through the stale context state [1].
  5. The NVIDIA decoding call reads memory at the freed location, which may crash the process or return stale heap contents [1].

Control that should have prevented the issue: clearing or validating the stored pointer whenever its target is released, on every error path, and validating that a picture is in a consistent state before submission [Analyst assessment]. The reviewed sources do not describe the exact validation that the fixed code adds.

Attack surface and exploitation prerequisites

PrerequisiteAssessmentSource
Network accessNot network-reachable according to the CVSS 3.1 attack vector AV:L and the CVSS 4.0 attack vector AV:L[1]
Adjacent networkNot indicated by the vectors[1]
Local accessIndicated by the vectors; the record does not explain what local position is required beyond the processing of crafted media[1]
AuthenticationPR:N in both vectors, meaning no privileges are required according to the scoring[1]
User interactionCVSS 3.1 UI:R (required) and CVSS 4.0 UI:P (passive); the record does not describe the specific user action, such as opening a file[1]
Required configurationThe NVDEC decode path must be used; the record does not state whether this is enabled by default[1]
Attack complexityHigh in both vectors (AC:H); the reason is not explained in the record[1]
Attack requirementsCVSS 4.0 AT:P (present), meaning a deployment-specific condition is needed; the condition is not named in the record[1]
Physical accessNot indicated[1]

These prerequisites are read from the vectors and the record's description. Where the sources do not name a condition, it is not established by the reviewed sources. The vectors alone do not show that a given deployment is reachable by an attacker, because a media decoder is exposed only where it processes untrusted files or streams.

Exploitation scenarios and attack lifecycle

Illustrative scenario 1: a service that transcodes user-uploaded videos on a GPU host using FFmpeg with NVDEC. An external party uploads a crafted file. The decode job terminates or leaks heap contents from the worker process, which may disrupt the service or expose residual data within that process [S1, Illustrative].

Illustrative scenario 2: an analyst or end user opens a crafted video in a desktop application linked against an affected libavcodec on an NVDEC-capable workstation. The application crashes, and a repeated open attempt causes denial of service [S1, Illustrative].

No source documents either scenario, and the reviewed sources describe no observed attack chain. Defensive opportunities: restrict which processes decode untrusted media, run decoders with reduced privileges in isolated containers or sandboxes, monitor for unexpected decoder crashes, and quarantine files that trigger repeated failures [Analyst assessment].

Impact analysis

AreaTechnically demonstrated by sourcesPlausible consequence, not demonstratedSource
ConfidentialityRecord describes possible exposure of stale heap contentsDisclosure of data that the freed memory held from earlier processing in the same process[1]
IntegrityCVSS 3.1 assigns no integrity impactNot established by the reviewed sources[1]
AvailabilityRecord describes application crashesRepeated crashes of a shared transcoding or media service[1]
Authentication and authorizationNot describedNot established by the reviewed sources[1]
Privilege boundariesNot describedNot established by the reviewed sources[1]
Data and privacyStale heap contents may include media dataExposure of user media or metadata, depending on process contents[S1, Analyst assessment]
Business operationsNot describedInterruption of media-processing pipelines[Analyst assessment]
Regulatory or contractualNot describedDepends on the data processed; not established by the reviewed sources[Analyst assessment]

Affected products and versions

VendorProduct or componentAffected versionsFixed versionPlatform or deploymentSource and qualification
FFmpegFFmpeg, libavcodec NVDEC pathThrough and including 9.0.2 (published as affected less than or equal to 9.0.2)Not published in the reviewed sourcesBuilds with NVDEC support; configuration not established[1], CNA-published range

The lower bound of the affected range is not published, so it is not established whether older releases are affected. The record references a pull request and a commit as well as a tagged source line for version 9.0.2, but the reviewed sources do not state which release first contains a fix [1]. Confirm the fixed release against the official FFmpeg release notes and repository before closing any exposure assessment.

Exploitation and threat intelligence status

EvidenceStatusDateSource
Confirmed exploitation in the wildNot established by the reviewed sourcesNot applicable[1, 2]
CISA KEV listingNot listed as of 2026-11-122026-11-12[2]
Public proof of conceptNot established by the reviewed sources; the record references a VulnCheck advisory and code references, but the sources do not state that working test code is public2026-11-10[1]
Threat actors, campaigns or sectorsNot attributed by any reviewed sourceNot applicable[1, 2, 3]
EPSS0.0012 (0.12%), percentile 0.01742026-11-10[3]

The KEV catalog is a list of vulnerabilities with reported exploitation, so the absence of an entry is not proof that the flaw has not been exploited [2]. The EPSS value is a model estimate of activity over the next 30 days and does not describe observed exploitation [3]. The record was in Awaiting Analysis at the cut-off, so the NVD analysis may change the scores or classification [1].

Indicators of compromise

Not established by the reviewed sources. No file hashes, file names, domains, IP addresses, URLs, process names, log events or network patterns are given for this CVE. Indicators for crafted media would have to be obtained from a vendor or incident responder before they are used, and any such indicator would need validation because indicators go stale quickly.

Detection and exposure assessment

Step 1, inventory: list every host, container image and application that bundles or links libavcodec, and record the FFmpeg version each uses. Include statically linked binaries and vendored copies, which package managers may not report [Analyst assessment]. Cross-check any container images that include an FFmpeg build.

Step 2, version check: on a system where the ffmpeg command-line tool is installed, run the following read-only command. Prerequisite: the binary must be on the path or referenced by full path. Expected output: a version banner that begins with the tool name and includes the version number. Limitation: the banner shows the build's version, but a distributor may backport fixes without changing it, and an embedded library may not be reported by this command [Analyst assessment].

ffmpeg -version

Step 3, feature check: determine whether the build includes CUDA-based hardware acceleration, which NVDEC depends on, by running the read-only command below. Expected output: a list of hardware acceleration methods that includes cuda if the build supports it. Limitation: presence of the option does not prove that the NVDEC decode path is used at runtime [Analyst assessment].

ffmpeg -hwaccels

Step 4, logs and telemetry: review service logs for repeated decoder failures, abnormal termination of media worker processes, and crash dumps that reference libavcodec or the NVIDIA decoding library, for the period since installation. The record does not provide specific log event identifiers, so these checks are generic [Analyst assessment].

Step 5, authenticated scanning: use a software composition or package scanner that reads the installed package database and the container image layers. A scanner result that depends only on the version string should be checked against the vendor fix once it is published [Analyst assessment].

A version match is not proof of exploitability, and a version mismatch alone does not prove that the NVDEC path is unreachable. Both must be checked against how the system processes untrusted media.

Immediate mitigation

  1. Restrict the set of hosts that decode untrusted media with NVDEC-enabled FFmpeg builds. Protects against: attacker-supplied crafted streams reaching the vulnerable path. Limitation: does not remove the flaw. Side effects: some transcoding workloads may move to software decoding or stop, with lower throughput. Verification: confirm the decode pipeline configuration and the list of hosts with the hardware acceleration option enabled [Analyst assessment, following from the record's description of how the flaw is reached [1]].
  2. Run decoding of untrusted files in isolated containers or sandboxes with no access to sensitive data or credentials, so that any stale memory read exposes less. Limitation: does not stop a crash. Side effects: operational changes to pipelines. Verification: inspect the container configuration and confirm the mount list [Analyst assessment].
  3. Add monitoring for abnormal termination of media worker processes and for repeated decode failures, and alert the owning team. Verification: test the alert with a benign malformed file in a non-production environment [Analyst assessment].
  4. Quarantine or reject files that cause repeated decoder failures for the same source. Limitation: the record does not describe a reliable file signature, so detection depends on behaviour [Analyst assessment].

None of these measures is named by a source as a vendor workaround. They follow from the record's description of the attack path [1].

Permanent remediation

Vendor-confirmed fix: not established by the reviewed sources. The record references a commit and a pull request in the FFmpeg repository [1], which may contain the change, but the reviewed sources do not confirm that the change fixes this CVE or identify the first fixed release.

Remediation steps to apply once a fixed release is confirmed:

  1. Identify the official FFmpeg release that contains the referenced change, using the official release notes and the repository history, and record its version number [Analyst assessment].
  2. Upgrade all FFmpeg installations and bundled libraries to that release, including container images and vendored copies. Prerequisite: rebuild the NVDEC-enabled binaries against the NVIDIA headers available to the build [Analyst assessment].
  3. Restart or reload dependent services after the upgrade, since a loaded library remains in memory until the process restarts [Analyst assessment].
  4. Keep the rollback package from the previous version until the new version passes service tests.

Distinguish: none of the steps above is vendor-confirmed until a fixed version is published. Recommended hardening is covered in the hardening section.

Workarounds and compensating controls

No vendor workaround is published in the reviewed sources [1]. Compensating controls are: disabling the NVDEC decode path for untrusted input and using software decoding, which avoids the NVDEC interface but has a performance cost; sandboxing the decoder; and monitoring for crashes. These reduce exposure but do not correct the stale pointer, so the residual risk remains until the code is fixed [Analyst assessment]. Disabling NVDEC is only a workaround if the affected build has no other NVDEC-dependent path that processes untrusted input, which is not established by the reviewed sources.

Validation and verification

  1. Record the installed FFmpeg version and build for each host, and compare it with the fixed release once it is published [Analyst assessment].
  2. Confirm the decode configuration: the NVDEC option is disabled, or the host is isolated, according to the chosen control.
  3. Re-run the read-only checks from the detection section and confirm the output changed as expected.
  4. Confirm that the alerts for abnormal decoder termination are active by triggering a benign test in a non-production environment.
  5. Review service health and crash logs for the period after the change, and compare with the baseline.
  6. Re-run the package or image scanner and record the result with the owner, date and any exceptions.

A passing scanner result or a single version check does not show that the system is secure, and the validation should be repeated after each rebuild or redeployment.

Incident response

If decoder crashes or unexpected memory-related errors are seen on a host that processes untrusted media, follow the organization's incident response plan. Triage: determine whether the crashes match the record's description and whether the affected build uses NVDEC [1]. Containment: remove the host from the untrusted decode pipeline. Evidence preservation: copy the crash dumps, logs, the input files and the FFmpeg binary before any change, and do not delete or overwrite them. Investigation: review process logs, container logs and file sources for the affected time window. Credential rotation: rotate credentials only if the evidence indicates that the decoder process had access to them and memory exposure is suspected; the reviewed sources do not show such exposure [Analyst assessment]. Eradication and recovery: upgrade to the fixed release once published, restore service, and monitor. Notification: determine any legal or contractual obligations based on the data the process handled; this is not established by the reviewed sources.

Security hardening and prevention

Secure development: add regression tests that deliberately trigger slice errors in the NVDEC path and check that the context pointer is cleared, and review other error paths in the same file for the same pattern [Analyst assessment]. Memory-safety testing: run decoder test suites under address sanitizer builds in continuous integration [Analyst assessment, a defence-in-depth measure]. Least privilege: run media workers without access to secrets, databases or sensitive file mounts. Isolation: run decoding in separate containers with read-only root filesystems. Patch management: track FFmpeg and NVIDIA driver releases and rebuild dependent images on each release. Logging: forward decoder crash events to central logging with host and build identifiers. These measures are defence-in-depth, not vendor fixes.

Risk assessment

Technical severity: the NVD primary score is 5.3 MEDIUM under CVSS 3.1, and the secondary score is 5.8 MEDIUM under CVSS 4.0, both by VulnCheck [1]. Exposure: depends on whether an organization runs NVDEC-enabled FFmpeg on hosts that process untrusted media, which is not known from the sources. Prerequisites: local access in the vector, high complexity, and user interaction, with the specific conditions not named in the record [1]. Evidence of exploitation: none in the reviewed sources; not listed in KEV at the cut-off [2]. EPSS: 0.12 percent probability of exploitation activity in the next 30 days, which is a low model estimate [3]. Business impact: crashes of media-processing services and possible disclosure of process memory; the scale depends on data handled [Analyst assessment].

Recommended priority, with assumptions: medium priority for hosts that decode untrusted media with NVDEC, because the record describes memory disclosure and crashes with a moderate score and no confirmed exploitation. Raise the priority if the host handles sensitive data, if KEV or a vendor advisory later lists the flaw, or if the record's analysis changes the scores. Lower the priority for hosts that do not use NVDEC or that decode only trusted content. This priority is an organization-level judgement based on the assumptions stated here and is not the CVSS score.

Conclusion

CVE-2026-125265 is a use-after-free in FFmpeg's NVDEC path that follows from a stale bitstream pointer after slice errors [1]. Teams that operate FFmpeg with NVDEC on untrusted media should act first: inventory affected builds, restrict untrusted decoding on NVDEC hosts, and add monitoring for decoder crashes. The permanent fix is an upgrade to an FFmpeg release that contains the change, which the reviewed sources do not yet identify [1]. Closing the issue requires the confirmed fixed release, the NVD analysis of the record, evidence of the upgraded versions on each host, and a documented decision for any host that cannot be upgraded.

Remediation checklist

  1. Inventory every host, container image and application that bundles FFmpeg or libavcodec at or below 9.0.2, recording the version reported by the ffmpeg -version command on each system [1].
  2. Identify which of those builds use the NVDEC hardware path by running ffmpeg -hwaccels and reviewing the decode configuration [1].
  3. Stop decoding untrusted media on NVDEC-enabled hosts, or move that work to isolated hosts, until a fixed release is confirmed [1].
  4. Run decoders for untrusted media in isolated containers with no access to secrets or sensitive mounts, and record the container configuration [Analyst assessment].
  5. Add alerts for abnormal termination of media worker processes and repeated decode failures, and test the alert with a benign malformed file in a non-production environment [1].
  6. Obtain the official FFmpeg release notes and repository history to confirm which release first contains the change referenced in the record, and record the fixed version [1].
  7. Upgrade affected FFmpeg builds, including container images and vendored copies, to the confirmed fixed release, then restart dependent services [1].
  8. Re-run ffmpeg -version and the package or image scanner after the upgrade and record the owner, date and results [1].
  9. Track the NVD analysis of the record, which is in Awaiting Analysis status, and re-check the scores and affected ranges after each update [1].

Evidence gaps

  • Fixed version: the reviewed sources do not name the first FFmpeg release containing the fix; confirm it from the official FFmpeg release notes and the referenced commit [1].
  • Lower bound of the affected range: only a maximum version of 9.0.2 is published, so confirm older releases against the repository history [1].
  • Root cause detail: the patch diff and function body are not in the pack, so the exact code change is unverified; obtain the referenced commit and pull request [1].
  • Exploitation evidence: no confirmed in-the-wild exploitation is reported, and KEV does not list the CVE; monitor CISA KEV and the vendor advisory [2].
  • Public proof of concept: the sources do not establish whether working test code is public; check the referenced VulnCheck advisory and repository references [1].
  • Indicators of compromise: none are given; obtain them from the vendor or an incident responder and validate before use [1].
  • Default configuration: whether NVDEC is enabled in default or common distribution builds is not established; check the build options of the packages in use [1].
  • NVD analysis: the record is Awaiting Analysis, so NIST scores, CWE mapping and affected ranges may change; re-check the record [1].

References

  1. CVE-2026-125265 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125265. Accessed 2026-11-12. CVE description, record status and dates, CVSS 3.1 and 4.0 scores and vectors with scorer, CWE-416 mapping, affected version statement through 9.0.2, the affected component and functions, and the reference types listed in the record.
  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. CISA KEV status as not listed as of 2026-11-12 and the statement that absence from the catalog is not evidence of no exploitation.
  3. EPSS score for CVE-2026-125265. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125265. Accessed 2026-11-12. FIRST EPSS value of 0.0012 with percentile 0.0174 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 use-after-free vulnerability in libavcodec/nvdec.c because ff_nvdec_start_frame() fails to reset ctx->bitstream after slice errors. Attackers can supply crafted video that abandons a picture before end_frame, causing cuvidDecodePicture() to read freed heap memory, crashing applications or exposing stale heap contents.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 5.8 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 availability, low on confidentiality, none on integrity
Impact on other systems
none

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

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
FFmpeg≤ 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-125265?

CVE-2026-125265 is a use-after-free (CWE-416) in FFmpeg's NVDEC hardware-decoding path in libavcodec/nvdec.c, where a stale bitstream pointer is not reset after slice errors. NVD lists two CVSS scores from VulnCheck: 5.3 MEDIUM under CVSS 3.1 (primary) with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H, and 5.8 MEDIUM under CVSS 4.0 (secondary). Weakness type: Use After Free (CWE-416).

How severe is CVE-2026-125265?

CVE-2026-125265 has a CVSS 4.0 base score of 5.8 (medium), 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-125265 being exploited?

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

Which versions are affected by CVE-2026-125265?

FFmpeg ≤ 9.0.2.

How do I fix CVE-2026-125265?

Inventory every host, container image and application that bundles FFmpeg or libavcodec at or below 9.0.2, recording the version reported by the ffmpeg -version command on each system. Identify which of those builds use the NVDEC hardware path by running ffmpeg -hwaccels and reviewing the decode configuration. Stop decoding untrusted media on NVDEC-enabled hosts, or move that work to isolated hosts, until a fixed release is confirmed.

Timeline & sources

References