<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="200710-04"> <title>libsndfile: Buffer overflow</title> <synopsis> A buffer overflow vulnerability has been discovered in libsndfile. </synopsis> <product type="ebuild">libsndfile</product> <announced>October 07, 2007</announced> <revised>October 07, 2007: 01</revised> <bug>192834</bug> <access>remote</access> <affected> <package name="media-libs/libsndfile" auto="yes" arch="*"> <unaffected range="ge">1.0.17-r1</unaffected> <vulnerable range="lt">1.0.17-r1</vulnerable> </package> </affected> <background> <p> libsndfile is a library for reading and writing various formats of audio files including WAV and FLAC. </p> </background> <description> <p> Robert Buchholz of the Gentoo Security team discovered that the flac_buffer_copy() function does not correctly handle FLAC streams with variable block sizes which leads to a heap-based buffer overflow (CVE-2007-4974). </p> </description> <impact type="normal"> <p> A remote attacker could exploit this vulnerability by enticing a user to open a specially crafted FLAC file or network stream with an application using libsndfile. This might lead to the execution of arbitrary code with privileges of the user playing the file. </p> </impact> <workaround> <p> There is no known workaround at this time. </p> </workaround> <resolution> <p> All libsndfile users should upgrade to the latest version: </p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=media-libs/libsndfile-1.0.17-r1"</code> </resolution> <references> <uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4974">CVE-2007-4974</uri> </references> <metadata tag="requester" timestamp="Sat, 06 Oct 2007 23:14:31 +0000"> p-y </metadata> <metadata tag="submitter" timestamp="Sun, 07 Oct 2007 18:26:17 +0000"> rbu </metadata> <metadata tag="bugReady" timestamp="Sun, 07 Oct 2007 19:16:11 +0000"> p-y </metadata> </glsa>