Home › CVE › Vulnerabilities
CVE-2026-125252 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg VAAPI decoder memory leak via repeated slice parse errors (CVE-2026-125252)
| CVE | CVE-2026-125252 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 08:40 UTC |
| Research cut-off | November 12, 2026 07:21 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10) |
Executive summary
CVE-2026-125252 is a memory leak in FFmpeg's VAAPI hardware-decoding path in libavcodec, which can gradually exhaust memory when a crafted H.264 or other VAAPI-decoded stream repeatedly causes slice parsing to fail [1]. The only CVSS scores in the record are secondary scores from VulnCheck: CVSS 4.0 5.7 MEDIUM with vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/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, and CVSS 3.1 4.7 MEDIUM with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H [1]. The CVE record states that FFmpeg through 9.0.2 is affected, and no fixed version is published in the reviewed sources [1]. Exploitation requires the vulnerable decoder to process an attacker-supplied stream, and the impact described is availability (memory exhaustion), with no confidentiality or integrity impact stated in the record [1]. The record is still Awaiting Analysis, the issue is not listed in the CISA KEV catalog as of 2026-11-12, and the FIRST EPSS estimate is 0.0015 (0.15%) [1, 2, 3]. Absence from KEV is not evidence that exploitation has not occurred. Defenders should inventory FFmpeg builds at or below 9.0.2 that use VAAPI decoding on untrusted input, move that input to software decoding or memory-limited isolated workers, and track the vendor for a fixed release.
Key points
- FFmpeg through 9.0.2 has a memory leak in its VAAPI decoding path that can be triggered by crafted streams with repeated slice parse errors [1].
- Scored CVSS 4.0 5.7 MEDIUM (AV:L, AC:H, AT:P, PR:N, UI:P, VA:H) and CVSS 3.1 4.7 MEDIUM (AV:L, AC:H, PR:N, UI:R, A:H), both by VulnCheck as Secondary; the record is still Awaiting Analysis [1].
- Impact is memory exhaustion (availability); no confidentiality or integrity impact is stated [1].
- Not listed in the CISA KEV catalog as of 2026-11-12; EPSS 0.0015 (0.15%) [2, 3].
- No fixed version is published in the reviewed sources; mitigate by moving untrusted input off the VAAPI path and capping decode worker memory [1].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125252 | [1] |
| Vendor | FFmpeg project | [1] |
| Product and component | FFmpeg, libavcodec VAAPI decoding path. The description names the file libavcodec/vaapidecode.c, while a reference points to libavcodec/vaapi_decode.c (see Evidence gaps) | [1] |
| Affected platform | Not established by the reviewed sources beyond VAAPI-decoded video | [1] |
| Published | 2026-11-09T20:18:11 | [1] |
| Last modified | 2026-11-10T21:46:30 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-401, Missing Release of Memory after Effective Lifetime. This is a weakness in which memory is allocated but not freed once it is no longer needed, so it stays unreachable and accumulates. | [1] |
| CVSS 4.0 | 5.7 MEDIUM; vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/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 VulnCheck (Secondary) | [1] |
| CVSS 3.1 | 4.7 MEDIUM; vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H; scored by VulnCheck (Secondary) | [1] |
| NVD primary score | Not present in the reviewed record | [1] |
| Related identifiers | The record references a pull request numbered 25231, two commits and a third-party advisory from VulnCheck. No related CVE, GitHub Security Advisory or bug tracker identifier is present in the pack. | [1] |
| CISA KEV | Not listed as of 2026-11-12 | [2] |
| EPSS | 0.0015 (0.15%), percentile 0.0470, dated 2026-11-10 | [3] |
The only CVSS scores come from a secondary scorer and the record is not yet analysed by NIST. Both CVSS versions agree on local attack vector, high attack complexity, no privileges required and availability as the only impacted property, but they differ on user interaction (P in 4.0, R in 3.1). The CVSS 4.0 vector sets all threat, environmental and supplemental metrics to X (not defined), so the 5.7 score reflects base metrics only [1].
Technical background
FFmpeg is an open-source multimedia framework. Its libavcodec library decodes compressed video and audio. Hardware-accelerated decoding offloads part of the work to a graphics or video processor. VAAPI (Video Acceleration API) is an interface that lets applications on Linux-type systems use such hardware through a vendor driver; general background, not stated in the pack. [1] identifies the affected code as the VAAPI decoding path in libavcodec.
During VAAPI decoding, the decoder builds parameter buffers describing each picture and slice data buffers containing the compressed slice content, and hands them to the driver. Each decoded picture uses buffers that must be released once they are no longer needed. The record refers to VA parameter buffers and slice buffers, and to driver and heap memory, as the resources that leak [1].
Trust boundary: the encoded bitstream is untrusted input whenever an application decodes files or streams supplied by users, remote parties or other networks. The parser that reads that input runs inside the application process. The attacker-controlled content therefore reaches native decoder code, which is the reason memory handling errors in parsers matter [S1, analyst assessment].
Terms: a slice is a sub-unit of a video picture that is coded and parsed separately. A parse error means the decoder cannot interpret the bitstream for that unit. A memory leak is memory that remains allocated but is no longer referenced in a way the program can use to free it.
Vulnerability description
The record describes a memory leak in the VAAPI decoding code of FFmpeg through 9.0.2. A crafted H.264 or other VAAPI-decoded stream can cause later slices in each frame to fail parsing, and the decoder then keeps allocated VA parameter buffers, slice buffers, driver memory and heap memory that it does not release [1].
Security property affected: availability. The record indicates a loss of available memory and states no confidentiality or integrity impact in its CVSS vectors (VC:N, VI:N in 4.0; C:N, I:N in 3.1) [1]. The record does not state that memory contents are disclosed to the attacker.
What an attacker can cause: a continuing increase in the memory used by a process that decodes the crafted stream, which may eventually exhaust available memory and degrade or stop the process or host [1]. The growth is described as occurring on each frame, so the consumption depends on the number of affected frames in the stream and on how long the process keeps decoding it [1].
Conditions needed: the vulnerable decoder must be used to process the stream (VAAPI hardware decoding), and the stream must trigger slice parse errors in later slices [1].
Not established by the reviewed sources: whether the leak can be used to read other data, whether it can lead to code execution, the leak size per frame, the memory limits at which failure occurs, and whether the leaked memory is returned when the process exits. The sources do not claim these outcomes, so this article does not assume them.
Root cause analysis
Confirmed: the CVE record classifies the weakness as CWE-401 and describes the leak as occurring when slice parsing fails repeatedly [1].
Not established by the reviewed sources: the exact code change that fails to release the buffers. The record references a source line in the VAAPI decode file at the release tag and two commits, but the pack does not contain their contents, so the specific defect is not confirmed.
Analyst assessment: the leak most likely arises on an error path. When a slice fails to parse, cleanup for the buffers already allocated for that picture or slice does not run, or does not release them completely. Because the failure repeats on subsequent frames, each one adds unreleased allocations. The control that should prevent this is ownership-based cleanup on every exit path, including early returns from parse failures. This is an inference from the description and the CWE class, not a confirmed statement.
The reference list includes a third-party advisory whose address suggests a theme of abandoned picture buffers [1]. The advisory's content is not in the pack, so the wording may be used only as a hint, not as confirmation of the mechanism.
Why existing controls may fail: resource cleanup in native decoders is usually done manually on each error branch. A branch that is rarely taken, or that is reached only with malformed input, is easy to omit and is seldom covered by normal functional tests [analyst assessment].
Technical mechanics
The following flow is an analyst reconstruction from the record's description, labelled Illustrative where it goes beyond the record.
- An application with VAAPI hardware decoding enabled passes an encoded stream (H.264 or another VAAPI-supported codec) to FFmpeg [1].
- The decoder parses picture and slice headers and prepares VA parameter buffers and slice data buffers for each picture [S1, Illustrative detail on the buffer ownership].
- A later slice in the picture fails to parse, so the decoder takes its error path [1].
- Expected behaviour: the decoder releases buffers already allocated for the failed picture before it returns [Illustrative expectation of correct cleanup].
- Vulnerable behaviour: according to the record, the buffers and associated driver and heap memory remain allocated after the error [1].
- The next frame is processed and fails in the same way, so the unreleased memory accumulates on each frame [1].
- Process memory rises until it reaches a system or cgroup limit, or the process is stopped [Illustrative consequence].
Security control that should prevent the failure: releasing every resource on every error path before returning, and treating the parser's output as untrusted when deciding how much memory to hold. Each step is a point where the untrusted bitstream influences resource consumption.
Attack surface and exploitation prerequisites
| Dimension | Evidence | Source |
|---|---|---|
| Network access | Not in the vector. The CVSS vectors set the attack vector to local (AV:L), so remote exploitation over a network is not indicated. | [1] |
| Adjacent network | Not indicated by either vector | [1] |
| Local access | AV:L in both vectors. An attacker needs a way to get a stream into the process, for example by having a local user or service decode it. | [1] |
| Physical access | Not established by the reviewed sources | [1] |
| Authentication | PR:N in both vectors: no privileges required in the scored scenario | [1] |
| User interaction | CVSS 4.0 UI:P (passive); CVSS 3.1 UI:R (required). The two versions differ; the meaning of the difference is not explained in the record. | [1] |
| Required configuration | VAAPI-based hardware decoding must be used for the vulnerable path, as described | [1] |
| Attack requirements | CVSS 4.0 AT:P (present). The record does not define which deployment conditions this refers to. | [1] |
| Attacker position | An attacker must supply a crafted stream to an application that decodes it. The record does not list which applications or services do this. | [1] |
| Environmental dependencies | Driver behaviour and hardware are involved in the leak per the record. The specific driver and hardware combinations are not established. | [1] |
The CVSS vector alone does not establish that exploitation is practical in a given deployment. The stated local vector implies a path to the decoder, but whether a remote user can reach it through an upload or streaming feature depends on the application, which the pack does not describe.
Exploitation scenarios and attack lifecycle
No source in the pack documents a real-world attack chain for this CVE. The scenarios below are Illustrative.
Scenario A (Illustrative): a media transcoding service with VAAPI enabled accepts user uploads, and runs each file through FFmpeg in a long-lived worker process. An uploader supplies a crafted stream. The worker's memory grows across frames until the worker is killed by the operating system or becomes unresponsive, affecting other jobs on the same host. The defensive opportunities are: run software decoding for untrusted uploads, cap worker memory with cgroup or systemd limits, and monitor worker resident memory across jobs.
Scenario B (Illustrative): a local multi-user workstation where a user opens a crafted video in a VAAPI-enabled player or editing tool. The effect would be memory growth in that application, which is a denial-of-service of that process. Defensive opportunities: restrict decoding of files from untrusted sources to a separate, isolated process or to software decoding.
Not established: any post-exploitation outcome beyond memory exhaustion. Escalation, data access or code execution are not claimed by the reviewed sources and should not be assumed from this record.
Impact analysis
| Area | Technically demonstrated by the record | Plausible downstream consequence (analyst assessment) |
|---|---|---|
| Confidentiality | None stated (C:N in CVSS 3.1; VC:N and SC:N in 4.0) [1] | None established; the leak is described as memory exhaustion, not disclosure |
| Integrity | None stated (I:N in 3.1; VI:N and SI:N in 4.0) [1] | None established |
| Availability | Memory exhaustion of the decoding process; VA:H in 4.0 and A:H in 3.1 [1] | Degraded or stopped transcoding, playback or ingestion; knock-on effects on co-hosted services if memory is shared |
| Authentication and authorization | Not addressed by the record | None established |
| Privilege boundaries | Not addressed by the record. The record refers to driver memory, but does not state that a boundary is crossed. | Not established by the reviewed sources |
| Data and privacy | Not addressed by the record | Not established by the reviewed sources |
| Business operations | Not addressed by the record | Outage risk for services that decode untrusted media with VAAPI |
| Regulatory or contractual | Not addressed by the record | Depends on the organisation's service commitments; not established |
Affected products and versions
| Vendor | Product or component | Affected versions | Platform or deployment | Fixed version | Source and confidence |
|---|---|---|---|---|---|
| FFmpeg project | libavcodec VAAPI decoding path | Through 9.0.2 (listed as affected: 9.0.2 and earlier) | Not established; the record refers to VAAPI decoding on systems with a VA driver | Not published in the reviewed sources | [1]; record status Awaiting Analysis, so confidence is limited to the CNA's published range |
The vendor's range in the record is the only version statement in the pack. It is not confirmed whether downstream distribution packages are affected in the same way, whether they include backports, or whether later FFmpeg versions are unaffected, because the record does not give that information [1]. The pack does not show a complete range of affected builds or a fixed release. Versions beyond 9.0.2 must not be assumed safe until the vendor or NIST confirms them.
Configuration-specific exposure: only builds that include and use the VAAPI decoder are relevant to the described path. Whether a given build enables it depends on build options, which the pack does not describe.
Exploitation and threat intelligence status
| Question | Status | Source |
|---|---|---|
| Confirmed exploitation in the wild | Not established by the reviewed sources | [1, 2] |
| CISA KEV listing | Not listed as of 2026-11-12. The website reads the full catalog, but the catalog is not evidence of non-exploitation. | [2] |
| Public proof of concept | Not established by the reviewed sources. The references include a pull request, commits and a third-party advisory, but the pack does not state whether any of them contains a working reproducer. | [1] |
| EPSS | 0.0015 (0.15%) estimated probability of exploitation activity in the next 30 days, percentile 0.0470, dated 2026-11-10. EPSS is a statistical estimate and not evidence of exploitation. | [3] |
| Threat actors, campaigns, sectors | Not established by the reviewed sources | [1, 2, 3] |
| Theoretical exploitability | The record describes the crafted-stream condition, so the leak is plausible for any deployment that decodes untrusted streams with the affected path | [1] |
The absence of public evidence in this pack is not proof that exploitation has not occurred. The record is still under analysis, so its status and references may change.
Indicators of compromise
Not established by the reviewed sources. No file hashes, file names, domains, IP addresses, URLs, process names, command lines or log events are given for this CVE in the pack. No indicator should be invented or blocked on the basis of this article. Any indicators added later must be validated against the organisation's own telemetry before blocking, because indicators go stale.
A general pattern that would warrant investigation, not an indicator from the sources: a single media-decoding worker whose resident memory increases steadily across successive jobs or frames, together with repeated decode errors for the same input. This is an analyst assessment and needs to be correlated with application logs.
Detection and exposure assessment
- Inventory: identify every host, container image and application that bundles or links FFmpeg libavcodec. Check the packaged version against the vendor range through 9.0.2 [1]. Read-only checks: run the FFmpeg command-line tool with its version option (ffmpeg -version) on each host where it is installed. Expected output: a version banner naming the build. Prerequisite: the binary is on the PATH. Limitation: distribution packages may include backported fixes or changed version strings, so the banner alone does not prove the code state. For distribution packages, use the package manager's query (for example dpkg -l ffmpeg or rpm -q ffmpeg) and compare against the distribution's security advisories for this CVE.
- Capability check: run ffmpeg -hwaccels (read-only). Expected output: a list of hardware acceleration methods, which includes vaapi when the build supports it. Limitation: this shows support, not that the process uses VAAPI for a given job.
- Configuration review: for applications that call FFmpeg or libavcodec, review their command lines and configuration for VAAPI hardware decoding options. Record which services decode untrusted input.
- Runtime monitoring: for decoding worker processes, sample resident memory over time (for example ps -o pid,rss,etime,args -p PID, read-only). Expected output: a process list with memory in kilobytes. Limitation: normal workloads also grow memory, so a single sample proves nothing; the trend across jobs is what matters.
- Logs: review application logs for repeated slice or decode errors for the same input or job. The pack does not name a log source or event ID, so the organisation must identify the log fields its own application writes.
- Exposure categories: high where untrusted streams are decoded by a long-lived VAAPI worker; medium where decoding is local and user-initiated; low where VAAPI is not built or not used.
A version match is not proof of exploitability. Conversely, a version outside the stated range is not proof of safety until the vendor's range or a fixed build is confirmed.
Immediate mitigation
- Move untrusted input off the VAAPI path. Configure the decoding pipeline to use software decoding for files or streams from untrusted sources. Source: the record ties the leak to the VAAPI decoding path [1]; the specific option is for the operator to confirm against the installed build's documentation. Protects against: the described trigger, because the vulnerable path is not used. Limitation: higher CPU use and possibly lower throughput. Side effects: changed performance characteristics for media jobs. Verification: check the command line or application configuration for the VAAPI option, and confirm with a logged test job that the software path is selected.
- Limit memory per decoding worker. Use cgroup memory limits or systemd resource limits (for example MemoryMax on the service unit). Source: analyst recommendation derived from the memory-exhaustion impact in [1]. Protects against: host-wide exhaustion. Limitation: the worker still fails when it reaches its cap, and in-flight jobs are lost. Verification: systemctl show -p MemoryMax for the unit, and a controlled test on a non-production host using known-good media.
- Isolate decoding of untrusted input in short-lived worker processes, so that a memory-growing job is terminated and does not accumulate across jobs. Source: analyst recommendation. Limitation: more process start-up overhead. Verification: confirm that each job runs in a fresh process and that worker resident memory returns to baseline after a job completes.
- Restrict who can submit files for decoding. Require authentication for upload features and reject unexpected media types before they reach FFmpeg. Source: analyst recommendation derived from the authorization-free scored scenario in [1]. Limitation: it does not stop a legitimate user from submitting a crafted file. Verification: test the upload endpoint with an unauthenticated request and confirm that it is refused.
- Increase monitoring of decode worker memory and decode error rates, with an alert threshold chosen from the organisation's own baseline. Source: analyst recommendation. Limitation: detects effects, not the cause.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. The pack gives no fixed version, no FFmpeg release note and no distribution advisory for this CVE [1]. Do not treat any specific release as the fix until the FFmpeg project or the distribution publishes it.
What the record offers: a pull request (numbered 25231) and two commits are listed as references [1]. The pack does not say whether they fix the issue, whether they are merged into a release, or which releases contain them. They should be reviewed by the team to determine whether they address slice-error cleanup in the VAAPI path, and whether they appear in a release.
Steps once a fixed release is published: (1) identify the fixed version from the FFmpeg release notes or the distribution's advisory; (2) upgrade FFmpeg and any application that statically bundles libavcodec, following the normal change process, with a backup of configuration and a rollback package available; (3) restart decoding services, because a running process keeps the old library loaded; (4) confirm the installed version as in the Validation section.
Recommended hardening, not vendor-confirmed: keep the mitigations above in place until the fixed build is verified on the affected hosts, and then decide whether they are still needed.
Workarounds and compensating controls
No vendor-supplied workaround is established by the reviewed sources [1].
Compensating controls that reduce exposure: software decoding for untrusted input, memory caps on workers, short-lived isolated worker processes, authenticated submission, and monitoring (see Immediate mitigation). Residual risk: a crafted stream can still exhaust a worker's memory up to its cap, causing job failures, and any path still using VAAPI remains exposed. The residual risk is that the underlying code defect remains in the installed build.
Why a workaround is not equivalent to a fix: the defect is in the decoder, so only a corrected build removes it. Controls only limit the consequences or the reachable paths.
Validation and verification
- Confirm the installed version or build of FFmpeg and libavcodec on each host and container image, and compare it with the fixed build once published. Use the package manager query or the version command, and record the output.
- Confirm the configuration: that untrusted input is not routed to the VAAPI path, that worker memory limits are applied (systemctl show -p MemoryMax, or the container runtime's memory limit), and that the upload controls are active.
- Confirm the affected exposure is addressed: review the application command lines and configuration to show that VAAPI is either absent from the build, unused for untrusted input, or running on a fixed build.
- Run the organisation's vulnerability scanner with authenticated checks against the hosts, and record which findings are closed. Do not treat a scanner result as proof of security on its own.
- Review service health and memory trends for decode workers across at least one representative workload cycle with known-good media. Do not use crafted or malicious media for validation.
- Confirm compensating controls remain in place wherever the fixed build is not yet deployed.
- Record evidence, owner, date and exceptions for each host, and keep the exception list under review until the vendor fix is confirmed.
No single check establishes that a system is secure.
Incident response
Trigger: unexplained, steadily growing memory in a media-decoding worker, combined with repeated decode errors, or a report that a specific input file or stream caused a service failure.
- Triage and scope: identify the affected workers, the hosts they run on, the input sources and the time window. Determine whether the VAAPI path was used.
- Containment: route new untrusted input to software decoding or a quarantined worker, and restrict the source of the input if it is identifiable. Do not delete or overwrite files or logs needed for analysis.
- Evidence preservation: capture the affected worker's logs, the input files or stream metadata, the process memory trend and the FFmpeg version and build information, following the organisation's evidence-handling procedure.
- Investigation: correlate decode errors with the input source and check whether the same input repeatedly failed on several workers. There are no indicators in the pack, so findings depend on the organisation's own telemetry.
- Credentials and secrets: the reviewed sources show no credential exposure, so credential rotation is not indicated by the evidence. Rotate only if other evidence of compromise is found.
- Eradication and patching: apply the fixed build when published and remove any unnecessary VAAPI use on untrusted paths.
- Recovery and monitoring: restart workers on the fixed or mitigated configuration and monitor memory and error rates against the baseline.
- Notification: determine whether any reporting obligation applies to the organisation's service; the pack does not indicate one, so this is not established.
- Lessons learned: record how the untrusted input reached the decoder, and whether isolation and memory limits were in place.
Security hardening and prevention
Specific to this flaw:
- Require resource release on every error path in native decoders, and add regression tests that feed malformed slices and check resource counts or memory after each failed picture. Both are standard secure-development practice (defence-in-depth, labelled as broader guidance rather than a vendor requirement).
- Add decode-error memory tests to the continuous integration pipeline for any FFmpeg build the organisation maintains, using known-good and deliberately malformed test media from a controlled corpus.
- Keep an up-to-date inventory of every FFmpeg build and bundled libavcodec, so that version changes are visible.
Broader defence-in-depth measures (labelled as such): run decoders with least privilege and isolated memory, use seccomp or container confinement where the platform supports it, validate media types and container structure before decoding, and monitor worker health.
Risk assessment
Technical severity: medium per CVSS 4.0 (5.7) and CVSS 3.1 (4.7), both from a secondary scorer [1]. The impact is availability only.
Exposure and asset criticality: depends on whether the organisation runs VAAPI decoding on untrusted input. Services that accept uploads or external streams have higher exposure than local, user-initiated decoding. Asset criticality is organisation-specific and is not established by the pack.
Prerequisites and attacker opportunity: local vector, no privileges, but the stream must reach the decoder. The attack conditions depend on the application.
Evidence of exploitation: none established. Not listed in KEV as of 2026-11-12 and EPSS 0.0015 at the 0.15% level [2, 3].
Business impact: outage or degraded processing of affected workers, which is significant only where the workers are shared or time-critical.
Existing controls: resource limits, authentication on upload features and isolation, if present, reduce the consequences. The pack does not describe the organisation's own controls.
Recommended priority (organisation-specific rating; not the CVSS score, and its assumptions are that untrusted input reaches VAAPI decoding in at least some deployments): high for internet-facing or multi-tenant media processing that uses VAAPI; medium for internal, user-initiated decoding; low where VAAPI is not built or used. Re-assess when NIST completes analysis or the vendor publishes a fix.
Conclusion
CVE-2026-125252 is a memory leak in FFmpeg's VAAPI decoding path through 9.0.2, triggered when crafted streams make later slices fail parsing on each frame, so memory is not released [1]. Its primary impact is availability; the record reports no confidentiality or integrity impact [1]. The most urgent action is to stop routing untrusted media through the VAAPI path and to cap and isolate decode workers. The permanent fix is an upgrade to an FFmpeg or distribution build that the vendor or distributor has identified as fixed; the pack does not identify one [1]. Closing the issue requires a confirmed fixed version, validated on each affected host, the record's analysis status updated by NIST, and evidence that the mitigations were removed only after that verification.
Remediation checklist
- Inventory every host, container image and application bundling FFmpeg libavcodec; compare the installed version with the affected range through 9.0.2 using ffmpeg -version or the package manager query, noting that distribution backports may apply [1].
- Identify decoding workloads that use VAAPI hardware decoding on input from untrusted sources, and record the application configuration that enables it [1].
- Route untrusted media to software decoding in the pipeline configuration, and verify with a logged test job that the VAAPI path is not selected [S1, analyst recommendation].
- Apply memory limits to decode workers (for example systemd MemoryMax or cgroup limits) and verify them with systemctl show -p MemoryMax or the container runtime limit [S1, analyst recommendation].
- Run each untrusted decode job in a short-lived isolated process so that a memory-growing job is terminated and does not accumulate across jobs [analyst recommendation].
- Require authentication for upload or submission features that reach FFmpeg, and test that an unauthenticated request is refused [S1, analyst recommendation].
- Add alerts on decode worker resident memory trends and repeated decode errors for the same input, with thresholds set from the organisation's own baseline [analyst recommendation].
- Review the pull request and commits referenced in the record to determine whether they correct the slice-error cleanup, and track the FFmpeg project and distributors for a fixed release [1].
- When a fixed build is published, upgrade affected FFmpeg and bundled libavcodec builds, restart decode services, and confirm the installed version on each host [1].
- After upgrade, validate with known-good media and a vulnerability scan, keep compensating controls until verification is complete, and record evidence, owner, date and exceptions [analyst recommendation].
Evidence gaps
- Fixed version: no fixed FFmpeg version or distribution advisory is in the pack; the vendor or distributor must publish one, and the record's references must be checked against it [1].
- Complete affected range and downstream builds: the record gives only a through 9.0.2 statement; confirmation of whether distribution packages and later versions are affected is needed from the FFmpeg project, distributors or NIST analysis [1].
- Root cause: the exact code defect is not disclosed in the pack; the referenced commits and pull request would need to be reviewed to confirm the mechanism [1].
- Affected platforms and drivers: the record does not identify operating systems, VA drivers or hardware combinations that are affected; vendor or NIST analysis would need to establish this [1].
- NIST scoring: the record is Awaiting Analysis and carries only secondary VulnCheck scores; a NIST-assigned CVSS score and CWE confirmation would settle this [1].
- Discrepancy in file name: the description names libavcodec/vaapidecode.c while a reference points to libavcodec/vaapi_decode.c; the correct file needs confirmation from the vendor's source tree [1].
- Public proof of concept and exploitation: the pack does not establish whether a working reproducer exists or whether exploitation has occurred; threat intelligence and public exploit monitoring would be needed [1, 2].
- Indicators of compromise: none are given; any indicators would need to come from vendor or threat intelligence reporting and be validated locally [1].
- Impact beyond availability: the pack does not establish whether memory contents are disclosed or whether the issue can be used for anything beyond memory exhaustion; vendor analysis would be needed [1].
- Exposure in the organisation: which applications and services decode untrusted media with VAAPI is not known to the pack and must be determined from the organisation's own inventory.
References
- CVE-2026-125252 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125252. Accessed 2026-11-12.
- 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.
- EPSS score for CVE-2026-125252. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125252. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains a memory leak vulnerability in libavcodec/vaapi_decode.c that allows attackers to exhaust memory by supplying streams with slice parse errors. Attackers can craft H.264 or other VAAPI-decoded video where later slices fail to parse on every frame, continuously leaking VA parameter and slice buffers plus driver and heap memory.
Severity breakdown
Medium · 5.7
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, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-401: Missing Release of Memory after Effective Lifetime
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- github.com/FFmpeg/FFmpeg/commit/4221a63ce869ade862557ca64693bf77f5032971
- github.com/FFmpeg/FFmpeg/commit/838c660bb3cd66ba74981b453c14c79214f6ef92
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125252?
CVE-2026-125252 is a memory leak in FFmpeg's VAAPI hardware-decoding path in libavcodec, which can gradually exhaust memory when a crafted H.264 or other VAAPI-decoded stream repeatedly causes slice parsing to fail. Weakness type: Missing Release of Memory after Effective Lifetime (CWE-401).
How severe is CVE-2026-125252?
CVE-2026-125252 has a CVSS 4.0 base score of 5.7 (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-125252 being exploited?
Not as far as is known: CVE-2026-125252 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-125252?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125252?
Inventory every host, container image and application bundling FFmpeg libavcodec; compare the installed version with the affected range through 9.0.2 using ffmpeg -version or the package manager query, noting that distribution backports may apply. Identify decoding workloads that use VAAPI hardware decoding on input from untrusted sources, and record the application configuration that enables it. Route untrusted media to software decoding in the pipeline configuration, and verify with a logged test job that the VAAPI path is not selected [S1, analyst recommendation].