diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2024-11-21 08:51:04 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-27 06:27:25 -0800 |
| commit | d1d7209c20c1c2d3dd5aca51c4887c6d6da84b90 (patch) | |
| tree | a6436d8960305b7e25fcff01dd8e9eeaeb51f47b | |
| parent | 338d1840cd45704a99b15eeef9b8d97b5cf975dd (diff) | |
| download | poky-d1d7209c20c1c2d3dd5aca51c4887c6d6da84b90.tar.gz | |
ffmpeg: fix CVE-2023-51794
Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a
local attacker to execute arbitrary code via the libavfilter/af_stereowiden.c:120:69.
(From OE-Core rev: 248dc3b20971fb95f0ceb2a34959f857c89ae008)
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-51794.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-51794.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-51794.patch new file mode 100644 index 0000000000..a33ae5ffe9 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2023-51794.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 50f0f8c53c818f73fe2d752708e2fa9d2a2d8a07 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Niedermayer <michael@niedermayer.cc> | ||
| 3 | Date: Sat, 23 Dec 2023 04:03:01 +0100 | ||
| 4 | Subject: [PATCH] avfilter/af_stereowiden: Check length | ||
| 5 | |||
| 6 | Fixes: out of array access | ||
| 7 | Fixes: tickets/10746/poc13ffmpeg | ||
| 8 | |||
| 9 | Found-by: Zeng Yunxiang | ||
| 10 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
| 11 | |||
| 12 | CVE: CVE-2023-51794 | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/ffmpeg/FFmpeg/commit/50f0f8c53c818f73fe2d752708e2fa9d2a2d8a07] | ||
| 15 | |||
| 16 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 17 | --- | ||
| 18 | libavfilter/af_stereowiden.c | 2 ++ | ||
| 19 | 1 file changed, 2 insertions(+) | ||
| 20 | |||
| 21 | diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c | ||
| 22 | index 7cce1a8..f1a5b10 100644 | ||
| 23 | --- a/libavfilter/af_stereowiden.c | ||
| 24 | +++ b/libavfilter/af_stereowiden.c | ||
| 25 | @@ -74,6 +74,8 @@ static int config_input(AVFilterLink *inlink) | ||
| 26 | |||
| 27 | s->length = s->delay * inlink->sample_rate / 1000; | ||
| 28 | s->length *= 2; | ||
| 29 | + if (s->length == 0) | ||
| 30 | + return AVERROR(EINVAL); | ||
| 31 | s->buffer = av_calloc(s->length, sizeof(*s->buffer)); | ||
| 32 | if (!s->buffer) | ||
| 33 | return AVERROR(ENOMEM); | ||
| 34 | -- | ||
| 35 | 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 ae02310af8..80a4e5b96f 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | |||
| @@ -34,6 +34,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ | |||
| 34 | file://CVE-2023-50008.patch \ | 34 | file://CVE-2023-50008.patch \ |
| 35 | file://CVE-2024-31582.patch \ | 35 | file://CVE-2024-31582.patch \ |
| 36 | file://CVE-2024-31578.patch \ | 36 | file://CVE-2024-31578.patch \ |
| 37 | file://CVE-2023-51794.patch \ | ||
| 37 | " | 38 | " |
| 38 | 39 | ||
| 39 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" | 40 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" |
