mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
ffmpeg: fix CVE-2024-35366
FFmpeg n6.1.1 is Integer Overflow. The vulnerability exists in the parse_options function of sbgdec.c within the libavformat module. When parsing certain options, the software does not adequately validate the input. This allows for negative duration values to be accepted without proper bounds checking. (From OE-Core rev: 9acfc54b2707bf04922f153d06ae27ff552fbe23) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
de796b1966
commit
c17700b784
37
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35366.patch
Normal file
37
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35366.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From 4db0eb4653efad967ddcf71f564fd2f1169bafcb Mon Sep 17 00:00:00 2001
|
||||
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||
Date: Tue, 26 Mar 2024 00:39:49 +0100
|
||||
Subject: [PATCH] avformat/sbgdec: Check for negative duration
|
||||
|
||||
Fixes: signed integer overflow: 9223372036854775807 - -8000000 cannot be represented in type 'long'
|
||||
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_SBG_fuzzer-5133181743136768
|
||||
|
||||
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
|
||||
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||
(cherry picked from commit 0bed22d597b78999151e3bde0768b7fe763fc2a6)
|
||||
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||
|
||||
CVE: CVE-2024-35366
|
||||
|
||||
Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/4db0eb4653efad967ddcf71f564fd2f1169bafcb]
|
||||
|
||||
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
|
||||
---
|
||||
libavformat/sbgdec.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
|
||||
index 1ef50e1598..fdcee0b452 100644
|
||||
--- a/libavformat/sbgdec.c
|
||||
+++ b/libavformat/sbgdec.c
|
||||
@@ -385,7 +385,7 @@ static int parse_options(struct sbg_parser *p)
|
||||
case 'L':
|
||||
FORWARD_ERROR(parse_optarg(p, opt, &oarg));
|
||||
r = str_to_time(oarg.s, &p->scs.opt_duration);
|
||||
- if (oarg.e != oarg.s + r) {
|
||||
+ if (oarg.e != oarg.s + r || p->scs.opt_duration < 0) {
|
||||
snprintf(p->err_msg, sizeof(p->err_msg),
|
||||
"syntax error for option -L");
|
||||
return AVERROR_INVALIDDATA;
|
||||
--
|
||||
2.40.0
|
||||
@@ -40,6 +40,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
|
||||
file://CVE-2023-50007.patch \
|
||||
file://CVE-2023-51796.patch \
|
||||
file://CVE-2024-7055.patch \
|
||||
file://CVE-2024-35366.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"
|
||||
|
||||
Reference in New Issue
Block a user