From rea-fbsd@codelabs.ru  Fri Mar  6 19:51:09 2009
Return-Path: <rea-fbsd@codelabs.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BDE261065670
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Mar 2009 19:51:09 +0000 (UTC)
	(envelope-from rea-fbsd@codelabs.ru)
Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45])
	by mx1.freebsd.org (Postfix) with ESMTP id 74FD28FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Mar 2009 19:51:09 +0000 (UTC)
	(envelope-from rea-fbsd@codelabs.ru)
Received: from phoenix.codelabs.ru (ppp85-141-162-105.pppoe.mtu-net.ru [85.141.162.105])
	by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256)
	id 1Lfg4a-0006cI-3j for FreeBSD-gnats-submit@freebsd.org; Fri, 06 Mar 2009 22:51:08 +0300
Message-Id: <20090306195109.E313EB8031@phoenix.codelabs.ru>
Date: Fri,  6 Mar 2009 22:51:09 +0300 (MSK)
From: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Reply-To: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [vuxml] [patch] audio/libsndfile: update to 1.0.19 and fix CVE-2009-0186
X-Send-Pr-Version: 3.113
X-GNATS-Notify: multimedia@freebsd.org

>Number:         132371
>Category:       ports
>Synopsis:       [vuxml] [patch] audio/libsndfile: update to 1.0.19 and fix CVE-2009-0186
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 06 20:00:09 UTC 2009
>Closed-Date:    Mon Mar 16 19:50:33 UTC 2009
>Last-Modified:  Mon Mar 16 20:00:06 UTC 2009
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 7.1-STABLE amd64
>Organization:
Code Labs
>Environment:

System: FreeBSD 7.1-STABLE amd64

>Description:

Secunia found integer overflow in CAF processing within libsndfile
1.0.18, [1].  This could lead to the arbitrary code execution with
the privileges of process that uses libsndfile to play/process the
crafted CAF file.

>How-To-Repeat:

[1] http://secunia.com/advisories/33980/

>Fix:

The following patch updates the port to 1.0.19.  I had mildly tested
it and found no problems.

--- update-to-1.0.19.diff begins here ---
From 4f01cb69c37a0df98d0c3c3e483121bb1d944d6b Mon Sep 17 00:00:00 2001
From: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Date: Fri, 6 Mar 2009 22:42:50 +0300

I had tested the new port version by using sndfile-convert to transform
standart .flac applaud00.flac to WAV and CAF files and transform back
from these two formats to FLAC.  Worked without troubles.

Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
---
 audio/libsndfile/Makefile |    2 +-
 audio/libsndfile/distinfo |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/audio/libsndfile/Makefile b/audio/libsndfile/Makefile
index 67c3e59..0ec8ccb 100644
--- a/audio/libsndfile/Makefile
+++ b/audio/libsndfile/Makefile
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	libsndfile
-PORTVERSION=	1.0.18
+PORTVERSION=	1.0.19
 CATEGORIES=	audio
 MASTER_SITES=	http://www.mega-nerd.com/libsndfile/
 
diff --git a/audio/libsndfile/distinfo b/audio/libsndfile/distinfo
index e5f689a..5e9e5a5 100644
--- a/audio/libsndfile/distinfo
+++ b/audio/libsndfile/distinfo
@@ -1,3 +1,3 @@
-MD5 (libsndfile-1.0.18.tar.gz) = 9fde6efb1b75ef38398acf856f252416
-SHA256 (libsndfile-1.0.18.tar.gz) = c0821534a8510982d26b3085b148d9091dede53780733515eb49c99a65da293a
-SIZE (libsndfile-1.0.18.tar.gz) = 923666
+MD5 (libsndfile-1.0.19.tar.gz) = 8fa24b0c0a8758543427c9741ea06924
+SHA256 (libsndfile-1.0.19.tar.gz) = 4b567a02e15bcae25fa1aeb3361b4e2cb8b2ce08e9b53faa81f77a34fb2b5419
+SIZE (libsndfile-1.0.19.tar.gz) = 924368
-- 
1.6.1
--- update-to-1.0.19.diff ends here ---

The following VuXML entry should be evaluated and added:
--- vuln.xml begins here ---
  <vuln vid="ed39c2f3-0a82-11de-9a16-001fc66e7203">
    <topic>libsndfile -- integer overflow vulnerability in CAF processor</topic>
    <affects>
      <package>
        <name>libsndfile</name>
        <range><lt>1.0.19</lt></range>
      </package>
    </affects>
    <description>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>Secunia reports:</p>
        <blockquote
          cite="http://secunia.com/advisories/33980/">
          <p>Secunia Research has discovered a vulnerability in
          libsndfile, which can be exploited by malicious people to
          compromise an application using the library.</p>
          <p>The vulnerability is caused due to an integer overflow
          error in the processing of CAF description chunks. This can be
          exploited to cause a heap-based buffer overflow by tricking
          the user into processing a specially crafted CAF audio
          file.</p>
          <p>Successful exploitation may allow execution of arbitrary
          code.</p>
        </blockquote>
      </body>
    </description>
    <references>
      <bid>33963</bid>
      <cvename>CVE-2009-0186</cvename>
      <url>http://secunia.com/advisories/33980/</url>
    </references>
    <dates>
      <discovery>2009-03-03</discovery>
      <entry>TODAY</entry>
    </dates>
  </vuln>
--- vuln.xml ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Mar 6 20:00:43 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132371 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Mon Mar 16 19:50:32 UTC 2009 
State-Changed-Why:  
Documented thanks for your Submission.! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132371 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132371: commit references a PR
Date: Mon, 16 Mar 2009 19:50:22 +0000 (UTC)

 miwi        2009-03-16 19:50:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/vuxml       vuln.xml 
   Log:
   - Document libsndfile -- CAF processing integer overflow vulnerability
   
   PR:             based on 132371
   
   Revision  Changes    Path
   1.1887    +30 -1     ports/security/vuxml/vuln.xml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
