diff options
author | Archana Polampalli <archana.polampalli@windriver.com> | 2024-12-06 13:11:48 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-12-13 05:21:53 -0800 |
commit | c2186ed9ea48ef8b3d91f741f04e1077d4e6fd64 (patch) | |
tree | 98dc55e6858608102ff57c3e18fb1aa457f09d66 | |
parent | ac0988d9f2c741dd44a271c90d101244ac481331 (diff) | |
download | poky-c2186ed9ea48ef8b3d91f741f04e1077d4e6fd64.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: 71a9c2d01ad8ed83f9da6e6b9541fcf1d9baed48)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch | 38 | ||||
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
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..afd857ceac --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-7055.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 587acd0d4020859e67d1f07aeff2c885797ebcce Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Niedermayer <michael@niedermayer.cc> | ||
3 | Date: Thu, 18 Jul 2024 21:12:54 +0200 | ||
4 | Subject: [PATCH] avcodec/pnmdec: Use 64bit for input size check | ||
5 | |||
6 | Fixes: out of array read | ||
7 | Fixes: poc3 | ||
8 | |||
9 | Reported-by: VulDB CNA Team | ||
10 | Found-by: CookedMelon | ||
11 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
12 | (cherry picked from commit 3faadbe2a27e74ff5bb5f7904ec27bb1f5287dc8) | ||
13 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
14 | |||
15 | CVE: CVE-2024-7055 | ||
16 | |||
17 | Upstream-Status: Backport [https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=587acd0d4020859e67d1f07aeff2c885797ebcce] | ||
18 | |||
19 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
20 | --- | ||
21 | libavcodec/pnmdec.c | 2 +- | ||
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
23 | |||
24 | diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c | ||
25 | index acd77ea..40cc2ae 100644 | ||
26 | --- a/libavcodec/pnmdec.c | ||
27 | +++ b/libavcodec/pnmdec.c | ||
28 | @@ -264,7 +264,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p, | ||
29 | break; | ||
30 | case AV_PIX_FMT_GBRPF32: | ||
31 | if (!s->half) { | ||
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 | -- | ||
38 | 2.40.0 | ||
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb index a793817ec2..8f4a8d34c0 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
@@ -36,6 +36,7 @@ SRC_URI = " \ | |||
36 | file://CVE-2024-28661.patch \ | 36 | file://CVE-2024-28661.patch \ |
37 | file://CVE-2023-50007.patch \ | 37 | file://CVE-2023-50007.patch \ |
38 | file://CVE-2023-49528.patch \ | 38 | file://CVE-2023-49528.patch \ |
39 | file://CVE-2024-7055.patch \ | ||
39 | " | 40 | " |
40 | 41 | ||
41 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 42 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |