libvorbis: add upstream security fixes
PATCH 1/1 libvorbis: add upstream security fixes
Fixes the following security issues:
CVE-2017-14632: Libvorbis 1.3.5 allows Remote Code Execution upon freeing uninitialized memory in the function vorbis_analysis_headerout() in info.c when vi->channels<=0, a similar issue to Mozilla bug 550184.
CVE-2017-14633: In libvorbis 1.3.5, an out-of-bounds array read vulnerability exists in the function mapping0_forward() in mapping0.c, which may lead to DoS when operating on a crafted audio file with vorbis_analysis().
--- ...633-Don-t-allow-for-more-than-256-channel.patch | 36 ++++++++++++++ ...632-vorbis_analysis_header_out-Don-t-clea.patch | 56 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 package/libvorbis/0001-CVE-2017-14633-Don-t-allow-for-more-than-256-channel.patch create mode 100644 package/libvorbis/0002-CVE-2017-14632-vorbis_analysis_header_out-Don-t-clea.patch
package/libvorbis/0001-CVE-2017-14633-Don-t-allow-for-more-than-256-channel.patch new file +36 -0
@@ -0,0 +1,36 @@ +From a79ec216cd119069c68b8f3542c6a425a74ab993 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Guido=20G=C3=BCnther?= <[email protected]> +Date: Tue, 31 Oct 2017 18:32:46 +0100 +Subject: [PATCH] CVE-2017-14633: Don't allow for more than 256 channels + +Otherwise + + for(i=0;i<vi->channels;i++){ + /* the encoder setup assumes that all the modes used by any + specific bitrate tweaking use the same floor */ + int submap=info->chmuxlist[i]; + +overreads later in mapping0_forward since chmuxlist is a fixed array of +256 elements max. + +Signed-off-by: Peter Korsgaard <[email protected]> +--- + lib/info.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/info.c b/lib/info.c +index fe759ed..7bc4ea4 100644 +--- a/lib/info.c ++++ b/lib/info.c +@@ -588,7 +588,7 @@ int vorbis_analysis_headerout(vorbis_dsp_state *v, + oggpack_buffer opb; + private_state *b=v->backend_state; + +- if(!b||vi->channels<=0){ ++ if(!b||vi->channels<=0||vi->channels>256){ + ret=OV_EFAULT; + goto err_out; + } +-- +2.11.0 +
package/libvorbis/0002-CVE-2017-14632-vorbis_analysis_header_out-Don-t-clea.patch new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 1/1 libvorbis: add upstream security fixes
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes the following security issues:
CVE-2017-14632: Libvorbis 1.3.5 allows Remote Code Execution upon freeing uninitialized memory in the functionvorbis_analysis_headerout()ininfo.cwhen vi->channels<=0, a similar issue to Mozilla bug 550184.
Quoted 6 lines
CVE-2017-14633: In libvorbis 1.3.5, an out-of-bounds array read vulnerability exists in the function
mapping0_forward()inmapping0.c, which may lead to DoS when operating on a crafted audio file withvorbis_analysis().Signed-off-by Peter Korsgaard <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 libvorbis: add upstream security fixes
In reply to Peter KorsgaardQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes the following security issues:
CVE-2017-14632: Libvorbis 1.3.5 allows Remote Code Execution upon freeing uninitialized memory in the functionvorbis_analysis_headerout()ininfo.cwhen vi->channels<=0, a similar issue to Mozilla bug 550184.
Quoted 6 lines
CVE-2017-14633: In libvorbis 1.3.5, an out-of-bounds array read vulnerability exists in the function
mapping0_forward()inmapping0.c, which may lead to DoS when operating on a crafted audio file withvorbis_analysis().Signed-off-by Peter Korsgaard <[email protected]>
Committed to 2017.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard