Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

BID:36121

Info

Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

Bugtraq ID: 36121
Class: Boundary Condition Error
CVE: CVE-2009-2957
Remote: Yes
Local: No
Published: Aug 31 2009 12:00AM
Updated: Oct 16 2009 01:38AM
Credit: Pablo Jorge and Alberto Soliño
Vulnerable: Ubuntu Ubuntu Linux 9.04 sparc
Ubuntu Ubuntu Linux 9.04 powerpc
Ubuntu Ubuntu Linux 9.04 lpia
Ubuntu Ubuntu Linux 9.04 i386
Ubuntu Ubuntu Linux 9.04 amd64
Ubuntu Ubuntu Linux 8.10 sparc
Ubuntu Ubuntu Linux 8.10 powerpc
Ubuntu Ubuntu Linux 8.10 lpia
Ubuntu Ubuntu Linux 8.10 i386
Ubuntu Ubuntu Linux 8.10 amd64
Ubuntu Ubuntu Linux 8.04 LTS sparc
Ubuntu Ubuntu Linux 8.04 LTS powerpc
Ubuntu Ubuntu Linux 8.04 LTS lpia
Ubuntu Ubuntu Linux 8.04 LTS i386
Ubuntu Ubuntu Linux 8.04 LTS amd64
SuSE SUSE Linux Enterprise 11
S.u.S.E. openSUSE 11.1
S.u.S.E. openSUSE 11.0
S.u.S.E. openSUSE 10.3
Red Hat Fedora 11
Red Hat Fedora 10
Red Hat Enterprise Linux Desktop 5 client
Red Hat Enterprise Linux 5 Server
Pardus Linux 2009 0
Gentoo Linux
Dnsmasq Dnsmasq 2.49
Dnsmasq Dnsmasq 2.48
Dnsmasq Dnsmasq 2.47
Dnsmasq Dnsmasq 2.46
Dnsmasq Dnsmasq 2.45
Dnsmasq Dnsmasq 2.44
Dnsmasq Dnsmasq 2.43
Dnsmasq Dnsmasq 2.42
Dnsmasq Dnsmasq 2.41
Dnsmasq Dnsmasq 2.40
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Not Vulnerable: Dnsmasq Dnsmasq 2.50

Discussion

Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

Dnsmasq is prone to a remotely exploitable heap-overflow vulnerability because the software fails to properly bounds-check user-supplied input before copying it into an insufficiently sized memory buffer.

Remote attackers can exploit this issue to execute arbitrary machine code in the context of the vulnerable software on the targeted user's computer.

Versions *prior to* Dnsmasq 2.50 are vulnerable.

Exploit / POC

Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

Currently we are not aware of any working exploits. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].

Solution / Fix

Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

Solution:
Updates are available. Please see the references for more information.


Debian Linux 5.0 ia-64

Ubuntu Ubuntu Linux 8.04 LTS powerpc

Ubuntu Ubuntu Linux 8.10 powerpc

Ubuntu Ubuntu Linux 8.04 LTS sparc

Ubuntu Ubuntu Linux 8.10 i386

Debian Linux 5.0 alpha

Debian Linux 5.0 ia-32

Ubuntu Ubuntu Linux 8.04 LTS amd64

Debian Linux 5.0 s/390

Debian Linux 5.0 mipsel

Ubuntu Ubuntu Linux 9.04 sparc

Ubuntu Ubuntu Linux 9.04 powerpc

Ubuntu Ubuntu Linux 8.04 LTS lpia

Ubuntu Ubuntu Linux 8.10 lpia

Debian Linux 5.0 hppa

Ubuntu Ubuntu Linux 9.04 i386

Debian Linux 5.0 m68k

Ubuntu Ubuntu Linux 8.10 sparc

Ubuntu Ubuntu Linux 9.04 lpia

Debian Linux 5.0 arm

Debian Linux 5.0 armel

Debian Linux 5.0

Ubuntu Ubuntu Linux 8.04 LTS i386

Debian Linux 5.0 amd64

Debian Linux 5.0 mips

Ubuntu Ubuntu Linux 9.04 amd64

Debian Linux 5.0 powerpc

Ubuntu Ubuntu Linux 8.10 amd64

Debian Linux 5.0 sparc

References

Dnsmasq TFTP Service Remote Heap Buffer Overflow Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report