Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562886 (CVE-2015-7747) - <media-libs/audiofile-0.3.6-r3: possible buffer overflow
Summary: <media-libs/audiofile-0.3.6-r3: possible buffer overflow
Status: RESOLVED FIXED
Alias: CVE-2015-7747
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: http://www.openwall.com/lists/oss-sec...
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-12 07:47 UTC by Agostino Sarubbo
Modified: 2017-02-21 00:44 UTC (History)
2 users (show)

See Also:
Package list:
=media-libs/audiofile-0.3.6-r3
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2015-10-12 07:47:57 UTC
From ${URL} :

Fabrizio Gennari reported an issue in The Audio File library to the Ubuntu
bugtracker:
https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721

His description included, in part:

        When libaudiofile is used to change both the number of channels of
	an audio file (e.g. from stereo to mono) and the sample format
	(e.g. from 16-bit samples to 8-bit samples), the output file will
	contain corrupted data.

	If the new sample format is smaller than the old one, there is a
	risk of buffer overflow: e.g. when the input file has 16-bit
	samples and the output file has 8-bit samples, afReadFrames will
	treat the buffer to read the samples (argument void *data) as a
	pointer to int16_t instead of int8_t, therefore it will write past
	its end.

He proposed a solution and test case to the Audio File library:
https://github.com/mpruett/audiofile/pull/25/files



@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2017-01-21 17:05:23 UTC
I created a PR which will add upstream's fix: https://github.com/gentoo/gentoo/pull/3581
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2017-01-21 19:16:07 UTC
Now in repository, https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d95fcc8b14612f4a91ab015436e4ea709ba1a7e4


@ Arches,

please test and mark stable: =media-libs/audiofile-0.3.6-r3
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-01-22 10:14:45 UTC
Stable for HPPA.
Comment 4 Agostino Sarubbo gentoo-dev 2017-01-22 14:54:04 UTC
amd64 stable
Comment 5 Agostino Sarubbo gentoo-dev 2017-01-22 15:01:59 UTC
x86 stable
Comment 6 Agostino Sarubbo gentoo-dev 2017-01-22 16:27:45 UTC
sparc stable
Comment 7 Agostino Sarubbo gentoo-dev 2017-01-23 16:27:43 UTC
ia64 stable
Comment 8 Tobias Klausmann (RETIRED) gentoo-dev 2017-01-23 18:25:09 UTC
Stable on alpha.
Comment 9 Agostino Sarubbo gentoo-dev 2017-01-24 11:47:02 UTC
ppc64 stable
Comment 10 Agostino Sarubbo gentoo-dev 2017-01-26 11:01:05 UTC
ppc stable
Comment 11 Markus Meier gentoo-dev 2017-02-05 16:55:54 UTC
arm stable, all arches done.
Comment 12 Aaron Bauman (RETIRED) gentoo-dev 2017-02-06 00:49:17 UTC
@maintainer(s), please clean.
Comment 13 Thomas Deutschmann (RETIRED) gentoo-dev 2017-02-13 01:22:15 UTC
New GLSA request filed.
Comment 14 Mart Raudsepp gentoo-dev 2017-02-13 10:19:30 UTC
cleanup done
Comment 15 Thomas Deutschmann (RETIRED) gentoo-dev 2017-02-21 00:44:04 UTC
No ACE/RCE, downgraded to B3.

GLSA Vote: No

Repository is clean, all done.