!178 [sync] PR-169: fix CVE-2024-35368 CVE-2024-36616
From: @openeuler-sync-bot Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
8bf8b2caa1
35
backport-CVE-2024-35368.patch
Normal file
35
backport-CVE-2024-35368.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 4513300989502090c4fd6560544dce399a8cd53c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
|
||||||
|
Date: Sun, 24 Sep 2023 13:15:48 +0200
|
||||||
|
Subject: [PATCH] avcodec/rkmppdec: Fix double-free on error
|
||||||
|
|
||||||
|
After having created the AVBuffer that is put into frame->buf[0],
|
||||||
|
ownership of several objects (namely an AVDRMFrameDescriptor,
|
||||||
|
an MppFrame and some AVBufferRefs framecontextref and decoder_ref)
|
||||||
|
has passed to the AVBuffer and therefore to the frame.
|
||||||
|
Yet it has nevertheless been freed manually on error
|
||||||
|
afterwards, which would lead to a double-free as soon
|
||||||
|
as the AVFrame is unreferenced.
|
||||||
|
|
||||||
|
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
|
||||||
|
---
|
||||||
|
libavcodec/rkmppdec.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/rkmppdec.c b/libavcodec/rkmppdec.c
|
||||||
|
index 7665098c6a..6889545b20 100644
|
||||||
|
--- a/libavcodec/rkmppdec.c
|
||||||
|
+++ b/libavcodec/rkmppdec.c
|
||||||
|
@@ -463,8 +463,8 @@ static int rkmpp_retrieve_frame(AVCodecContext *avctx, AVFrame *frame)
|
||||||
|
|
||||||
|
frame->hw_frames_ctx = av_buffer_ref(decoder->frames_ref);
|
||||||
|
if (!frame->hw_frames_ctx) {
|
||||||
|
- ret = AVERROR(ENOMEM);
|
||||||
|
- goto fail;
|
||||||
|
+ av_frame_unref(frame);
|
||||||
|
+ return AVERROR(ENOMEM);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
29
backport-CVE-2024-36616.patch
Normal file
29
backport-CVE-2024-36616.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 86f73277bf014e2ce36dd2594f1e0fb8b3bd6661 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||||
|
Date: Tue, 26 Mar 2024 01:00:13 +0100
|
||||||
|
Subject: [PATCH] avformat/westwood_vqa: Fix 2g packets
|
||||||
|
|
||||||
|
Fixes: signed integer overflow: 2147483424 * 2 cannot be represented in type 'int'
|
||||||
|
Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-4576211411795968
|
||||||
|
|
||||||
|
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
|
||||||
|
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||||
|
---
|
||||||
|
libavformat/westwood_vqa.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
|
||||||
|
index 954710a6f0..3a31e3f5e8 100644
|
||||||
|
--- a/libavformat/westwood_vqa.c
|
||||||
|
+++ b/libavformat/westwood_vqa.c
|
||||||
|
@@ -262,7 +262,7 @@ static int wsvqa_read_packet(AVFormatContext *s,
|
||||||
|
break;
|
||||||
|
case SND2_TAG:
|
||||||
|
/* 2 samples/byte, 1 or 2 samples per frame depending on stereo */
|
||||||
|
- pkt->duration = (chunk_size * 2) / wsvqa->channels;
|
||||||
|
+ pkt->duration = (chunk_size * 2LL) / wsvqa->channels;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
@ -60,7 +60,7 @@
|
|||||||
Summary: Digital VCR and streaming server
|
Summary: Digital VCR and streaming server
|
||||||
Name: ffmpeg%{?flavor}
|
Name: ffmpeg%{?flavor}
|
||||||
Version: 4.2.4
|
Version: 4.2.4
|
||||||
Release: 19
|
Release: 20
|
||||||
License: %{ffmpeg_license}
|
License: %{ffmpeg_license}
|
||||||
URL: http://ffmpeg.org/
|
URL: http://ffmpeg.org/
|
||||||
%if 0%{?date}
|
%if 0%{?date}
|
||||||
@ -89,6 +89,8 @@ Patch17: CVE-2022-48434.patch
|
|||||||
Patch18: CVE-2020-35965.patch
|
Patch18: CVE-2020-35965.patch
|
||||||
Patch19: backport-CVE-2024-35366.patch
|
Patch19: backport-CVE-2024-35366.patch
|
||||||
Patch20: backport-CVE-2024-35367.patch
|
Patch20: backport-CVE-2024-35367.patch
|
||||||
|
Patch21: backport-CVE-2024-35368.patch
|
||||||
|
Patch22: backport-CVE-2024-36616.patch
|
||||||
|
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
|
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
|
||||||
@ -422,6 +424,9 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 02 2024 liningjie <liningjie@xfusion.com> - 4.2.4-20
|
||||||
|
- fix CVE-2024-35368 CVE-2024-36616
|
||||||
|
|
||||||
* Sat Nov 30 2024 liningjie <liningjie@xfusion.com> - 4.2.4-19
|
* Sat Nov 30 2024 liningjie <liningjie@xfusion.com> - 4.2.4-19
|
||||||
- fix CVE-2024-35366 CVE-2024-35367
|
- fix CVE-2024-35366 CVE-2024-35367
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user