CVE-2015-3294
NoneCVSS
—
EPSS
5.0%
Published
May 8, 2015
CISA due date
—
Cloudanix analysis
A flaw in DNS software lets attackers read internal memory or crash the service by sending specially crafted requests, which can interrupt network operations and risk data exposure.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper handling of the setup_reply return value in tcp_request allows an out-of-bounds read from process memory on malformed TCP DNS requests, resulting in information disclosure and a crash.
Why it matters to the business
Service disruption for name resolution combined with potential leakage of sensitive process memory can interrupt operations and expose confidential data to remote attackers.
How an attack unfolds
An attacker crafts a malformed DNS request and sends it over TCP to a vulnerable Dnsmasq instance; the missing return-value check triggers an out-of-bounds read that either leaks memory contents or crashes the daemon.
How to fix it
Upgrade Dnsmasq to version 2.73rc4 or later; apply vendor patches for Oracle Solaris; restart the service after upgrade and verify the new version string.
How to confirm the fix worked
Query the running binary or package manager for version >= 2.73rc4; attempt controlled malformed TCP DNS requests in a lab environment and confirm absence of crashes or memory leaks.
Typical attack path
- Locate an exposed Dnsmasq TCP DNS listener
- Send a single malformed DNS query packet
- Observe memory disclosure in the response or a daemon crash
How to detect it
Review Dnsmasq logs for repeated malformed query entries or segmentation-fault crashes; correlate with network captures showing unusual TCP DNS payloads from untrusted sources.
What your security team should do
- Prioritize upgrade of all Dnsmasq instances to 2.73rc4 or newer within 30 days
- Restrict TCP DNS access to trusted networks where possible
- Monitor daemon logs and process health for unexpected crashes
- Inventory downstream dependents and schedule staged rollouts
The record
The tcp_request function in Dnsmasq before 2.73rc4 does not properly handle the return value of the setup_reply function, which allows remote attackers to read process memory and cause a denial of service (out-of-bounds read and crash) via a malformed DNS request.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | dnsmasq | 0 | 2.72-3.1 |
| Debian:12 | dnsmasq | 0 | 2.72-3.1 |
| Debian:13 | dnsmasq | 0 | 2.72-3.1 |
| Debian:6.0 | dnsmasq | 0 | 2.55-2+deb6u1 |
| Debian:7 | dnsmasq | 0 | 2.62-3+deb7u2 |
| Debian:8 | dnsmasq | 0 | 2.72-3+deb8u1 |
| Mageia:4 | dnsmasq | 0 | 2.66-3.1.mga4 |
| SUSE:Cloud Compute Node for SUSE Linux Enterprise 12 5 | dnsmasq | 0 | 2.71-4.1 |
| SUSE:Linux Enterprise Desktop 12 | dnsmasq | 0 | 2.71-4.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | dnsmasq | 0 | 2.78-0.16.5.1 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | dnsmasq | 0 | 2.78-0.16.5.1 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | dnsmasq | 0 | 2.78-0.16.5.1 |
| SUSE:Linux Enterprise Server 11 SP4 | dnsmasq | 0 | 2.78-0.17.5.1 |
| SUSE:Linux Enterprise Server 12 | dnsmasq | 0 | 2.71-4.1 |
| SUSE:Linux Enterprise Server 12-LTSS | dnsmasq | 0 | 2.78-6.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | dnsmasq | 0 | 2.78-0.17.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | dnsmasq | 0 | 2.71-4.1 |
| Ubuntu:14.04:LTS | dnsmasq | 0 | 2.68-1ubuntu0.1 |
| openSUSE:Tumbleweed | dnsmasq | 0 | 2.76-1.3 |
Related vulnerabilities
- CVE-2023-50868 The Closest Encloser Proof aspect of the DNS protocol (in RFC 5155 when RFC 9276 guidance… Also affects dnsmasq
- CVE-2017-14491 Heap-based buffer overflow in dnsmasq before 2.78 allows remote attackers to cause a… Also affects dnsmasq
- CVE-2017-14496 Integer underflow in the add_pseudoheader function in dnsmasq before 2.78 , when the… Also affects dnsmasq
- CVE-2017-14492 Heap-based buffer overflow in dnsmasq before 2.78 allows remote attackers to cause a… Also affects dnsmasq
- CVE-2017-14495 Memory leak in dnsmasq before 2.78, when the --add-mac, --add-cpe-id or --add-subnet… Also affects dnsmasq
- CVE-2017-14494 dnsmasq before 2.78, when configured as a relay, allows remote attackers to obtain… Also affects dnsmasq
- CVE-2017-14493 Stack-based buffer overflow in dnsmasq before 2.78 allows remote attackers to cause a… Also affects dnsmasq
- CVE-2017-13704 In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size… Also affects dnsmasq