CVE-2015-7747
published 2020-02-19CVE-2015-7747: Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of…
PriorityP345high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
8.80%
94.6th percentile
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file, as demonstrated by sixteen-stereo-to-eight-mono.c.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| audiofile | audiofile | < 0.3.6 | 0.3.6 |
| audiofile | audiofile | >= 0 < 0.3.6-3 | 0.3.6-3 |
| audiofile | audiofile | >= 0 < 0.3.6-3 | 0.3.6-3 |
| audiofile | audiofile | >= 0 < 0.3.6-3 | 0.3.6-3 |
| audiofile | audiofile | >= 0 < 0.3.6-3 | 0.3.6-3 |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | audiofile | < audiofile 0.3.6-3 (bookworm) | audiofile 0.3.6-3 (bookworm) |
| fedoraproject | fedora | — | — |
| msrc | azl3_audiofile_0.3.6-27_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Trigger condition: buffer overflow occurs specifically when afReadFrames is called after changing BOTH the number of channels (e.g. stereo to mono) AND the sample format (e.g. 16-bit to 8-bit) simultaneously — monitor for audiofile API usage with mismatched channel/sample-format conversions. ↗
- →Vulnerable code path: afReadFrames treats the output buffer as int16_t instead of int8_t when sample format is downgraded, writing past the buffer end — look for heap/stack corruption signals in processes using libaudiofile during format conversion. ↗
- →The vulnerability was introduced by a specific upstream commit; RHEL6 is NOT affected because that commit never landed there — scope detection efforts to RHEL5, RHEL7, and Fedora deployments. ↗
- ·RHEL6 is explicitly NOT affected; RHEL5 and RHEL7 are affected but marked 'Will not fix' by Red Hat — do not apply RHEL6 patch status to other RHEL versions. ↗
- ·Exploitation is conditional on how the audiofile library is used by the calling application and which operations are performed — not all audiofile usage is exploitable. ↗
- ·Debian fixed the issue in audiofile version 0.3.6-3 across all supported releases (bookworm, bullseye, trixie, sid, forky). ↗
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_msrc8.8HIGH
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execu
vendor_msrc·2020-02-11·CVSS 8.8
CVE-2015-7747 [HIGH] CWE-120 Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execu
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file as demonstrated by sixteen-stereo-to-eight-mono.c.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog
Ubuntu
audiofile vulnerability
vendor_ubuntu·2015-10-28
CVE-2015-7747 audiofile vulnerability
Title: audiofile vulnerability
Summary: audiofile could be made to crash or run programs as your login if it
opened a specially crafted file.
Fabrizio Gennari discovered that audiofile incorrectly handled changing
both the sample format and the number of channels. If a user or automated
system were tricked into processing a specially crafted file, audiofile
could be made to crash, leading to a denial of service, or possibly execute
arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
audiofile: Buffer overflow when changing number of channels and sample format
vendor_redhat·2015-10-04·CVSS 8.8
CVE-2015-7747 [HIGH] CWE-119 audiofile: Buffer overflow when changing number of channels and sample format
audiofile: Buffer overflow when changing number of channels and sample format
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file, as demonstrated by sixteen-stereo-to-eight-mono.c.
Package: audiofile (Red Hat Enterprise Linux 5) - Will not fix
Package: audiofile (Red Hat Enterprise Linux 6) - Not affected
Package: audiofile (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2015-7747: audiofile - Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and ...
vendor_debian·2015·CVSS 8.8
CVE-2015-7747 [HIGH] CVE-2015-7747: audiofile - Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and ...
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file, as demonstrated by sixteen-stereo-to-eight-mono.c.
Scope: local
bookworm: resolved (fixed in 0.3.6-3)
bullseye: resolved (fixed in 0.3.6-3)
forky: resolved (fixed in 0.3.6-3)
sid: resolved (fixed in 0.3.6-3)
trixie: resolved (fixed in 0.3.6-3)
GHSA
GHSA-87hr-6cw6-rj3c: Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a d
ghsa_unreviewed·2022-05-24
CVE-2015-7747 [MEDIUM] CWE-120 GHSA-87hr-6cw6-rj3c: Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a d
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file, as demonstrated by sixteen-stereo-to-eight-mono.c.
OSV
CVE-2015-7747: Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a d
osv·2020-02-19·CVSS 8.8
CVE-2015-7747 [HIGH] CVE-2015-7747: Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a d
Buffer overflow in the afReadFrames function in audiofile (aka libaudiofile and Audio File Library) allows user-assisted remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted audio file, as demonstrated by sixteen-stereo-to-eight-mono.c.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format
bugzilla·2015-10-08·CVSS 8.8
CVE-2015-7747 [HIGH] CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format
CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format
A buffer overflow vulnerability was found in Audio File Library appearing when changing 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), causing the output file to 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.
Reproducer can be found here:
https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721
Propo
Bugzilla
CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format [fedora-all]
bugzilla·2015-10-08·CVSS 8.8
CVE-2015-7747 [HIGH] CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format [fedora-all]
CVE-2015-7747 audiofile: Buffer overflow when changing number of channels and sample format [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mult
http://lists.fedoraproject.org/pipermail/package-announce/2015-November/170387.htmlhttp://www.openwall.com/lists/oss-security/2015/10/06/2http://www.ubuntu.com/usn/USN-2787-1https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721https://github.com/ccrisan/motioneyeos/blob/master/package/audiofile/0008-CVE-2015-7747.patchhttps://www.openwall.com/lists/oss-security/2015/10/08/1http://lists.fedoraproject.org/pipermail/package-announce/2015-November/170387.htmlhttp://www.openwall.com/lists/oss-security/2015/10/06/2http://www.ubuntu.com/usn/USN-2787-1https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721https://github.com/ccrisan/motioneyeos/blob/master/package/audiofile/0008-CVE-2015-7747.patchhttps://www.openwall.com/lists/oss-security/2015/10/08/1
2020-02-19
Published