{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "9.0.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "946fcce07b6dcd0331c8cc609192aeff5e1924f8"
            }
          ],
          "repo": "https://git.ffmpeg.org/ffmpeg.git",
          "type": "GIT"
        },
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "9.0.2"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "range": [
                  {
                    "fixed": "03cd7851955c023f1ff4c8a495d47e996d01485a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "03cd7851955c023f1ff4c8a495d47e996d01485a"
            }
          ],
          "repo": "https://github.com/ffmpeg/ffmpeg",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125265.json"
  },
  "details": "FFmpeg through 9.0.2 contains a use-after-free vulnerability in libavcodec/nvdec.c because ff_nvdec_start_frame() fails to reset ctx-\u003ebitstream 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.",
  "id": "CVE-2026-125265",
  "modified": "2026-11-26T20:46:10.946983233Z",
  "published": "2026-11-09T19:12:06.735Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://code.ffmpeg.org/FFmpeg/FFmpeg"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125265.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125265"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-via-nvdec-stale-bitstream-pointer"
    },
    {
      "type": "REPORT",
      "url": "https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231"
    },
    {
      "type": "FIX",
      "url": "https://github.com/FFmpeg/FFmpeg/commit/03cd7851955c023f1ff4c8a495d47e996d01485a"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/FFmpeg/FFmpeg"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/nvdec.c#L694"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "FFmpeg through 9.0.2 Use-After-Free via NVDEC Stale Bitstream Pointer"
}