summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2024-11-27 09:24:35 +0000
committerSteve Sakoman <steve@sakoman.com>2024-12-02 06:23:20 -0800
commit184e980c3cbd6fec6892303f5e9e847d18e0cff4 (patch)
treed95abcc3833ab714dcc7f05fe695f3a7cfd96f0d
parentd63184dd3237252047717607272d0df81fe4cfa1 (diff)
downloadpoky-184e980c3cbd6fec6892303f5e9e847d18e0cff4.tar.gz
ffmpeg: fix CVE-2023-47342
(From OE-Core rev: 725fe951917606fe141aab4d2f1c14617b280943) 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-2023-47342.patch39
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb1
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-47342.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-47342.patch
new file mode 100644
index 0000000000..39842229c1
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-47342.patch
@@ -0,0 +1,39 @@
1From e4d5ac8d7d2a08658b3db7dd821246fe6b35381f Mon Sep 17 00:00:00 2001
2From: Michael Niedermayer <michael@niedermayer.cc>
3Date: Thu, 19 Oct 2023 22:07:36 +0200
4Subject: [PATCH] avformat/rtsp: Use rtsp_st->stream_index
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Fixes: out of array access
10Fixes: rtpdec_h264.c149/poc
11
12Found-by: Hardik Shah of Vehere
13Reviewed-by: Martin Storsjö <martin@martin.st>
14Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
15
16CVE: CVE-2023-47342
17
18Upstream-Status: Backport [https://github.com/ffmpeg/FFmpeg/commit/e4d5ac8d7d2a08658b3db7dd821246fe6b35381f]
19
20Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
21---
22 libavformat/rtsp.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
26index 70c1894..d435bd0 100644
27--- a/libavformat/rtsp.c
28+++ b/libavformat/rtsp.c
29@@ -406,7 +406,7 @@ static void parse_fmtp(AVFormatContext *s, RTSPState *rt,
30 if (rtsp_st->sdp_payload_type == payload_type &&
31 rtsp_st->dynamic_handler &&
32 rtsp_st->dynamic_handler->parse_sdp_a_line) {
33- rtsp_st->dynamic_handler->parse_sdp_a_line(s, i,
34+ rtsp_st->dynamic_handler->parse_sdp_a_line(s, rtsp_st->stream_index,
35 rtsp_st->dynamic_protocol_context, line);
36 }
37 }
38--
392.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 b8bd77972b..d233ced662 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
@@ -36,6 +36,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
36 file://CVE-2024-31578.patch \ 36 file://CVE-2024-31578.patch \
37 file://CVE-2023-51794.patch \ 37 file://CVE-2023-51794.patch \
38 file://CVE-2023-51798.patch \ 38 file://CVE-2023-51798.patch \
39 file://CVE-2023-47342.patch \
39 " 40 "
40 41
41SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" 42SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"