diff options
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35367.patch | 47 | ||||
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35367.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35367.patch new file mode 100644 index 0000000000..a1bec43c66 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-35367.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 09e6840cf7a3ee07a73c3ae88a020bf27ca1a667 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | ||
3 | Date: Wed, 13 Mar 2024 02:10:26 +0100 | ||
4 | Subject: [PATCH] avcodec/ppc/vp8dsp_altivec: Fix out-of-bounds access | ||
5 | |||
6 | h_subpel_filters_inner[i] and h_subpel_filters_outer[i / 2] | ||
7 | belong together and the former allows the range 0..6, | ||
8 | so the latter needs to support 0..3. But it has only three | ||
9 | elements. Add another one. | ||
10 | The value for the last element has been guesstimated | ||
11 | from subpel_filters in libavcodec/vp8dsp.c. | ||
12 | |||
13 | This is also intended to fix FATE-failures with UBSan here: | ||
14 | https://fate.ffmpeg.org/report.cgi?time=20240312011016&slot=ppc-linux-gcc-13.2-ubsan-altivec-qemu | ||
15 | |||
16 | Tested-by: Sean McGovern <gseanmcg@gmail.com> | ||
17 | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | ||
18 | |||
19 | CVE: CVE-2024-35367 | ||
20 | |||
21 | Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/09e6840cf7a3ee07a73c3ae88a020bf27ca1a667] | ||
22 | |||
23 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
24 | --- | ||
25 | libavcodec/ppc/vp8dsp_altivec.c | 3 ++- | ||
26 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
27 | |||
28 | diff --git a/libavcodec/ppc/vp8dsp_altivec.c b/libavcodec/ppc/vp8dsp_altivec.c | ||
29 | index 12dac8b..061914f 100644 | ||
30 | --- a/libavcodec/ppc/vp8dsp_altivec.c | ||
31 | +++ b/libavcodec/ppc/vp8dsp_altivec.c | ||
32 | @@ -50,11 +50,12 @@ static const vec_s8 h_subpel_filters_inner[7] = | ||
33 | // for 6tap filters, these are the outer two taps | ||
34 | // The zeros mask off pixels 4-7 when filtering 0-3 | ||
35 | // and vice-versa | ||
36 | -static const vec_s8 h_subpel_filters_outer[3] = | ||
37 | +static const vec_s8 h_subpel_filters_outer[4] = | ||
38 | { | ||
39 | REPT4(0, 0, 2, 1), | ||
40 | REPT4(0, 0, 3, 3), | ||
41 | REPT4(0, 0, 1, 2), | ||
42 | + REPT4(0, 0, 0, 0), | ||
43 | }; | ||
44 | |||
45 | #define LOAD_H_SUBPEL_FILTER(i) \ | ||
46 | -- | ||
47 | 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 dd95629648..94d4cb82d5 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
@@ -38,6 +38,7 @@ SRC_URI = " \ | |||
38 | file://CVE-2023-49528.patch \ | 38 | file://CVE-2023-49528.patch \ |
39 | file://CVE-2024-7055.patch \ | 39 | file://CVE-2024-7055.patch \ |
40 | file://CVE-2024-35366.patch \ | 40 | file://CVE-2024-35366.patch \ |
41 | file://CVE-2024-35367.patch \ | ||
41 | " | 42 | " |
42 | 43 | ||
43 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 44 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |