<?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>2007-10-07</announced> <revised count="01">2007-10-07</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="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4974">CVE-2007-4974</uri> </references> <metadata tag="requester" timestamp="2007-10-06T23:14:31Z"> p-y </metadata> <metadata tag="submitter" timestamp="2007-10-07T18:26:17Z"> rbu </metadata> <metadata tag="bugReady" timestamp="2007-10-07T19:16:11Z"> p-y </metadata> </glsa>