Security Advisory

CVE-2015-7547: glibc getaddrinfo DNS Stack Overflow

Last updated:
  • CVE-2015-7547

CVE-2015-7547 is a stack-based buffer overflow in the glibc DNS resolver: a crafted DNS response to a getaddrinfo() call can write up to 65535 bytes into a 2048-byte stack buffer and may allow code execution. It affects glibc 2.9 to 2.22, NVD scores it 8.1, and Siemens lists affected ROX II and SCALANCE devices.

Vulnerability summary

CVSS base score

8.1

High severity

EPSS score (FIRST)

92.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2015-7547 · Source: NVD

Affected components

ComponentCPEVersion range
GNU C Library (glibc) DNS resolver, libnss_dns (getaddrinfo)cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*NVD CPE: glibc 2.9 through 2.22 (fixed in 2.23); code introduced in 2.9, May 2008 (libc-alpha announcement)
Siemens ROX II—V2.3.0 to V2.9.0 inclusive; fixed in V2.9.1 (Siemens ProductCERT SSA-301706)
Siemens SCALANCE M-800 / S615—all versions before V4.02; fixed in V4.02 (SSA-301706)
Siemens SINEMA Remote Connect, APE (Linux) and Basic RT V13—SINEMA Remote Connect before V1.2 (fixed V1.2); APE (Linux) all versions (update per application note); Basic RT V13 before SP1 Update 9 (SSA-301706)

What does this mean for affected devices?

CVE-2015-7547 was announced on the glibc development list on 2016-02-16. The libc-alpha announcement explains that getaddrinfo() with the AF_UNSPEC family sends two parallel queries, for A and AAAA records, and that "a mismanagement of the buffers used for those queries could result in the response writing beyond the alloca allocated buffer". It states that "at most 65535 bytes (MAX_PACKET) may be written to the alloca buffer of 2048 bytes", that the overflowing bytes are "entirely under the control of the attacker", and that the code "was introduced in May 2008 as part of glibc 2.9". Google's security team and Red Hat reported the impact.

The same announcement lists what helps and what does not. A firewall that drops UDP DNS packets larger than 512 bytes, a local resolver that drops non-compliant responses, and limiting TCP replies to 1024 bytes reduce exposure. Disabling IPv6 does not, because "the use of AF_UNSPEC unconditionally enables the dual query", and neither do the single-request resolver options. It also warns that well-formed malicious responses could "penetrate a DNS cache hierarchy", so a caching resolver in front of the device is not a complete defence. NVD scores the CVE 8.1, vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-119, with glibc 2.9 to 2.22 in its CPE list (NVD).

Siemens ProductCERT SSA-301706, published 2016-04-08 and last updated to V1.3 on 2016-09-22, says the flaw affects several industrial products "in their default configuration": ROX II V2.3.0 to V2.9.0 (fixed in 2.9.1), SCALANCE M-800 and S615 before V4.02, SINEMA Remote Connect before V1.2, APE (Linux) in all versions, and Basic RT V13 before SP1 Update 9. Siemens scores it 8.1 and notes that an attacker must make the device resolve an attacker-controlled name, use an attacker-controlled DNS server, or sit in a privileged network position. Until devices are updated, it recommends disabling DNS on them where possible, using trusted DNS servers, or limiting DNS responses at the network border to 512 bytes over UDP and 1024 bytes over TCP. CISA republished the advisory as ICSA-16-103-01C (CSAF).

CVE-2015-7547 is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13), but FIRST EPSS gives it 0.924, the 99.8th percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

Any firmware still on a glibc older than 2.23 without the backported fix should be treated as reachable from whoever answers its DNS queries. Our glibc, uClibc and musl guide explains how to read the libc version from an image, our dnsmasq vulnerabilities guide covers the resolver that often sits in front of glibc on the same device, and CVE-2017-14491 is the matching dnsmasq DNS overflow.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • AF_UNSPEC dual A/AAAA queries; up to 65535 bytes written to a 2048-byte alloca buffer; attacker-controlled bytes; code introduced May 2008 in glibc 2.9; mitigations and non-mitigations (IPv6 disable, single-request). — libc-alpha, Carlos O'Donell, 2016-02-16
  • NVD Primary CVSS 3.0 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), CWE-119; CPE list glibc 2.9 to 2.22. — NVD
  • ROX II V2.3.0-V2.9.0 (fix 2.9.1), SCALANCE M-800/S615 < V4.02, SINEMA Remote Connect < V1.2, APE (Linux) all, Basic RT V13 < SP1 Update 9; mitigations: disable DNS, trusted DNS servers, limit DNS response sizes; V1.3 2016-09-22. — Siemens ProductCERT SSA-301706
  • CISA republication of the Siemens advisory, same product list. — CISA ICSA-16-103-01C (CSAF)
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.92385 (99.8th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. libc-alpha: CVE-2015-7547 glibc getaddrinfo() stack-based buffer overflow
  3. Siemens ProductCERT SSA-301706: GNU C Library vulnerability in industrial products
  4. CISA ICSA-16-103-01C: Siemens industrial products glibc library vulnerability (CSAF)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Does disabling IPv6 protect a device from CVE-2015-7547?

No. The glibc announcement says AF_UNSPEC unconditionally sends both A and AAAA queries, and that the exploit payload can arrive in either answer, so disabling IPv6 or blocking IPv6 at a resolver does not prevent it (per the libc-alpha announcement).

Which Siemens products are affected by CVE-2015-7547?

ROX II V2.3.0 to V2.9.0, SCALANCE M-800 and S615 before V4.02, SINEMA Remote Connect before V1.2, APE (Linux) in all versions and Basic RT V13 before SP1 Update 9, all in their default configuration. Siemens provides updates for each (per Siemens SSA-301706).

What can I do if a device cannot be updated?

Siemens recommends disabling DNS on the device if possible, using only trusted DNS servers, or limiting DNS responses at the network border to 512 bytes over UDP and 1024 bytes over TCP (per Siemens SSA-301706).

Is CVE-2015-7547 exploited?

It is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13), but FIRST EPSS gives it 0.924, the 99.8th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).