dnsmasq: Size parameter overflow via large DNS query
Published Oct 2, 2017
7.5
HIGHCVSS 3.0
EPSS 65.41%
Description
In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size parameter in a memset call gets a negative value. As it is an unsigned value, memset ends up writing up to 0xffffffff zero's (0xffffffffffffffff in 64 bit platforms), making dnsmasq crash.
Affected products
No data.
Configuration 1
- 14.04
- 16.04
- 17.04
- 7.0
- 7.1
- 9.0
- 27
- 42.2
- 42.3
- 7.0
- 7.0
- 7.0
Configuration 2
- ≤ 2.77
No data.
Red Hat Enterprise Linux 5
dnsmasq
Not affected
Red Hat Enterprise Linux 6
dnsmasq
Not affected
Red Hat Enterprise Linux 7
dnsmasq
Not affected
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)
dnsmasq
Not affected
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)
dnsmasq
Not affected
Red Hat OpenStack Platform 10 (Newton)
dnsmasq
Not affected
Red Hat OpenStack Platform 11 (Ocata)
dnsmasq
Not affected
Red Hat OpenStack Platform 12 (Pike)
dnsmasq
Not affected
Red Hat OpenStack Platform 8 (Liberty)
dnsmasq
Not affected
Red Hat OpenStack Platform 9 (Mitaka)
dnsmasq
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | dnsmasq | Not affected | n/a |
| Red Hat Enterprise Linux 6 | dnsmasq | Not affected | n/a |
| Red Hat Enterprise Linux 7 | dnsmasq | Not affected | n/a |
| Red Hat Enterprise Linux OpenStack Platform 6 (Juno) | dnsmasq | Not affected | n/a |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 10 (Newton) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 11 (Ocata) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 12 (Pike) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 8 (Liberty) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 9 (Mitaka) | dnsmasq | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (31 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 65.41% (0.65410) | 99.24th | v5 (v2026.06.15) |
| Sep 22, 2026 | 65.41% (0.65410) | 99.22th | v5 (v2026.06.15) |
| Sep 21, 2026 | 64.18% (0.64175) | 99.22th | v5 (v2026.06.15) |
| Sep 6, 2026 | 65.41% (0.65410) | 99.20th | v5 (v2026.06.15) |
| Sep 5, 2026 | 64.18% (0.64175) | 99.20th | v5 (v2026.06.15) |
| Aug 30, 2026 | 65.41% (0.65410) | 99.20th | v5 (v2026.06.15) |
| Aug 28, 2026 | 64.18% (0.64175) | 99.20th | v5 (v2026.06.15) |
| Aug 24, 2026 | 65.41% (0.65410) | 99.20th | v5 (v2026.06.15) |
| Aug 23, 2026 | 64.18% (0.64175) | 99.19th | v5 (v2026.06.15) |
| Jun 15, 2026 | 65.41% (0.65410) | 99.15th | v5 (v2026.06.15) |
| May 28, 2026 | 77.79% (0.77786) | 99.02th | v4 (v2025.03.14) |
| Mar 25, 2026 | 79.32% (0.79318) | 99.06th | v4 (v2025.03.14) |
| Aug 30, 2025 | 81.75% (0.81755) | 99.15th | v4 (v2025.03.14) |
| Mar 30, 2025 | 79.32% (0.79318) | 99.02th | v4 (v2025.03.14) |
| Mar 29, 2025 | 22.80% (0.22799) | 93.34th | v4 (v2025.03.14) |
| Mar 17, 2025 | 79.32% (0.79318) | 99.02th | v4 (v2025.03.14) |
| Dec 17, 2024 | 62.96% (0.62958) | 97.98th | v3 (v2023.03.01) |
| Jan 6, 2024 | 64.79% (0.64790) | 97.60th | v3 (v2023.03.01) |
| Nov 8, 2023 | 70.78% (0.70775) | 97.71th | v3 (v2023.03.01) |
| May 22, 2023 | 81.48% (0.81482) | 97.84th | v3 (v2023.03.01) |
| May 8, 2023 | 84.89% (0.84895) | 97.97th | v3 (v2023.03.01) |
| Apr 4, 2023 | 90.47% (0.90470) | 98.24th | v3 (v2023.03.01) |
| Mar 7, 2023 | 91.38% (0.91379) | 98.28th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.68% (0.02678) | 55.40th | v1 |
| Jan 6, 2022 | 2.68% (0.02678) | 54.96th | v1 |
| Sep 1, 2021 | 2.68% (0.02678) | 79.35th | v1 |
| Apr 14, 2021 | 2.68% (0.02678) | 0.00th | v1 |
References (16)
- http://thekelleys.org.uk/dnsmasq/CHANGELOG x_refsource_CONFIRMRelease NotesVendor Advisory
- http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928 x_refsource_CONFIRM
- http://www.securityfocus.com/bid/101085 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/101977 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1039474 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2017-13704 Vendor Advisory
- https://access.redhat.com/security/vulnerabilities/3199382 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1495510 Issue Tracking
- https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf x_refsource_CONFIRM
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2017-13704
- https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html x_refsource_MISCThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-13704
- https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html mailing-listx_refsource_MLIST
- https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html mailing-listx_refsource_MLIST
- https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq x_refsource_CONFIRM
Change history (0)
No recorded changes yet.