ID CVE-2009-2957
Summary Heap-based buffer overflow in the tftp_request 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.
References
Vulnerable Configurations
  • thekelleys dnsmasq 2.48
    cpe:2.3:a:thekelleys:dnsmasq:2.48
  • thekelleys dnsmasq 2.47
    cpe:2.3:a:thekelleys:dnsmasq:2.47
  • thekelleys dnsmasq 2.46
    cpe:2.3:a:thekelleys:dnsmasq:2.46
  • thekelleys dnsmasq 2.45
    cpe:2.3:a:thekelleys:dnsmasq:2.45
  • thekelleys dnsmasq 2.44
    cpe:2.3:a:thekelleys:dnsmasq:2.44
  • thekelleys dnsmasq 2.43
    cpe:2.3:a:thekelleys:dnsmasq:2.43
  • thekelleys dnsmasq 2.42
    cpe:2.3:a:thekelleys:dnsmasq:2.42
  • thekelleys dnsmasq 2.41
    cpe:2.3:a:thekelleys:dnsmasq:2.41
  • thekelleys dnsmasq 2.35
    cpe:2.3:a:thekelleys:dnsmasq:2.35
  • thekelleys dnsmasq 2.22
    cpe:2.3:a:thekelleys:dnsmasq:2.22
  • thekelleys dnsmasq 2.25
    cpe:2.3:a:thekelleys:dnsmasq:2.25
  • thekelleys dnsmasq 2.40
    cpe:2.3:a:thekelleys:dnsmasq:2.40
  • thekelleys dnsmasq 2.39
    cpe:2.3:a:thekelleys:dnsmasq:2.39
  • thekelleys dnsmasq 2.38
    cpe:2.3:a:thekelleys:dnsmasq:2.38
  • thekelleys dnsmasq 2.37
    cpe:2.3:a:thekelleys:dnsmasq:2.37
  • thekelleys dnsmasq 2.36
    cpe:2.3:a:thekelleys:dnsmasq:2.36
  • thekelleys dnsmasq 2.34
    cpe:2.3:a:thekelleys:dnsmasq:2.34
  • thekelleys dnsmasq 2.32
    cpe:2.3:a:thekelleys:dnsmasq:2.33
  • thekelleys dnsmasq 2.31
    cpe:2.3:a:thekelleys:dnsmasq:2.31
  • thekelleys dnsmasq 2.30
    cpe:2.3:a:thekelleys:dnsmasq:2.30
  • thekelleys dnsmasq 2.29
    cpe:2.3:a:thekelleys:dnsmasq:2.29
  • thekelleys dnsmasq 2.28
    cpe:2.3:a:thekelleys:dnsmasq:2.28
  • thekelleys dnsmasq 2.27
    cpe:2.3:a:thekelleys:dnsmasq:2.27
  • thekelleys dnsmasq 2.26
    cpe:2.3:a:thekelleys:dnsmasq:2.26
  • thekelleys dnsmasq 2.24
    cpe:2.3:a:thekelleys:dnsmasq:2.24
  • thekelleys dnsmasq 2.23
    cpe:2.3:a:thekelleys:dnsmasq:2.23
  • thekelleys dnsmasq 2.21
    cpe:2.3:a:thekelleys:dnsmasq:2.21
  • thekelleys dnsmasq 2.20
    cpe:2.3:a:thekelleys:dnsmasq:2.20
  • thekelleys dnsmasq 2.19
    cpe:2.3:a:thekelleys:dnsmasq:2.19
  • thekelleys dnsmasq 2.18
    cpe:2.3:a:thekelleys:dnsmasq:2.18
  • thekelleys dnsmasq 2.17
    cpe:2.3:a:thekelleys:dnsmasq:2.17
  • thekelleys dnsmasq 2.16
    cpe:2.3:a:thekelleys:dnsmasq:2.16
  • thekelleys dnsmasq 2.15
    cpe:2.3:a:thekelleys:dnsmasq:2.15
  • thekelleys dnsmasq 2.14
    cpe:2.3:a:thekelleys:dnsmasq:2.14
  • thekelleys dnsmasq 2.13
    cpe:2.3:a:thekelleys:dnsmasq:2.13
  • thekelleys dnsmasq 2.12
    cpe:2.3:a:thekelleys:dnsmasq:2.12
  • thekelleys dnsmasq 2.11
    cpe:2.3:a:thekelleys:dnsmasq:2.11
  • thekelleys dnsmasq 2.10
    cpe:2.3:a:thekelleys:dnsmasq:2.10
  • thekelleys dnsmasq 2.9
    cpe:2.3:a:thekelleys:dnsmasq:2.9
  • thekelleys dnsmasq 2.8
    cpe:2.3:a:thekelleys:dnsmasq:2.8
  • thekelleys dnsmasq 2.7
    cpe:2.3:a:thekelleys:dnsmasq:2.7
  • thekelleys dnsmasq 2.6
    cpe:2.3:a:thekelleys:dnsmasq:2.6
  • thekelleys dnsmasq 2.5
    cpe:2.3:a:thekelleys:dnsmasq:2.5
  • thekelleys dnsmasq 2.4
    cpe:2.3:a:thekelleys:dnsmasq:2.4
  • thekelleys dnsmasq 2.3
    cpe:2.3:a:thekelleys:dnsmasq:2.3
  • thekelleys dnsmasq 2.22
    cpe:2.3:a:thekelleys:dnsmasq:2.2
  • thekelleys dnsmasq 2.1
    cpe:2.3:a:thekelleys:dnsmasq:2.1
  • thekelleys dnsmasq 2.0
    cpe:2.3:a:thekelleys:dnsmasq:2.0
  • thekelleys dnsmasq 1.18
    cpe:2.3:a:thekelleys:dnsmasq:1.18
  • thekelleys dnsmasq 1.17
    cpe:2.3:a:thekelleys:dnsmasq:1.17
  • thekelleys dnsmasq 1.16
    cpe:2.3:a:thekelleys:dnsmasq:1.16
  • thekelleys dnsmasq 1.15
    cpe:2.3:a:thekelleys:dnsmasq:1.15
  • thekelleys dnsmasq 1.14
    cpe:2.3:a:thekelleys:dnsmasq:1.14
  • thekelleys dnsmasq 1.13
    cpe:2.3:a:thekelleys:dnsmasq:1.13
  • thekelleys dnsmasq 1.12
    cpe:2.3:a:thekelleys:dnsmasq:1.12
  • thekelleys dnsmasq 1.11
    cpe:2.3:a:thekelleys:dnsmasq:1.11
  • thekelleys dnsmasq 1.10
    cpe:2.3:a:thekelleys:dnsmasq:1.10
  • thekelleys dnsmasq 1.9
    cpe:2.3:a:thekelleys:dnsmasq:1.9
  • thekelleys dnsmasq 1.8
    cpe:2.3:a:thekelleys:dnsmasq:1.8
  • thekelleys dnsmasq 1.7
    cpe:2.3:a:thekelleys:dnsmasq:1.7
  • thekelleys dnsmasq 1.6
    cpe:2.3:a:thekelleys:dnsmasq:1.6
  • thekelleys dnsmasq 1.5
    cpe:2.3:a:thekelleys:dnsmasq:1.5
  • thekelleys dnsmasq 1.4
    cpe:2.3:a:thekelleys:dnsmasq:1.4
  • thekelleys dnsmasq 1.3
    cpe:2.3:a:thekelleys:dnsmasq:1.3
  • thekelleys dnsmasq 1.2
    cpe:2.3:a:thekelleys:dnsmasq:1.2
  • thekelleys dnsmasq 1.0
    cpe:2.3:a:thekelleys:dnsmasq:1.0
  • thekelleys dnsmasq 0.996
    cpe:2.3:a:thekelleys:dnsmasq:0.996
  • thekelleys dnsmasq 0.992
    cpe:2.3:a:thekelleys:dnsmasq:0.992
  • thekelleys dnsmasq 0.98
    cpe:2.3:a:thekelleys:dnsmasq:0.98
  • thekelleys dnsmasq 0.96
    cpe:2.3:a:thekelleys:dnsmasq:0.96
  • thekelleys dnsmasq 0.95
    cpe:2.3:a:thekelleys:dnsmasq:0.95
  • thekelleys dnsmasq 0.7
    cpe:2.3:a:thekelleys:dnsmasq:0.7
  • thekelleys dnsmasq 0.6
    cpe:2.3:a:thekelleys:dnsmasq:0.6
  • thekelleys dnsmasq 0.5
    cpe:2.3:a:thekelleys:dnsmasq:0.5
  • thekelleys dnsmasq 0.4
    cpe:2.3:a:thekelleys:dnsmasq:0.4
  • thekelleys dnsmasq 2.49
    cpe:2.3:a:thekelleys:dnsmasq:2.49
