From patchwork Wed Sep 16 12:09:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh Rajesh Maheshwari X-Patchwork-Id: 98422 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96C85C88E5C for ; Wed, 16 Sep 2026 12:13:27 +0000 (UTC) Received: from naesa06.arrow.com (naesa06.arrow.com [216.150.161.27]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.13334.1789560785946635924 for ; Wed, 16 Sep 2026 05:13:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@einfochips.com header.s=NAESA-Selector1 header.b=AYpuKbDN; spf=pass (domain: einfochips.com, ip: 216.150.161.27, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=2733; q=dns/txt; s=NAESA-Selector1; t=1789560798; x=1821096798; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=1mScRa7ePnkmWmSIMN5tZXQmQuQaTVgPUX9MavOw7S8=; b=AYpuKbDNzA1ssUjzFw1qHXBk3MjTEv9INGBKUbJz3NTqQd4RbmcX5Qqg GhU3mBKb4CVWLNmFh/jtsVP95bdHz7Nz62q+r3pDJMG6DKjeYkFh0gRCU JE4qCskVEanM0AoJFySIYaDDPjL1tiOhhfQ33EHFyxNTNS2AxGGi9N7LA OLoBDwpcHNdEP/DD4qvSAWGjE35hnMwOAHghZS3y68Fqe4MLpjfVvhwRC +DKhAw7r8TxF8q/015XptfcEXHfMk8XDuIl7g8elYotmvdHuN0jJYdc7N HW1Fcd/1wknLPlIW03SEaeYxZgFwM/1JS7zJ9agTTuqsZMJiHBWbnttnC w==; X-CSE-ConnectionGUID: M3hGnIv+Q5aQTnCV9mbZQg== X-CSE-MsgGUID: Gy9GWlSqQ/+Owekiodi/5Q== X-IronPort-AV: E=Sophos;i="6.27,103,1787032800"; d="scan'208";a="63580036" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa06out.arrow.com with ESMTP; 16 Sep 2026 06:13:17 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose,v2][oe-core][PATCH 08/10] ffmpeg: Fix for CVE-2026-65704 Date: Wed, 16 Sep 2026 17:39:31 +0530 Message-ID: <20260916121258.1699611-8-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260916121258.1699611-1-bhavesh.maheshwari@einfochips.com> References: <20260916121258.1699611-1-bhavesh.maheshwari@einfochips.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 16 Sep 2026 12:13:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245962 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-65704 Signed-off-by: Bhavesh R Maheshwari --- changes in v2: - rebased on new CVE fix --- .../ffmpeg/ffmpeg/CVE-2026-65704.patch | 35 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65704.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65704.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65704.patch new file mode 100644 index 0000000000..223fd03c33 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65704.patch @@ -0,0 +1,35 @@ +From e6f2209a3ab20ef0489395697a1882e97658b5b9 Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Fri, 10 Jul 2026 04:07:35 +0200 +Subject: [PATCH 6/9] avformat/ty: don't let the Series2 AC3 trim underflow the + packet size + +Fixes: negative-size-param +Fixes: ty-s2-ac3-negative-size-single-file.ffconcat / create_poc.py +Fixes: g0qeE6KvrjZi +Found-by: Adrian Junge (vurlo) + +CVE: CVE-2026-65704 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavformat/ty.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libavformat/ty.c b/libavformat/ty.c +index 596e4cc..1f2b6f8 100644 +--- a/libavformat/ty.c ++++ b/libavformat/ty.c +@@ -577,7 +577,7 @@ static int demux_audio(AVFormatContext *s, TyRecHdr *rec_hdr, AVPacket *pkt) + if (ty->audio_type == TIVO_AUDIO_AC3 && + ty->tivo_series == TIVO_SERIES2) { + if (ty->ac3_pkt_size + pkt->size > AC3_PKT_LENGTH) { +- pkt->size -= 2; ++ pkt->size -= FFMIN(pkt->size, 2); + ty->ac3_pkt_size = 0; + } else { + ty->ac3_pkt_size += pkt->size; +-- +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 8be6b423f7..82f4b221b7 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -33,6 +33,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://CVE-2026-64834.patch \ file://CVE-2026-64835.patch \ file://CVE-2026-65703.patch \ + file://CVE-2026-65704.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818"