From patchwork Thu Sep 10 13:31:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97862 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 83FABC88E40 for ; Thu, 10 Sep 2026 13:34:04 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:02 -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=ChxsoyMQ; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=3695; q=dns/txt; s=NAESA-Selector1; t=1789047242; x=1820583242; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=tdvFdVfuN1sCUmj2I3J81WbeQNikyEPa7zpw8sRwmkk=; b=ChxsoyMQBZW/unOAegs60iT5j/IRr2XMF+Zu7N2dBs8mTrKLmcnxYH1w NM32bFigfGj8bpsIVtuz/xX6ZBeZ6D4dCk7xgcVLUZPort1DahdAbd+x2 /ZKmpCFqq86kVoidn4Dsyqqns4UOKt/ZiVX2Nex83AxfgwdWptP4jKdFE 0m6k1LK0ShR40n1Y3jvgvjDKsGQSzqzFMBS3nc8IVHK7GQQKWcswZM8Jy uxD5uxaZHnRnuHLaabnSiCYwm3h51hbAkQpStExDbQq9vNJTF5PPLDeaC K4E63LrsBlZTLMkpl7EKKTVJFdsPTPkhGzIXUvCxra+A9Q3cAnpMzcWZD A==; X-CSE-ConnectionGUID: q0uS2uexT4yF4Cq3/zbEzg== X-CSE-MsgGUID: Ku5o5SJUT1WOUiUmJp0PyQ== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105797" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:00 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 01/10] ffmpeg: Fix for CVE-2026-64830 Date: Thu, 10 Sep 2026 19:01:35 +0530 Message-ID: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 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 ; Thu, 10 Sep 2026 13:34:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245570 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/dbd495f066a85ba96b17433f4306582aa37c3951 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-64830 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-64830.patch | 65 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64830.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64830.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64830.patch new file mode 100644 index 0000000000..79ed6a45f1 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64830.patch @@ -0,0 +1,65 @@ +From 0ae68ee7e1bc6e2bfde10c78ccc59aa9d99f4d43 Mon Sep 17 00:00:00 2001 +From: Pavel Kohout +Date: Mon, 29 Jun 2026 23:30:41 +0200 +Subject: [PATCH 1/9] avformat/vobsub: reuse subtitle streams and bound the + stream count + +Fixes: heap buffer overflow +Fixes: lqaO5R1BaZGO +Fixes: dbfe61100b (avformat/vobsub: fix several issues.) +Found-by: Pavel Kohout (Aisle Research) +Signed-off-by: Michael Niedermayer + +CVE: CVE-2026-64830 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/dbd495f066a85ba96b17433f4306582aa37c3951] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavformat/mpeg.c | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c +index a7a2ef7..1ce4bf9 100644 +--- a/libavformat/mpeg.c ++++ b/libavformat/mpeg.c +@@ -841,6 +841,20 @@ static int vobsub_read_header(AVFormatContext *s) + } + + if (!st || st->id != stream_id) { ++ st = NULL; ++ for (i = 0; i < s->nb_streams; i++) { ++ if (s->streams[i]->id == stream_id) { ++ st = s->streams[i]; ++ break; ++ } ++ } ++ } ++ if (!st) { ++ if (s->nb_streams >= FF_ARRAY_ELEMS(vobsub->q)) { ++ av_log(s, AV_LOG_ERROR, "Maximum number of subtitle streams reached\n"); ++ ret = AVERROR_INVALIDDATA; ++ goto end; ++ } + st = avformat_new_stream(s, NULL); + if (!st) { + ret = AVERROR(ENOMEM); +@@ -865,14 +879,14 @@ static int vobsub_read_header(AVFormatContext *s) + timestamp = (hh*3600LL + mm*60LL + ss) * 1000LL + ms + delay; + timestamp = av_rescale_q(timestamp, av_make_q(1, 1000), st->time_base); + +- sub = ff_subtitles_queue_insert(&vobsub->q[s->nb_streams - 1], "", 0, 0); ++ sub = ff_subtitles_queue_insert(&vobsub->q[st->index], "", 0, 0); + if (!sub) { + ret = AVERROR(ENOMEM); + goto end; + } + sub->pos = pos; + sub->pts = timestamp; +- sub->stream_index = s->nb_streams - 1; ++ sub->stream_index = st->index; + + } else if (!strncmp(line, "alt:", 4)) { + const char *p = line + 4; +-- +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 8a6eb4eb86..8c1969369b 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -26,6 +26,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://0001-fftools-resources-Fix-double-build-by-disabling-.d-f.patch \ file://0001-ffbuild-commonmak-Consolidate-pattern-rules-for-comp.patch \ file://0002-ffbuild-common.mak-ensure-target-directories-are-cre.patch \ + file://CVE-2026-64830.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97863 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 7E26DC79F9F for ; Thu, 10 Sep 2026 13:34:14 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:06 -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=ptJXEBnB; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=1245; q=dns/txt; s=NAESA-Selector1; t=1789047246; x=1820583246; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=bbjRwY67YqmumpAPmDGg688Un1aFSsIyNKuNkrvfxqU=; b=ptJXEBnBofiaO3dOgQkgnu2ejtmJajABcoqKE7TZr344RsvS8ivUbRj0 ChQ/CKjcHaxpWZRtsF5t/pg7wzXj1KwDZNDVVQpVtfyDplYX9UUByVoVg 8b8NsH+lAOjtrs5/6E/nl6fgY2pEuL1OdkRApqvnjYASqM6eBEK59zwKw 3yyrFOJFGGc133HJAgoj9pOpYwAeLtnInTvU19MusK12wYKCa4YeJMMyD wzyxGPYWF2W5qPH8l2zYFWiMqrJIY21AmbCg436JWmU5NExHb0xyKFg95 2W3ADnZNogNHbqc3GX93kuAv/GXr+T1C+vaGMk+b6GI1CZDkJUe0a6nqr g==; X-CSE-ConnectionGUID: ruaX25CSRfWXRVkOMzLGaQ== X-CSE-MsgGUID: SbVa4nW6QIK3Serpa/ASIQ== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105800" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:05 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 02/10] ffmpeg: set CVE_STATUS for CVE-2026-64831 Date: Thu, 10 Sep 2026 19:01:36 +0530 Message-ID: <20260910133357.452394-2-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245571 From: Bhavesh R Maheshwari Analysis: - CVE-2026-64831 affects Vulkan HEVC hardware acceleration.[1] - The ffmpeg recipe does not enable or build Vulkan HEVC hardware acceleration by default. - Hence CVE is not applicable. Reference: [1] https://nvd.nist.gov/vuln/detail/CVE-2026-64831 Signed-off-by: Bhavesh R Maheshwari --- meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb index 8c1969369b..af05ab4af9 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -186,3 +186,4 @@ CVE_STATUS[CVE-2025-59729] = "fixed-version: this CVE are fixed since v8.0" CVE_STATUS[CVE-2025-59730] = "fixed-version: this CVE are fixed since v8.0" CVE_STATUS[CVE-2026-8461] = "cpe-stable-backport: this CVE are fixed since v8.0.3" CVE_STATUS[CVE-2026-40962] = "cpe-stable-backport: this CVE are fixed since v8.0.2" +CVE_STATUS[CVE-2026-64831] = "not-applicable-config: Vulkan HEVC hardware acceleration is not enabled or built by this recipe." From patchwork Thu Sep 10 13:31:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97864 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 921C4C79FB9 for ; Thu, 10 Sep 2026 13:34:14 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:08 -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=Rq7SFZ2a; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=1300; q=dns/txt; s=NAESA-Selector1; t=1789047249; x=1820583249; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=sR26HYLDBA3oL250ysCJ7tJN/OdRDMjy5lsXGqdAZmY=; b=Rq7SFZ2afyZk9SAsKYnzNXnNYJzB9rlMKPODq2merdUlgLshlerSOIWK RAEpmKTe3akvw4wo2DCOom8Y5q0jvfCpVgaux57BkyUqrO8V/3LwGKNWC oLw2yd+vNRAZcz0QwS5kc3nO2JhCzR6fMKW/nEnfYxAWUeQLYpMYhmxNW 5yU9Tr8I3kKsYwNCuzd5WaL08+NWCrjsEaBFFOTXRBT6ZF0zF0AreUT1N 2EPb8tfnBJFuF8NFMC+VxebJtB7hiTItb3qcwfjGjSaYwYRIc28B9lhri IUO57fh+b9QxsKuzOMVjphN3CTPaTHtQlcYCUN6ZcfjLmS+1I+ofuAFwF g==; X-CSE-ConnectionGUID: +6SZ3usYQ1Sj8+WpVWsSpA== X-CSE-MsgGUID: HBh1bLLLScCMrDmuXNceKw== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105803" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:08 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 03/10] ffmpeg: set CVE_STATUS for CVE-2026-64832 Date: Thu, 10 Sep 2026 19:01:37 +0530 Message-ID: <20260910133357.452394-3-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245572 From: Bhavesh R Maheshwari Analysis: - CVE-2026-64832 affects NVIDIA NVDEC hardware acceleration.[1] - The ffmpeg recipe does not enable or build NVIDIA NVDEC hardware acceleration by default. - Hence CVE is not applicable. Reference: [1] https://nvd.nist.gov/vuln/detail/CVE-2026-64832 Signed-off-by: Bhavesh R Maheshwari --- meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb index af05ab4af9..68f09c2bc4 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -187,3 +187,4 @@ CVE_STATUS[CVE-2025-59730] = "fixed-version: this CVE are fixed since v8.0" CVE_STATUS[CVE-2026-8461] = "cpe-stable-backport: this CVE are fixed since v8.0.3" CVE_STATUS[CVE-2026-40962] = "cpe-stable-backport: this CVE are fixed since v8.0.2" CVE_STATUS[CVE-2026-64831] = "not-applicable-config: Vulkan HEVC hardware acceleration is not enabled or built by this recipe." +CVE_STATUS[CVE-2026-64832] = "not-applicable-config: NVIDIA NVDEC hardware acceleration is not enabled or built by this recipe." From patchwork Thu Sep 10 13:31:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97866 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 B453AC88E42 for ; Thu, 10 Sep 2026 13:34:14 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:11 -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=G0wMATG2; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=2866; q=dns/txt; s=NAESA-Selector1; t=1789047251; x=1820583251; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=LNWcsSx4XH74db9xu/Qt4MrbuWw+SMoYVariWP2n/7w=; b=G0wMATG2gp1tPejfywILdxsYoJuHEUVfIcWnt5zLtq0s13HFciJkSsdC ni5adRcjIsQ/oKVbNTnwQOrq8V86Mx7Sxptnrbrk4PMEOsbGZM2z0Y5tb +/IBN7fy0fSckyYMmuhvp11Zcmj5EbQK+ec1ejNgIiq/0AC6aMVxMRNnb SzQgwVrdpryzMmUCdl+xkuHQsA9o0e9cOOT8L9YHbbunIFDW1o2uwdj3h 11cV5pC97x1/hkgQYtsBipBJ3Pm2yqXBuc41AAuXL52oADK6nJQdgJn64 KlisqQF0SjfEA6ZFz9ldkCV/7pBxIynO+Vdz73oJljEsZlh5bS6AyVJ22 g==; X-CSE-ConnectionGUID: QcVeOYZjQiOS8K1uyjBzLg== X-CSE-MsgGUID: epxOdf2DRIOCI5YtaXIGMw== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105805" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:10 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 04/10] ffmpeg: Fix for CVE-2026-64833 Date: Thu, 10 Sep 2026 19:01:38 +0530 Message-ID: <20260910133357.452394-4-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245573 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/6f80e2765492700622596af720534cef33dd31b4 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-64833 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-64833.patch | 36 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64833.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64833.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64833.patch new file mode 100644 index 0000000000..407ebf0ece --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64833.patch @@ -0,0 +1,36 @@ +From 9d412e4715b17404b5e4c6d9f0d2b5c1a100aa74 Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Tue, 30 Jun 2026 00:11:50 +0200 +Subject: [PATCH 2/9] avformat/spdifenc: bound DTS core_size against the packet + size in the HD path + +Fixes: out of array read +Fixes: yBSax492UIB9 +Fixes: 482d98f69b2 (spdifenc: IEC 61937 encapsulation of DTS-HD for HDMI) +Found-by: Pavel Kohout (Aisle Research) +Signed-off-by: Michael Niedermayer + +CVE: CVE-2026-64833 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/6f80e2765492700622596af720534cef33dd31b4] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavformat/spdifenc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c +index ab3f73d..16eebda 100644 +--- a/libavformat/spdifenc.c ++++ b/libavformat/spdifenc.c +@@ -225,7 +225,7 @@ static int spdif_header_dts4(AVFormatContext *s, AVPacket *pkt, int core_size, + * (dtshd_fallback == 0) */ + ctx->dtshd_skip = 1; + } +- if (ctx->dtshd_skip && core_size) { ++ if (ctx->dtshd_skip && core_size && core_size <= pkt->size) { + pkt_size = core_size; + if (ctx->dtshd_fallback >= 0) + --ctx->dtshd_skip; +-- +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 68f09c2bc4..df7e218305 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -27,6 +27,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://0001-ffbuild-commonmak-Consolidate-pattern-rules-for-comp.patch \ file://0002-ffbuild-common.mak-ensure-target-directories-are-cre.patch \ file://CVE-2026-64830.patch \ + file://CVE-2026-64833.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97865 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 D561AC88E45 for ; Thu, 10 Sep 2026 13:34:14 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:13 -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=FiwXxiXW; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=2830; q=dns/txt; s=NAESA-Selector1; t=1789047253; x=1820583253; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=rf5PYzrs+2P9lyO+6GCLfXOrAlZwAwv6UL+MNOpZ3uo=; b=FiwXxiXWM/RorsaeMcHjl3f6PBQPj6pP85C6ibOt+1bioBnhXbFWj5E7 //CKWmZ/6yhT9Sm31ACKQoPXMFCimn4d5fjG2ITpRKEecfd0KKz/pg/Jl +/vccfBzHH5Y9v256/UGfKnWL/Y2gtQp/+eTmHfmVTvvvcCvW3o+oWVxZ Y0H/eYPlYDe+L67+wWv9E4FaflcjpxStXV71ACgWlUlPQQZ6P/QhZwiW6 cMW/Ry//lmeyYwS7Sqf6JzeXpKhy7sCYbwZQbO13ioixq/n5XUNXilbnW jKgUUwq6FYpCQk0AvobKdW1vhAsRkJ8HGllOH02hZf+Ok8Dp8yi5UD4ww w==; X-CSE-ConnectionGUID: gzRF+7FwQWaHBmDN4guxMg== X-CSE-MsgGUID: wyUfDTiWRmCpD81ojh+DvA== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105809" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:12 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 05/10] ffmpeg: Fix for CVE-2026-64834 Date: Thu, 10 Sep 2026 19:01:39 +0530 Message-ID: <20260910133357.452394-5-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245574 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/11d5f475be95d22d5f0692220cc772b116abc632 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-64834 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-64834.patch | 36 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64834.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64834.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64834.patch new file mode 100644 index 0000000000..d4a44d293c --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64834.patch @@ -0,0 +1,36 @@ +From 9ac8fe453e443c3fc07bf85099cc93ca100d302f Mon Sep 17 00:00:00 2001 +From: Pavel Kohout +Date: Tue, 30 Jun 2026 21:55:16 +0200 +Subject: [PATCH 3/9] avformat/rtpdec_asf: reject ASF objects smaller than + their header + +Fixes: infinite loop +Fixes: MzWwJdpZF2Ls +Fixes: c2f3eec445389d67afc8c699ba23915a20cae51c (Implement RTSP-MS/ASF packet parsing.) +Found-by: Pavel Kohout (Aisle Research) +Signed-off-by: Michael Niedermayer + +CVE: CVE-2026-64834 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/11d5f475be95d22d5f0692220cc772b116abc632] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavformat/rtpdec_asf.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c +index b3b346f..f7fa69e 100644 +--- a/libavformat/rtpdec_asf.c ++++ b/libavformat/rtpdec_asf.c +@@ -56,6 +56,8 @@ static int rtp_asf_fix_header(uint8_t *buf, int len) + uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid)); + int skip = 6 * 8 + 3 * 4 + sizeof(ff_asf_guid) * 2; + if (memcmp(p, ff_asf_file_header, sizeof(ff_asf_guid))) { ++ if (chunksize < sizeof(ff_asf_guid) + 8) ++ return -1; + if (chunksize > end - p) + return -1; + p += chunksize; +-- +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 df7e218305..b988fe2293 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-64833.patch \ + file://CVE-2026-64834.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97867 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 C82D6C88E40 for ; Thu, 10 Sep 2026 13:34:24 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:14 -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=mwGs4cBg; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=3075; q=dns/txt; s=NAESA-Selector1; t=1789047255; x=1820583255; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=N6TR5i4LTCrhGSKkYGjkkw7pb2hm8qeVvuE9C851HKc=; b=mwGs4cBgYEy3KQeV5LAstVtaP/4CxjP28JJSY5JUdi9Q41udw1EVIIXI E1jtnndHVqmAg6jx35Gd0ks3u0mlI5vazZw6wyd+ZwH6ionxoZtOAeaEs 2SZlk8xF5dcvkuEJvQnXaJyvJkcyWVK2wVnpY5k2DSH/lPfkSxszJEWiP flzA9vFTtOjGx+3AOUdiWO3EZqRPgS57+AOnH51r1NKdiB930xUD7fDPv miK7lpxBJRjEUi+FReRXnc8IFN8nHj4O+aobr6rqj3yuylUbvJvMkjLW6 BnlU2ADHPEl71zP6pBhVsNaR+c+JVxoXVxXvEJr/4FbUiBO42n4cpdirH A==; X-CSE-ConnectionGUID: 9fvIy2oKR1adauDs5tYjRw== X-CSE-MsgGUID: qd8GlE8DQdGbzBHrzUKvVg== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105811" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:14 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 06/10] ffmpeg: Fix for CVE-2026-64835 Date: Thu, 10 Sep 2026 19:01:40 +0530 Message-ID: <20260910133357.452394-6-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245575 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/1836ef96846937a6cc2443698a693104f5c0b21e [2] https://nvd.nist.gov/vuln/detail/CVE-2026-64835 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-64835.patch | 45 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64835.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64835.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64835.patch new file mode 100644 index 0000000000..735bd1176f --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-64835.patch @@ -0,0 +1,45 @@ +From 99c7dfd80d63bf009a102d3278a9f98b2fe68002 Mon Sep 17 00:00:00 2001 +From: Pavel Kohout +Date: Mon, 29 Jun 2026 23:46:16 +0200 +Subject: [PATCH 4/9] avcodec/adx: sync decoder channel state on NEW_EXTRADATA + +Fixes: out of array access +Fixes: heaNtmHvklpe +Fixes: 92396cee602320c714713ca2d93b53684ad57000 (avformat: add CRI AAX demuxer) +Found-by: Pavel Kohout (Aisle Research) +Signed-off-by: Michael Niedermayer + +CVE: CVE-2026-64835 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/1836ef96846937a6cc2443698a693104f5c0b21e] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavcodec/adxdec.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c +index 21be6fe..10fd81d 100644 +--- a/libavcodec/adxdec.c ++++ b/libavcodec/adxdec.c +@@ -172,6 +172,7 @@ static int adx_decode_frame(AVCodecContext *avctx, AVFrame *frame, + new_extradata = av_packet_get_side_data(avpkt, AV_PKT_DATA_NEW_EXTRADATA, + &new_extradata_size); + if (new_extradata && new_extradata_size > 0) { ++ int old_channels = c->channels; + int header_size; + if ((ret = adx_decode_header(avctx, new_extradata, + new_extradata_size, &header_size, +@@ -180,6 +181,10 @@ static int adx_decode_frame(AVCodecContext *avctx, AVFrame *frame, + return AVERROR_INVALIDDATA; + } + ++ c->channels = avctx->ch_layout.nb_channels; ++ c->header_parsed = 1; ++ if (old_channels != c->channels) ++ memset(c->prev, 0, sizeof(c->prev)); + c->eof = 0; + } + +-- +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 b988fe2293..8d9e975721 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -29,6 +29,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://CVE-2026-64830.patch \ file://CVE-2026-64833.patch \ file://CVE-2026-64834.patch \ + file://CVE-2026-64835.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97871 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 E1103C88E42 for ; Thu, 10 Sep 2026 13:34:24 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:16 -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=SyN7ALI8; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=3090; q=dns/txt; s=NAESA-Selector1; t=1789047257; x=1820583257; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=TzeqR2uO1SvOpb0Reg/G/YfYgon9qgXw7++PyTvfyfk=; b=SyN7ALI85S0pz2hgKypEPx3/nPWD054N8DryqKICh/6HEs36sV8ws1yZ m7BQ17aHD0bETzhDBuCn2jGufJGhs+y8vU63Yvu9c1nhUM2aLfl9TAjkH qv43EDqcO3Pj1JYCNDbUhTBjnA1IiW8oWzhbZQGmPtkmeHZLJn0d2FoFh qlPcaEkAPCbo9IFt5tDKUPmumd6qx52cMylcMUZajwso1dwHXD4a/N04e Ynsx+RCZQIyxbubIWrCLvuBiNjtnreS7xfli0R/TGDyWgKy1/1vGDsyrj +Bbk1jsirGn8sqFMjRk2SXxIhFEV30J5b34OzDczqz47WHnBC2nnwHzPn g==; X-CSE-ConnectionGUID: eSx63tzJSOiOKOMzxwamIw== X-CSE-MsgGUID: 8kPpfTIzS8KJLnsiHY70dA== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105813" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:15 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 07/10] ffmpeg: Fix for CVE-2026-65703 Date: Thu, 10 Sep 2026 19:01:41 +0530 Message-ID: <20260910133357.452394-7-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245576 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/fd3ee52fab34d98a95b787d0b5ff45685766200c [2] https://nvd.nist.gov/vuln/detail/CVE-2026-65703 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-65703.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-65703.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65703.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65703.patch new file mode 100644 index 0000000000..67c319f17e --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65703.patch @@ -0,0 +1,47 @@ +From d15f021e27bd2eb4b7aaeb4cc4f2f49ec3435f48 Mon Sep 17 00:00:00 2001 +From: Cloud-LHY +Date: Fri, 10 Jul 2026 04:07:04 +0200 +Subject: [PATCH 5/9] avcodec/tdsc: unref the reference frame before + reallocating on size change + +Fixes: out of array access +Fixes: tdsc_poc/ffmpeg-tdsc-linesize-report/poc.avi / gen_poc.py +Fixes: tdsc_resize_jpeg_oob.avi / tdsc-resize-stale-linesize-jpeg-oob-generate-poc.py +Fixes: p9xG4xGf9P7H +Fixes: HQL7a1WgTdHZ +Found-by: Cloud-LHY / Clouditera Security, Z.ai Security, NSFOCUS +Found-by: Adrian Junge (vurlo) + +CVE: CVE-2026-65703 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/fd3ee52fab34d98a95b787d0b5ff45685766200c] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavcodec/tdsc.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c +index 8baf8e9..ecd67da 100644 +--- a/libavcodec/tdsc.c ++++ b/libavcodec/tdsc.c +@@ -482,11 +482,15 @@ static int tdsc_parse_tdsf(AVCodecContext *avctx, int number_tiles) + return ret; + init_refframe = 1; + } +- ctx->refframe->width = ctx->width = w; +- ctx->refframe->height = ctx->height = h; ++ ctx->width = w; ++ ctx->height = h; + + /* Allocate the reference frame if not already done or on size change */ + if (init_refframe) { ++ av_frame_unref(ctx->refframe); ++ ctx->refframe->format = avctx->pix_fmt; ++ ctx->refframe->width = w; ++ ctx->refframe->height = h; + ret = av_frame_get_buffer(ctx->refframe, 0); + if (ret < 0) + return ret; +-- +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 8d9e975721..7f0cdd4577 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -30,6 +30,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://CVE-2026-64833.patch \ file://CVE-2026-64834.patch \ file://CVE-2026-64835.patch \ + file://CVE-2026-65703.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97869 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 1EA58C88E45 for ; Thu, 10 Sep 2026 13:34:25 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:18 -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=R1AYnhK5; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=2686; q=dns/txt; s=NAESA-Selector1; t=1789047259; x=1820583259; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=As/TyaxsB3ZDtvQlYHLc0Pxj04Yy/BIZ++rYIqRb6uE=; b=R1AYnhK51rg7T4qwq/s8UoNIJtpMsIh44upY0LLfP1yoZCCePUvy7Vn+ 0UaW2hvys6HsMf1jm8EszupEV7RDp1m9JyJNVckCHLQGkTEZNtLVbZjE6 CIIqzWvwBZiWyq/wob3slK+aF2atSo9iecfSlpDtvbLacu4JqP2kjJdzl XN+VmdvokaL/7V+1e3YrEDTa0kefdIhA2ylB0/W3WJ7sSnYEEhRqNNr0Z VClHDICOVbzvTceXyOyqWql3XFqAtQXIq0mCOw3siFhek3PN+tjpvKUaU OzViVuTcvJrIjtrsl628dG7Zs/DpDR9XhrcFEvMB7cvk9/0FLINQS+Jc2 g==; X-CSE-ConnectionGUID: Chqg0YviR2a93kAiUkzEGw== X-CSE-MsgGUID: 6yuRuQxtQqixF2phyE+Eqg== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105818" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:18 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 08/10] ffmpeg: Fix for CVE-2026-65704 Date: Thu, 10 Sep 2026 19:01:42 +0530 Message-ID: <20260910133357.452394-8-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245577 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 --- .../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 7f0cdd4577..da96d63219 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -31,6 +31,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" From patchwork Thu Sep 10 13:31:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97870 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 2E80BC79FB9 for ; Thu, 10 Sep 2026 13:34:25 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34: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=NmhZgqUP; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=7526; q=dns/txt; s=NAESA-Selector1; t=1789047260; x=1820583260; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=BdR6812jCDjd8WKhJwzuo2duRw4/cY1z5V0wXcuLP8A=; b=NmhZgqUPLSILsMKn04SbqJbECqn3K8ZRybPTPVaTMnvOKU5FSc1959+S HKTd5G/54XOstAeRDo99mzRBr1IYmBS7nb9imm734B8kcQczVUWgt6cSn pYxalFyuJYmjbh2JL3w5VpCOw828fDdAsN27H0jZEXQHZZK0tUo6VunNT VCQm3q7uhhecOHii/kiCNqOrroXncc4AzpHdcyLSRVQ7ruMNDFPKrzhgO QNt4uX0CGdyl97HaUSZ2uvc7aoDjYNXLlEtgZPNA/qTFt5PaCiF+bt8Fa HQTuA+D0/ZjdwjuVoiF/jB9FhoGMs3NyD19y2h3B9VfMZp9pOt+CewlqF A==; X-CSE-ConnectionGUID: 97lhewBaTK2WB7ayhlnMoA== X-CSE-MsgGUID: zp9FOC15QrOUHb+2+YPp3w== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105820" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:19 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 09/10] ffmpeg: Fix for CVE-2026-65705 Date: Thu, 10 Sep 2026 19:01:43 +0530 Message-ID: <20260910133357.452394-9-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245578 From: Bhavesh R Maheshwari Pick the patch from [1] and [2], mentioned in PR#23780 [3] which is referenced in the NVD report [4] [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/24c322fdb232d0a3f3790d544dcb64e5c2138e79 [2] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/f186c50cf53aec20e9a29059cb22ca3f2d59201c [3] https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23780 [4] https://nvd.nist.gov/vuln/detail/cve-2026-65705 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-65705_p1.patch | 68 +++++++++++ .../ffmpeg/ffmpeg/CVE-2026-65705_p2.patch | 115 ++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 2 + 3 files changed, 185 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p1.patch create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p2.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p1.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p1.patch new file mode 100644 index 0000000000..e331cb9646 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p1.patch @@ -0,0 +1,68 @@ +From f73f6cd9a5f230ce02afbc6a74172400b92b1127 Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Sat, 11 Jul 2026 16:47:28 +0200 +Subject: [PATCH 7/9] avfilter/vf_floodfill: size the point stack for the + current frame + +Fixes: out of array access +Fixes: 8aj_floodfill_dynamic_size.pgm / 8aj_generate_floodfill_dynamic_size_pgm.py +Fixes: 3MleMXjGZvu3 +Found-by: Adrian Junge (vurlo) + +CVE: CVE-2026-65705 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/24c322fdb232d0a3f3790d544dcb64e5c2138e79] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavfilter/vf_floodfill.c | 19 ++++++++++++++++--- + 1 file changed, 16 insertions(+), 3 deletions(-) + +diff --git a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c +index 6d89963..e569d5f 100644 +--- a/libavfilter/vf_floodfill.c ++++ b/libavfilter/vf_floodfill.c +@@ -41,6 +41,7 @@ typedef struct FloodfillContext { + int nb_planes; + int back, front; + Points *points; ++ unsigned int points_size; + + int (*is_same)(const AVFrame *frame, int x, int y, + unsigned s0, unsigned s1, unsigned s2, unsigned s3); +@@ -271,9 +272,6 @@ static int config_input(AVFilterLink *inlink) + } + + s->front = s->back = 0; +- s->points = av_calloc(inlink->w * inlink->h, 4 * sizeof(Points)); +- if (!s->points) +- return AVERROR(ENOMEM); + + return 0; + } +@@ -292,8 +290,23 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) + int s3 = s->s[3]; + const int w = frame->width; + const int h = frame->height; ++ size_t nb_points, points_size; + int i, ret; + ++ if (w > UINT16_MAX + 1 || h > UINT16_MAX + 1 || ++ av_size_mult(w, h, &nb_points) < 0 || ++ av_size_mult(nb_points, 4 * sizeof(*s->points), &points_size) < 0) { ++ av_frame_free(&frame); ++ return AVERROR(EINVAL); ++ } ++ ++ av_fast_malloc(&s->points, &s->points_size, points_size); ++ if (!s->points) { ++ av_frame_free(&frame); ++ return AVERROR(ENOMEM); ++ } ++ s->front = s->back = 0; ++ + if (is_inside(s->x, s->y, w, h)) { + s->pick_pixel(frame, s->x, s->y, &s0, &s1, &s2, &s3); + +-- +2.43.0 + diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p2.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p2.patch new file mode 100644 index 0000000000..91a304015f --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65705_p2.patch @@ -0,0 +1,115 @@ +From 7f99588c7fc27526a2d73dddc91e4cd57a3b401c Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Sun, 12 Jul 2026 03:27:47 +0200 +Subject: [PATCH 8/9] avfilter/vf_floodfill: remove unneeded variables + +Signed-off-by: Michael Niedermayer + +CVE: CVE-2026-65705 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/f186c50cf53aec20e9a29059cb22ca3f2d59201c] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavfilter/vf_floodfill.c | 35 ++++++++++++++++------------------- + 1 file changed, 16 insertions(+), 19 deletions(-) + +diff --git a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c +index e569d5f..9bc72e2 100644 +--- a/libavfilter/vf_floodfill.c ++++ b/libavfilter/vf_floodfill.c +@@ -39,7 +39,6 @@ typedef struct FloodfillContext { + int d[4]; + + int nb_planes; +- int back, front; + Points *points; + unsigned int points_size; + +@@ -271,8 +270,6 @@ static int config_input(AVFilterLink *inlink) + } + } + +- s->front = s->back = 0; +- + return 0; + } + +@@ -292,6 +289,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) + const int h = frame->height; + size_t nb_points, points_size; + int i, ret; ++ int front = 0; + + if (w > UINT16_MAX + 1 || h > UINT16_MAX + 1 || + av_size_mult(w, h, &nb_points) < 0 || +@@ -305,7 +303,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) + av_frame_free(&frame); + return AVERROR(ENOMEM); + } +- s->front = s->back = 0; + + if (is_inside(s->x, s->y, w, h)) { + s->pick_pixel(frame, s->x, s->y, &s0, &s1, &s2, &s3); +@@ -323,9 +320,9 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) + goto end; + + if (s->is_same(frame, s->x, s->y, s0, s1, s2, s3)) { +- s->points[s->front].x = s->x; +- s->points[s->front].y = s->y; +- s->front++; ++ s->points[front].x = s->x; ++ s->points[front].y = s->y; ++ front++; + } + + if (ret = ff_inlink_make_frame_writable(link, &frame)) { +@@ -333,34 +330,34 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) + return ret; + } + +- while (s->front > s->back) { ++ while (front > 0) { + int x, y; + +- s->front--; +- x = s->points[s->front].x; +- y = s->points[s->front].y; ++ front--; ++ x = s->points[front].x; ++ y = s->points[front].y; + + if (s->is_same(frame, x, y, s0, s1, s2, s3)) { + s->set_pixel(frame, x, y, d0, d1, d2, d3); + + if (is_inside(x + 1, y, w, h)) { +- s->points[s->front] .x = x + 1; +- s->points[s->front++].y = y; ++ s->points[front] .x = x + 1; ++ s->points[front++].y = y; + } + + if (is_inside(x - 1, y, w, h)) { +- s->points[s->front] .x = x - 1; +- s->points[s->front++].y = y; ++ s->points[front] .x = x - 1; ++ s->points[front++].y = y; + } + + if (is_inside(x, y + 1, w, h)) { +- s->points[s->front] .x = x; +- s->points[s->front++].y = y + 1; ++ s->points[front] .x = x; ++ s->points[front++].y = y + 1; + } + + if (is_inside(x, y - 1, w, h)) { +- s->points[s->front] .x = x; +- s->points[s->front++].y = y - 1; ++ s->points[front] .x = x; ++ s->points[front++].y = y - 1; + } + } + } +-- +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 da96d63219..36a9ae14f2 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -32,6 +32,8 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://CVE-2026-64835.patch \ file://CVE-2026-65703.patch \ file://CVE-2026-65704.patch \ + file://CVE-2026-65705_p1.patch \ + file://CVE-2026-65705_p2.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818" From patchwork Thu Sep 10 13:31:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavesh R Maheshwari X-Patchwork-Id: 97868 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 C8296C79F9F for ; Thu, 10 Sep 2026 13:34:24 +0000 (UTC) Received: from naesa03.arrow.com (naesa03.arrow.com [216.150.161.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14218.1789047242011078389 for ; Thu, 10 Sep 2026 06:34:22 -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=D/edCv/x; spf=pass (domain: einfochips.com, ip: 216.150.161.23, mailfrom: bhavesh.maheshwari@einfochips.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=3240; q=dns/txt; s=NAESA-Selector1; t=1789047262; x=1820583262; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=dc8ZwSaZ69ADBkIEf7l527A1WF45RlNfrhIFKC+8jcQ=; b=D/edCv/xG6dKpV88OlABE7ApuA0ebP5Vk3CxYwYyv+kCMt4d7nToNRKr PPd7KfCkfp1VP+B2HZ3pzU59fdXp0wuNlgX/8V3xb44/3HZxXH8HpL/AW nmu1XHXDv6JHUBHPlbhaRZIWdNXHddoJsJ4eyyWlbtSBLDmu7QFjy4TjH nEHlevRlril+CH6lvG/uTCdzZrXG+iPsoEDx4jRzq1YmrPSkO/C2vO/VM iQQOlDkzMK1Ts0RUmD0A5x+d8A47boz+FvldQJSb+nh81IT3fvl2oAdyc XNBLCCO/UscVdOaP1xHhuxyWJz2naGy3iFOUrmVu6FZn/zPkjRvzTWi11 A==; X-CSE-ConnectionGUID: Fi9KJrCLQiij/fCgD/44MQ== X-CSE-MsgGUID: qx2/7kTETyibLYoX8gqgHA== X-IronPort-AV: E=Sophos;i="6.27,95,1787032800"; d="scan'208";a="122105823" Received: from unknown (HELO 6T8J9X2.ap.corp.arrow.com) ([10.126.18.101]) by naesa03out.arrow.com with ESMTP; 10 Sep 2026 07:34:21 -0600 From: bhavesh.maheshwari@einfochips.com To: openembedded-core@lists.openembedded.org Subject: [wrynose][oe-core][PATCH 10/10] ffmpeg: Fix for CVE-2026-65706 Date: Thu, 10 Sep 2026 19:01:44 +0530 Message-ID: <20260910133357.452394-10-bhavesh.maheshwari@einfochips.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260910133357.452394-1-bhavesh.maheshwari@einfochips.com> References: <20260910133357.452394-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 ; Thu, 10 Sep 2026 13:34:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245579 From: Bhavesh R Maheshwari Pick the patch from [1], also referenced in the NVD report [2]. [1] https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-65706 Signed-off-by: Bhavesh R Maheshwari --- .../ffmpeg/ffmpeg/CVE-2026-65706.patch | 52 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb | 1 + 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65706.patch diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65706.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65706.patch new file mode 100644 index 0000000000..7311ed71c0 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2026-65706.patch @@ -0,0 +1,52 @@ +From 825f9e837f88c0c6983b5ccb70f91a32e9168f3c Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Sat, 11 Jul 2026 16:46:39 +0200 +Subject: [PATCH 9/9] avfilter/vf_swaprect: size the temp row buffer for the + widest plane + +Fixes: out of array access +Fixes: 7aj_swaprect_odd17_nv12.nut / 7aj_generate_swaprect_odd17_nv12.py +Fixes: VRAXYvKtmKa8 +Found-by: Adrian Junge (vurlo) + +CVE: CVE-2026-65706 +Upstream-Status: Backport [https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527] + +Signed-off-by: Bhavesh R Maheshwari +--- + libavfilter/vf_swaprect.c | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c +index 5d93f51..fe007ee 100644 +--- a/libavfilter/vf_swaprect.c ++++ b/libavfilter/vf_swaprect.c +@@ -200,6 +200,7 @@ static int config_input(AVFilterLink *inlink) + { + AVFilterContext *ctx = inlink->dst; + SwapRectContext *s = ctx->priv; ++ int size = 0; + + if (!s->w || !s->h || + !s->x1 || !s->y1 || +@@ -210,7 +211,16 @@ static int config_input(AVFilterLink *inlink) + av_image_fill_max_pixsteps(s->pixsteps, NULL, s->desc); + s->nb_planes = av_pix_fmt_count_planes(inlink->format); + +- s->temp = av_malloc_array(inlink->w, s->pixsteps[0]); ++ for (int p = 0; p < s->nb_planes; p++) { ++ int shift = p == 1 || p == 2 ? s->desc->log2_chroma_w : 0; ++ int width = AV_CEIL_RSHIFT(inlink->w, shift); ++ ++ if (width > INT_MAX / s->pixsteps[p]) ++ return AVERROR(EINVAL); ++ size = FFMAX(size, width * s->pixsteps[p]); ++ } ++ ++ s->temp = av_malloc(size); + if (!s->temp) + return AVERROR(ENOMEM); + +-- +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 36a9ae14f2..0bd36b2c33 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.3.bb @@ -34,6 +34,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ file://CVE-2026-65704.patch \ file://CVE-2026-65705_p1.patch \ file://CVE-2026-65705_p2.patch \ + file://CVE-2026-65706.patch \ " SRC_URI[sha256sum] = "6136812ea6d4e68bdba27e33c2a94382711cdf4f8602ffef056ff792bd6f9818"