CVSS
Base: 6.8 (as of 02-09-2009 - 11:41)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
description Dnsmasq < 2.50 Heap Overflow & Null pointer Dereference Vulns. CVE-2009-2957,CVE-2009-2958. Dos exploit for windows platform
id EDB-ID:9617
last seen 2016-02-01
modified 2009-09-09
published 2009-09-09
reporter Core Security
source https://www.exploit-db.com/download/9617/
title Dnsmasq < 2.50 - Heap Overflow & Null pointer Dereference Vulns
nessus via4
  • NASL family OracleVM Local Security Checks
    NASL id ORACLEVM_OVMSA-2009-0022.NASL
    description The remote OracleVM system is missing necessary patches to address critical security updates : CVE-2009-2957 Heap-based buffer overflow in the tftp_request 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. CVE-2009-2958 The tftp_request function in tftp.c in dnsmasq before 2.50, when --enable-tftp is used, allows remote attackers to cause a denial of service (NULL pointer dereference and daemon crash) via a TFTP read (aka RRQ) request with a malformed blksize option. - problems with strings when enabling tftp (CVE-2009-2957, CVE-2009-2957) - Resolves: rhbg#519021 - update to new upstream version - fixes for CVE-2008-1447/CERT VU#800113 - Resolves: rhbz#454869
    last seen 2019-02-21
    modified 2018-07-24
    plugin id 79464
    published 2014-11-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=79464
    title OracleVM 2.1 : dnsmasq (OVMSA-2009-0022)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2009-1238.NASL
    description An updated dnsmasq package that fixes two security issues is now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Dnsmasq is a lightweight and easy to configure DNS forwarder and DHCP server. Core Security Technologies discovered a heap overflow flaw in dnsmasq when the TFTP service is enabled (the '--enable-tftp' command line option, or by enabling 'enable-tftp' in '/etc/dnsmasq.conf'). If the configured tftp-root is sufficiently long, and a remote user sends a request that sends a long file name, dnsmasq could crash or, possibly, execute arbitrary code with the privileges of the dnsmasq service (usually the unprivileged 'nobody' user). (CVE-2009-2957) A NULL pointer dereference flaw was discovered in dnsmasq when the TFTP service is enabled. This flaw could allow a malicious TFTP client to crash the dnsmasq service. (CVE-2009-2958) Note: The default tftp-root is '/var/ftpd', which is short enough to make it difficult to exploit the CVE-2009-2957 issue; if a longer directory name is used, arbitrary code execution may be possible. As well, the dnsmasq package distributed by Red Hat does not have TFTP support enabled by default. All users of dnsmasq should upgrade to this updated package, which contains a backported patch to correct these issues. After installing the updated package, the dnsmasq service must be restarted for the update to take effect.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 43778
    published 2010-01-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=43778
    title CentOS 5 : dnsmasq (CESA-2009:1238)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2009-1238.NASL
    description An updated dnsmasq package that fixes two security issues is now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Dnsmasq is a lightweight and easy to configure DNS forwarder and DHCP server. Core Security Technologies discovered a heap overflow flaw in dnsmasq when the TFTP service is enabled (the '--enable-tftp' command line option, or by enabling 'enable-tftp' in '/etc/dnsmasq.conf'). If the configured tftp-root is sufficiently long, and a remote user sends a request that sends a long file name, dnsmasq could crash or, possibly, execute arbitrary code with the privileges of the dnsmasq service (usually the unprivileged 'nobody' user). (CVE-2009-2957) A NULL pointer dereference flaw was discovered in dnsmasq when the TFTP service is enabled. This flaw could allow a malicious TFTP client to crash the dnsmasq service. (CVE-2009-2958) Note: The default tftp-root is '/var/ftpd', which is short enough to make it difficult to exploit the CVE-2009-2957 issue; if a longer directory name is used, arbitrary code execution may be possible. As well, the dnsmasq package distributed by Red Hat does not have TFTP support enabled by default. All users of dnsmasq should upgrade to this updated package, which contains a backported patch to correct these issues. After installing the updated package, the dnsmasq service must be restarted for the update to take effect.
    last seen 2019-02-21
    modified 2018-11-27
    plugin id 40834
    published 2009-09-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40834
    title RHEL 5 : dnsmasq (RHSA-2009:1238)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-827-1.NASL
    description IvAin Arce, Pablo HernAin Jorge, Alejandro Pablo Rodriguez, MartAn Coco, Alberto SoliAto Testa and Pablo Annetta discovered that Dnsmasq did not properly validate its input when processing TFTP requests for files with long names. A remote attacker could cause a denial of service or execute arbitrary code with user privileges. Dnsmasq runs as the 'dnsmasq' user by default on Ubuntu. (CVE-2009-2957) Steve Grubb discovered that Dnsmasq could be made to dereference a NULL pointer when processing certain TFTP requests. A remote attacker could cause a denial of service by sending a crafted TFTP request. (CVE-2009-2958). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 40848
    published 2009-09-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40848
    title Ubuntu 8.04 LTS / 8.10 / 9.04 : dnsmasq vulnerabilities (USN-827-1)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-1876.NASL
    description Several remote vulnerabilities have been discovered in the TFTP component of dnsmasq. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2009-2957 A buffer overflow in TFTP processing may enable arbitrary code execution to attackers which are permitted to use the TFTP service. - CVE-2009-2958 Malicious TFTP clients may crash dnsmasq, leading to denial of service.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 44741
    published 2010-02-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=44741
    title Debian DSA-1876-1 : dnsmasq - buffer overflow
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_80AA98E097B411DEB9460030843D3802.NASL
    description Simon Kelley reports : Fix security problem which allowed any host permitted to do TFTP to possibly compromise dnsmasq by remote buffer overflow when TFTP enabled. Fix a problem which allowed a malicious TFTP client to crash dnsmasq.
    last seen 2019-02-21
    modified 2018-12-19
    plugin id 40858
    published 2009-09-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40858
    title FreeBSD : dnsmasq -- TFTP server remote code injection vulnerability (80aa98e0-97b4-11de-b946-0030843d3802)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-10252.NASL
    description This update fixes two security issues with dnsmasq's tftp server: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2957 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2958 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 42121
    published 2009-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=42121
    title Fedora 10 : dnsmasq-2.46-2.fc10 (2009-10252)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-10285.NASL
    description This update fixes two security issues with dnsmasq's tftp server: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2957 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2958 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 42123
    published 2009-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=42123
    title Fedora 11 : dnsmasq-2.46-3.fc11 (2009-10285)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200909-19.NASL
    description The remote host is affected by the vulnerability described in GLSA-200909-19 (Dnsmasq: Multiple vulnerabilities) Multiple vulnerabilities have been reported in the TFTP functionality included in Dnsmasq: Pablo Jorge and Alberto Solino discovered a heap-based buffer overflow (CVE-2009-2957). An anonymous researcher reported a NULL pointer reference (CVE-2009-2958). Impact : A remote attacker in the local network could exploit these vulnerabilities by sending specially crafted TFTP requests to a machine running Dnsmasq, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the daemon, or a Denial of Service. NOTE: The TFTP server is not enabled by default. Workaround : You can disable the TFTP server either at buildtime by not enabling the 'tftp' USE flag, or at runtime. Make sure '--enable-tftp' is not set in the DNSMASQ_OPTS variable in the /etc/conf.d/dnsmasq file and 'enable-tftp' is not set in /etc/dnsmasq.conf, either of which would enable TFTP support if it is compiled in.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 41023
    published 2009-09-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=41023
    title GLSA-200909-19 : Dnsmasq: Multiple vulnerabilities
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2009-1238.NASL
    description From Red Hat Security Advisory 2009:1238 : An updated dnsmasq package that fixes two security issues is now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Dnsmasq is a lightweight and easy to configure DNS forwarder and DHCP server. Core Security Technologies discovered a heap overflow flaw in dnsmasq when the TFTP service is enabled (the '--enable-tftp' command line option, or by enabling 'enable-tftp' in '/etc/dnsmasq.conf'). If the configured tftp-root is sufficiently long, and a remote user sends a request that sends a long file name, dnsmasq could crash or, possibly, execute arbitrary code with the privileges of the dnsmasq service (usually the unprivileged 'nobody' user). (CVE-2009-2957) A NULL pointer dereference flaw was discovered in dnsmasq when the TFTP service is enabled. This flaw could allow a malicious TFTP client to crash the dnsmasq service. (CVE-2009-2958) Note: The default tftp-root is '/var/ftpd', which is short enough to make it difficult to exploit the CVE-2009-2957 issue; if a longer directory name is used, arbitrary code execution may be possible. As well, the dnsmasq package distributed by Red Hat does not have TFTP support enabled by default. All users of dnsmasq should upgrade to this updated package, which contains a backported patch to correct these issues. After installing the updated package, the dnsmasq service must be restarted for the update to take effect.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 67918
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=67918
    title Oracle Linux 5 : dnsmasq (ELSA-2009-1238)
  • NASL family DNS
    NASL id DNSMASQ_MULTIPLE_TFTP_FLAWS.NASL
    description The remote host is running dnsmasq, a DNS and TFTP server. The version of dnsmasq installed on the remote host reports itself as lower than 2.50. Such versions include a TFTP server that is reportedly affected by a number of issues: - A remote heap-overflow vulnerability exists because the software fails to properly bounds-check user-supplied input before copying it into an insufficiently-sized memory buffer. (CVE-2009-2957) - A malformed TFTP packet can crash dnsmasq with a NULL pointer dereference. (CVE-2009-2958)
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 40875
    published 2009-09-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40875
    title dnsmasq < 2.50 Multiple Remote TFTP Vulnerabilities
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20090831_DNSMASQ_ON_SL5_X.NASL
    description CVE-2009-2957, CVE-2009-2958 dnsmasq: multiple vulnerabilities in TFTP server Core Security Technologies discovered a heap overflow flaw in dnsmasq when the TFTP service is enabled (the '--enable-tftp' command line option, or by enabling 'enable-tftp' in '/etc/dnsmasq.conf'). If the configured tftp-root is sufficiently long, and a remote user sends a request that sends a long file name, dnsmasq could crash or, possibly, execute arbitrary code with the privileges of the dnsmasq service (usually the unprivileged 'nobody' user). (CVE-2009-2957) A NULL pointer dereference flaw was discovered in dnsmasq when the TFTP service is enabled. This flaw could allow a malicious TFTP client to crash the dnsmasq service. (CVE-2009-2958) Note: The default tftp-root is '/var/ftpd', which is short enough to make it difficult to exploit the CVE-2009-2957 issue; if a longer directory name is used, arbitrary code execution may be possible. As well, the dnsmasq package distributed by Red Hat does not have TFTP support enabled by default. After installing the updated package, the dnsmasq service must be restarted for the update to take effect.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 60649
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=60649
    title Scientific Linux Security Update : dnsmasq on SL5.x i386/x86_64
