CVE-2017-16942
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function...
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
CVE-2017-16942- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
CVE-2017-16942- Updated
- 2026-11-02
EUVDEUVD-2017-8111 No score
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
EUVD-2017-8111- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m7qj-97rw-rxp3
6.5
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function...
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
GHSA-m7qj-97rw-rxp3- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
OSV
6.5
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
CVE-2017-16942- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-16942
6.5
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
DEBIAN-CVE-2017-16942- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2017-16942
6.5
In libsndfile 1.0.25 (fixed in 1.0.26), a divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file.
- Record
UBUNTU-CVE-2017-16942- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0236 No score
Updated libsndfile packages fix security vulnerabilities
An out of bounds read in the function d2alaw_array() in alaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values (CVE-2017-14245).
An out of bounds read in the function d2ulaw_array() in ulaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values (CVE-2017-14246).
In libsndfile 1.0.28, a divide-by-zero error exists in the function double64_init() in double64.c, which may lead to DoS when playing a crafted audio file (CVE-2017-14634).
Divide-by-zero in the function wav_w64_read_fmt_chunk(), which may lead to Denial of service (CVE-2017-16942).
Note that CVE-2017-16942 only affected Mageia 5.
- Record
MGASA-2018-0236- Updated
- 2026-11-02
OSVSUSE-SU-2018:0351-1 No score
Recommended update for libsndfile
-
This update for libsndfile fixes a memory leak in an error path.(bsc#1038856)
-
CVE-2017-16942: A divide-by-zero error exists in the function wav_w64_read_fmt_chunk() in wav_w64.c, which may lead to DoS when playing a crafted audio file. (bsc#1069874)
-
CVE-2017-14634: In libsndfile 1.0.28, a divide-by-zero error exists in the function double64_init() in double64.c, which may lead to DoS when playing a crafted audio file. (bsc#1059911)
-
CVE-2017-14245: An out of bounds read in the function d2alaw_array() in alaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values. (bsc#1059912)
-
CVE-2017-14246: An out of bounds read in the function d2ulaw_array() in ulaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values.(bsc#1059913)
- Record
SUSE-SU-2018:0351-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:0352-1 No score
Security update for libsndfile
This update for libsndfile fixes the following issues:
- CVE-2017-16942: Divide-by-zero in the function wav_w64_read_fmt_chunk(), which may lead to Denial of service (bsc#1069874).
- CVE-2017-6892: Fixed an out-of-bounds read memory access in the aiff_read_chanmap() (bsc#1043978).
- CVE-2017-14634: In libsndfile 1.0.28, a divide-by-zero error exists in the function double64_init() in double64.c, which may lead to DoS when playing a crafted audio file. (bsc#1059911)
- CVE-2017-14245: An out of bounds read in the function d2alaw_array() in alaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values. (bsc#1059912)
- CVE-2017-14246: An out of bounds read in the function d2ulaw_array() in ulaw.c of libsndfile 1.0.28 may lead to a remote DoS attack or information disclosure, related to mishandling of the NAN and INFINITY floating-point values.(bsc#1059913)
- Record
SUSE-SU-2018:0352-1- Updated
- 2026-11-02
OSVUSN-4013-1 No score
libsndfile vulnerabilities
It was discovered that libsndfile incorrectly handled certain malformed files. A remote attacker could use this issue to cause libsndfile to crash, resulting in a denial of service, or possibly execute arbitrary code.
- Record
USN-4013-1- Updated
- 2026-11-02
OSVUSN-4704-1 No score
libsndfile vulnerabilities
It was discovered that libsndfile incorrectly handled certain malformed files. A remote attacker could use this issue to cause libsndfile to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-12562)
It was discovered that libsndfile incorrectly handled certain malformed files. A remote attacker could use this issue to cause libsndfile to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 ESM. (CVE-2017-14245, CVE-2017-14246, CVE-2017-14634, CVE-2017-16942, CVE-2017-6892, CVE-2018-13139, CVE-2018-19432, CVE-2018-19661, CVE-2018-19662, CVE-2018-19758, CVE-2019-3832)
- Record
USN-4704-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libsndfileDebian:12 |
before 1.0.27-1 | 1.0.27-1 |
libsndfileDebian:13 |
before 1.0.27-1 | 1.0.27-1 |
libsndfileDebian:14 |
before 1.0.27-1 | 1.0.27-1 |
libsndfileMageia:5 |
before 1.0.25-9.5.mga5 | 1.0.25-9.5.mga5 |
libsndfileMageia:6 |
before 1.0.28-3.2.mga6 | 1.0.28-3.2.mga6 |
libsndfileSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 1.0.20-2.19.7.3 | 1.0.20-2.19.7.3 |
libsndfileSUSE:Linux Enterprise Server 11 SP4 |
before 1.0.20-2.19.7.3 | 1.0.20-2.19.7.3 |
libsndfileSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 1.0.20-2.19.7.3 | 1.0.20-2.19.7.3 |
libsndfileSUSE:Linux Enterprise Desktop 12 SP2 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Desktop 12 SP3 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libsndfileSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Server 12 SP2 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Server 12 SP3 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 1.0.25-36.7.2 | 1.0.25-36.7.2 |
libsndfileUbuntu:Pro:14.04:LTS |
before 1.0.25-7ubuntu2.2+esm1, plus listed versions 1.0.25-7ubuntu11.0.25-7ubuntu21.0.25-7ubuntu2.11.0.25-7ubuntu2.2 |
1.0.25-7ubuntu2.2+esm1 |
libsndfileUbuntu:16.04:LTS |
before 1.0.25-10ubuntu0.16.04.2, plus listed versions 1.0.25-9.11.0.25-101.0.25-10ubuntu0.16.04.1 |
1.0.25-10ubuntu0.16.04.2 |
libsndfileUbuntu:18.04:LTS |
before 1.0.28-4ubuntu0.18.04.1, plus listed versions 1.0.28-4 |
1.0.28-4ubuntu0.18.04.1 |
libsndfileUbuntu:16.04:LTS |
before 1.0.25-10ubuntu0.16.04.3, plus listed versions 1.0.25-9.11.0.25-101.0.25-10ubuntu0.16.04.11.0.25-10ubuntu0.16.04.2 |
1.0.25-10ubuntu0.16.04.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-16942 is a medium vulnerability (CVSS 6.5) in Libsndfile Project Libsndfile, published November 25, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.23%, the 69th percentile. Fixed in libsndfile 1.0.27-1.
References
github.com/erikd/libsndfile/issues/341
usn.ubuntu.com/4013-1
nvd.nist.gov/vuln/detail/CVE-2017-16942
github.com/advisories/GHSA-m7qj-97rw-rxp3
security-tracker.debian.org/tracker/CVE-2017-16942
advisories.mageia.org/MGASA-2018-0236.html
Show 32 moreShow less
bugs.mageia.org/show_bug.cgi?id=22561
lists.opensuse.org/opensuse-updates/2018-02/msg00018.html
suse.com/support/update/announcement/2018/suse-su-20180351-1
bugzilla.suse.com/1038856
bugzilla.suse.com/1059911
bugzilla.suse.com/1059912
bugzilla.suse.com/1059913
bugzilla.suse.com/1069874
suse.com/security/cve/CVE-2017-14245
suse.com/security/cve/CVE-2017-14246
suse.com/security/cve/CVE-2017-14634
suse.com/security/cve/CVE-2017-16942
suse.com/support/update/announcement/2018/suse-su-20180352-1
bugzilla.suse.com/1043978
suse.com/security/cve/CVE-2017-6892
ubuntu.com/security/CVE-2017-16942
ubuntu.com/security/notices/USN-4013-1
ubuntu.com/security/notices/USN-4704-1
cve.org/CVERecord?id=CVE-2017-16942
ubuntu.com/security/CVE-2017-6892
ubuntu.com/security/CVE-2017-14245
ubuntu.com/security/CVE-2017-14246
ubuntu.com/security/CVE-2017-14634
ubuntu.com/security/CVE-2017-17456
ubuntu.com/security/CVE-2017-17457
ubuntu.com/security/CVE-2018-13139
ubuntu.com/security/CVE-2018-19432
ubuntu.com/security/CVE-2018-19661
ubuntu.com/security/CVE-2018-19662
ubuntu.com/security/CVE-2018-19758
ubuntu.com/security/CVE-2019-3832
ubuntu.com/security/CVE-2017-12562