From 184e980c3cbd6fec6892303f5e9e847d18e0cff4 Mon Sep 17 00:00:00 2001 From: Archana Polampalli Date: Wed, 27 Nov 2024 09:24:35 +0000 Subject: [PATCH] ffmpeg: fix CVE-2023-47342 (From OE-Core rev: 725fe951917606fe141aab4d2f1c14617b280943) Signed-off-by: Archana Polampalli Signed-off-by: Steve Sakoman --- .../ffmpeg/ffmpeg/CVE-2023-47342.patch | 39 +++++++++++++++++++ .../recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-47342.patch 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 @@ +From e4d5ac8d7d2a08658b3db7dd821246fe6b35381f Mon Sep 17 00:00:00 2001 +From: Michael Niedermayer +Date: Thu, 19 Oct 2023 22:07:36 +0200 +Subject: [PATCH] avformat/rtsp: Use rtsp_st->stream_index +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: out of array access +Fixes: rtpdec_h264.c149/poc + +Found-by: Hardik Shah of Vehere +Reviewed-by: Martin Storsjö +Signed-off-by: Michael Niedermayer + +CVE: CVE-2023-47342 + +Upstream-Status: Backport [https://github.com/ffmpeg/FFmpeg/commit/e4d5ac8d7d2a08658b3db7dd821246fe6b35381f] + +Signed-off-by: Archana Polampalli +--- + libavformat/rtsp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c +index 70c1894..d435bd0 100644 +--- a/libavformat/rtsp.c ++++ b/libavformat/rtsp.c +@@ -406,7 +406,7 @@ static void parse_fmtp(AVFormatContext *s, RTSPState *rt, + if (rtsp_st->sdp_payload_type == payload_type && + rtsp_st->dynamic_handler && + rtsp_st->dynamic_handler->parse_sdp_a_line) { +- rtsp_st->dynamic_handler->parse_sdp_a_line(s, i, ++ rtsp_st->dynamic_handler->parse_sdp_a_line(s, rtsp_st->stream_index, + rtsp_st->dynamic_protocol_context, line); + } + } +-- +2.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 \ file://CVE-2024-31578.patch \ file://CVE-2023-51794.patch \ file://CVE-2023-51798.patch \ + file://CVE-2023-47342.patch \ " SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"