oval via4
accepted 2013-04-29T04:06:32.494-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 5
    oval oval:org.mitre.oval:def:11414
  • comment The operating system installed on the system is CentOS Linux 5.x
    oval oval:org.mitre.oval:def:15802
  • comment Oracle Linux 5.x
    oval oval:org.mitre.oval:def:15459
description Heap-based buffer overflow in the tftp_request 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.
family unix
id oval:org.mitre.oval:def:10538
status accepted
submitted 2010-07-09T03:56:16-04:00
title Heap-based buffer overflow in the tftp_request 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.
version 18
packetstorm via4
data source https://packetstormsecurity.com/files/download/80896/CORE-2009-0820.txt
id PACKETSTORM:80896
last seen 2016-12-05
published 2009-09-02
reporter Core Security Technologies
source https://packetstormsecurity.com/files/80896/Core-Security-Technologies-Advisory-2009.0820.html
title Core Security Technologies Advisory 2009.0820
redhat via4
advisories
  • rhsa
    id RHSA-2009:1238
  • rhsa
    id RHSA-2010:0095
rpms dnsmasq-0:2.45-1.1.el5_3
refmap via4
bid 36121
confirm
misc http://www.coresecurity.com/content/dnsmasq-vulnerabilities
secunia 36563
ubuntu USN-827-1
Last major update 22-01-2013 - 23:19
Published 02-09-2009 - 11:30
Last modified 18-09-2017 - 21:29
Back to Top