summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2024-11-27 09:24:38 +0000
committerSteve Sakoman <steve@sakoman.com>2024-12-02 06:23:20 -0800
commit74473524acb9ec3831ad8dd3d4e58bfce233b28b (patch)
treebfd22b559f9da5645de8e0048a76ddf347843a00 /meta
parentd8a0cd24f38c4b6b69caba608ad275fed6214524 (diff)
downloadpoky-74473524acb9ec3831ad8dd3d4e58bfce233b28b.tar.gz
ffmpeg: fix CVE-2024-7055
A vulnerability was found in FFmpeg up to 7.0.1. It has been classified as critical. This affects the function pnm_decode_frame in the library /libavcodec/pnmdec.c. The manipulation leads to heap-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 7.0.2 is able to address this issue. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-273651. (From OE-Core rev: 7335a81112673616240f010d4930b4982b10c355) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch38
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch
new file mode 100644
index 0000000000..0a573330a2
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch
@@ -0,0 +1,38 @@
1From 5372bfe01e4a04357ab4465c1426cf8c6412dfd5 Mon Sep 17 00:00:00 2001
2From: Michael Niedermayer <michael@niedermayer.cc>
3Date: Thu, 18 Jul 2024 21:12:54 +0200
4Subject: [PATCH 4/4] avcodec/pnmdec: Use 64bit for input size check
5
6Fixes: out of array read
7Fixes: poc3
8
9Reported-by: VulDB CNA Team
10Found-by: CookedMelon
11Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12(cherry picked from commit 3faadbe2a27e74ff5bb5f7904ec27bb1f5287dc8)
13Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
14
15CVE: CVE-2024-7055
16
17Upstream-Status: Backport [https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=5372bfe01e4a04357ab4465c1426cf8c6412dfd5]
18
19Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
20---
21 libavcodec/pnmdec.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
25index 01f9dad..1b3f20a 100644
26--- a/libavcodec/pnmdec.c
27+++ b/libavcodec/pnmdec.c
28@@ -256,7 +256,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
29 }
30 break;
31 case AV_PIX_FMT_GBRPF32:
32- if (avctx->width * avctx->height * 12 > s->bytestream_end - s->bytestream)
33+ if (avctx->width * avctx->height * 12LL > s->bytestream_end - s->bytestream)
34 return AVERROR_INVALIDDATA;
35 scale = 1.f / s->scale;
36 if (s->endian) {
37--
382.40.0
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
index 8e0fc090ac..7b03b7cbc0 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
@@ -39,6 +39,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
39 file://CVE-2023-47342.patch \ 39 file://CVE-2023-47342.patch \
40 file://CVE-2023-50007.patch \ 40 file://CVE-2023-50007.patch \
41 file://CVE-2023-51796.patch \ 41 file://CVE-2023-51796.patch \
42 file://CVE-2024-7055.patch \
42 " 43 "
43 44
44SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" 45SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"