From: Bhavesh R Maheshwari <[email protected]> Pick the patch from [1], also referenced in the NVD report [2].
[1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4c6217477fc64305055b37d9d1d0d76d30e37f97 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-64832 Signed-off-by: Bhavesh R Maheshwari <[email protected]> Signed-off-by: Yoann Congal <[email protected]> --- .../ffmpeg/ffmpeg/CVE-2026-64832.patch | 47 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64832.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64832.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64832.patch new file mode 100644 index 00000000000..28d6c0343f5 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64832.patch @@ -0,0 +1,47 @@ +From 55645f03fa9dc2e5ef5f79b875950391e920506b Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer <[email protected]> +Date: Tue, 30 Jun 2026 00:24:07 +0200 +Subject: [PATCH] avcodec/nvdec: don't double free the fdd-owned context on the + sep_ref error path + +Fixes: double free +Fixes: rpSz7v3yq2u8 +Fixes: 72982f8cb5dad6252a14226d28128313eed4a5ff (avcodec/nvdec: add support for separate reference frame) +Found-by: Pavel Kohout (Aisle Research) +Signed-off-by: Michael Niedermayer <[email protected]> + +CVE: CVE-2026-64832 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4c6217477fc64305055b37d9d1d0d76d30e37f97] + +Signed-off-by: Bhavesh R Maheshwari <[email protected]> +--- + libavcodec/nvdec.c | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c +index 7c29f25718..787a9d7c28 100644 +--- a/libavcodec/nvdec.c ++++ b/libavcodec/nvdec.c +@@ -628,8 +628,7 @@ int ff_nvdec_start_frame_sep_ref(AVCodecContext *avctx, AVFrame *frame, int has_ + cf->ref_idx_ref = av_refstruct_pool_get(ctx->decoder_pool); + if (!cf->ref_idx_ref) { + av_log(avctx, AV_LOG_ERROR, "No decoder surfaces left\n"); +- ret = AVERROR(ENOMEM); +- goto fail; ++ return AVERROR(ENOMEM); + } + } + cf->ref_idx = *cf->ref_idx_ref; +@@ -639,9 +638,6 @@ int ff_nvdec_start_frame_sep_ref(AVCodecContext *avctx, AVFrame *frame, int has_ + } + + return 0; +-fail: +- nvdec_fdd_priv_free(cf); +- return ret; + } + + int ff_nvdec_end_frame(AVCodecContext *avctx) +-- +2.43.0 + diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb index 02b9cf65a5f..4192b1a5c97 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -28,6 +28,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://0002-ffbuild-common.mak-ensure-target-directories-are-cre.patch \ file://CVE-2026-64830.patch \ file://CVE-2026-64831.patch \ + file://CVE-2026-64832.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246166): https://lists.openembedded.org/g/openembedded-core/message/246166 Mute This Topic: https://lists.openembedded.org/mt/121305655/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
