diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-01-10 12:43:45 +1300 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-01-12 08:12:20 +0530 |
| commit | 23edbe268c53b33b5a5a93fc1af50b4170a32dcd (patch) | |
| tree | 8a0ced3b6ef199f50cb65ca29f6e70fe8c0b1474 /meta-multimedia | |
| parent | 774c7ed3fdee974385cfcee67ba9c49aa43a3649 (diff) | |
| download | meta-openembedded-23edbe268c53b33b5a5a93fc1af50b4170a32dcd.tar.gz | |
vlc: patch CVE-2024-46461
Details: https://nvd.nist.gov/vuln/detail/CVE-2024-46461
Backport the patch mentioned in the news[1] that fixes this vulnerabililty.
https://code.videolan.org/videolan/vlc/-/blob/3.0.21/NEWS?ref_type=tags#L44
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-multimedia')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/vlc/vlc/CVE-2024-46461.patch | 44 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/CVE-2024-46461.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/CVE-2024-46461.patch new file mode 100644 index 0000000000..868eb89cac --- /dev/null +++ b/meta-multimedia/recipes-multimedia/vlc/vlc/CVE-2024-46461.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | From aafb226321a525169fd68bf4708e7c6f15e4307a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thomas Guillem <thomas@gllm.fr> | ||
| 3 | Date: Tue, 9 Jan 2024 06:58:39 +0100 | ||
| 4 | Subject: [PATCH] mms: fix potential integer overflow | ||
| 5 | |||
| 6 | That could lead to a heap buffer overflow. | ||
| 7 | |||
| 8 | Thanks Andreas Fobian for the security report. | ||
| 9 | |||
| 10 | (cherry picked from commit 467b24dd0f9b0b3d8ba11dd813b393892f7f1ed2) | ||
| 11 | Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> | ||
| 12 | |||
| 13 | CVE: CVE-2024-46461 | ||
| 14 | Upstream-Status: Backport [https://code.videolan.org/videolan/vlc/-/commit/e7f98f3632d793c3921bfe72595721af191e670e] | ||
| 15 | (cherry picked from commit e7f98f3632d793c3921bfe72595721af191e670e) | ||
| 16 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 17 | --- | ||
| 18 | modules/access/mms/mmstu.c | 8 +++++--- | ||
| 19 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c | ||
| 22 | index f795b0bd43..f10e38cd43 100644 | ||
| 23 | --- a/modules/access/mms/mmstu.c | ||
| 24 | +++ b/modules/access/mms/mmstu.c | ||
| 25 | @@ -1316,14 +1316,16 @@ static int mms_ParsePacket( stream_t *p_access, | ||
| 26 | |||
| 27 | if( i_packet_id == p_sys->i_header_packet_id_type ) | ||
| 28 | { | ||
| 29 | - uint8_t *p_reaced = realloc( p_sys->p_header, | ||
| 30 | - p_sys->i_header + i_packet_length - 8 ); | ||
| 31 | + size_t new_header_size; | ||
| 32 | + if( add_overflow( p_sys->i_header, i_packet_length, &new_header_size ) ) | ||
| 33 | + return -1; | ||
| 34 | + uint8_t *p_reaced = realloc( p_sys->p_header, new_header_size ); | ||
| 35 | if( !p_reaced ) | ||
| 36 | return VLC_ENOMEM; | ||
| 37 | |||
| 38 | memcpy( &p_reaced[p_sys->i_header], p_data + 8, i_packet_length - 8 ); | ||
| 39 | p_sys->p_header = p_reaced; | ||
| 40 | - p_sys->i_header += i_packet_length - 8; | ||
| 41 | + p_sys->i_header = new_header_size; | ||
| 42 | |||
| 43 | /* msg_Dbg( p_access, | ||
| 44 | "receive header packet (%d bytes)", | ||
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb index 21bc408f6d..bf34146e0a 100644 --- a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb +++ b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb | |||
| @@ -25,6 +25,7 @@ SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \ | |||
| 25 | file://0006-configure-Disable-incompatible-function-pointer-type.patch \ | 25 | file://0006-configure-Disable-incompatible-function-pointer-type.patch \ |
| 26 | file://taglib-2.patch \ | 26 | file://taglib-2.patch \ |
| 27 | file://0001-taglib-Fix-build-on-x86-32-bit.patch \ | 27 | file://0001-taglib-Fix-build-on-x86-32-bit.patch \ |
| 28 | file://CVE-2024-46461.patch \ | ||
| 28 | " | 29 | " |
| 29 | SRC_URI[sha256sum] = "adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5" | 30 | SRC_URI[sha256sum] = "adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5" |
| 30 | 31 | ||
