CVE-2009-2957: Buffer Overflow

Published Aug 24, 2009
·
Updated

Core Security Technologies discovered a heap overflow vulnerability in dnsmasq when the TFTP service is enabled ('--enable-tftp'). If the configured tftp-prefix is sufficiently long, and a remote user sent a request which sends a long file name, dnsmasq could crash or, possibly, execute arbitrary code with root privileges.

The default tftp-prefix is /var/tftpd, which is short enough to make this difficult to exploit; if a longer prefix is used then arbitrary code execution may be possible. As well, Red Hat does not have TFTP support enabled by default.

Other sources

Heap-based buffer overflow in the tftprequest function in tftp.c in dnsmasq before 2.50, when --enable-tftp is used, might allow remote attackers to execute arbitrary code via a long filename in a TFTP packet, as demonstrated by a read (aka RRQ) request.

Red Hat

Affected Software

77 affected componentsFixes available
redhat/dnsmasq<0:2.45-1.1.el5_3
0:2.45-1.1.el5_3
thekelleys dnsmasq=0.4
thekelleys dnsmasq=2.11
thekelleys dnsmasq=2.28
thekelleys dnsmasq=2.39
thekelleys dnsmasq=0.996
thekelleys dnsmasq=1.8
thekelleys dnsmasq=2.1
thekelleys dnsmasq=2.25
thekelleys dnsmasq=2.6
thekelleys dnsmasq=1.2
thekelleys dnsmasq=1.16
thekelleys dnsmasq=0.98
thekelleys dnsmasq=2.34
thekelleys dnsmasq=2.7
thekelleys dnsmasq=1.6
thekelleys dnsmasq=2.23
thekelleys dnsmasq=2.36
thekelleys dnsmasq=2.41
thekelleys dnsmasq=0.95
thekelleys dnsmasq=2.22
thekelleys dnsmasq=1.15
thekelleys dnsmasq=2.46
thekelleys dnsmasq=0.6
thekelleys dnsmasq=2.9
thekelleys dnsmasq=1.7
thekelleys dnsmasq=2.14
thekelleys dnsmasq=1.14
thekelleys dnsmasq=1.12
thekelleys dnsmasq=1.9
thekelleys dnsmasq=0.992
thekelleys dnsmasq=2.20
thekelleys dnsmasq=2.13
thekelleys dnsmasq=2.4
thekelleys dnsmasq=2.44
thekelleys dnsmasq=1.4
thekelleys dnsmasq=1.3
thekelleys dnsmasq=2.10
thekelleys dnsmasq=1.10
thekelleys dnsmasq=0.7
thekelleys dnsmasq=2.3
thekelleys dnsmasq=2.37
thekelleys dnsmasq=2.43
thekelleys dnsmasq=2.29
thekelleys dnsmasq=2.40
thekelleys dnsmasq=2.35
thekelleys dnsmasq=2.17
thekelleys dnsmasq=2.0
thekelleys dnsmasq=2.19
thekelleys dnsmasq=2.42
thekelleys dnsmasq=2.24
thekelleys dnsmasq=1.11
thekelleys dnsmasq=1.17
thekelleys dnsmasq=2.38
thekelleys dnsmasq=2.16
thekelleys dnsmasq=2.48
thekelleys dnsmasq=1.0
thekelleys dnsmasq=2.27
thekelleys dnsmasq=2.33
thekelleys dnsmasq=1.18
thekelleys dnsmasq=1.5
thekelleys dnsmasq=1.13
thekelleys dnsmasq=2.45
thekelleys dnsmasq=2.5
thekelleys dnsmasq=2.47
thekelleys dnsmasq=0.96
thekelleys dnsmasq=2.30
thekelleys dnsmasq=2.21
thekelleys dnsmasq=0.5
thekelleys dnsmasq=2.8
thekelleys dnsmasq=2.26
thekelleys dnsmasq=2.31
thekelleys dnsmasq=2.2
thekelleys dnsmasq<=2.49
thekelleys dnsmasq=2.15
thekelleys dnsmasq=2.12
thekelleys dnsmasq=2.18

Event History

Aug 24, 2009
Data Sourced
via Red Hat·04:09 PM
DescriptionSeverityAffected Software
Aug 31, 2009
CVE Published
via Red Hat·12:00 AM
Sep 2, 2009
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2009-2957?

CVE-2009-2957 is classified as a high severity vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2009-2957?

To fix CVE-2009-2957, upgrade dnsmasq to version 2.50 or later.

3

Which versions of dnsmasq are affected by CVE-2009-2957?

CVE-2009-2957 affects dnsmasq versions prior to 2.50, including 0.4 to 2.49.

4

Can CVE-2009-2957 be exploited remotely?

Yes, CVE-2009-2957 can be exploited remotely through a crafted TFTP packet.

5

What symptoms indicate a potential CVE-2009-2957 exploitation?

Symptoms may include unexpected system behavior or crashes related to dnsmasq's TFTP service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203