Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 282653
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alex Legler <a3li@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
dnsmasq-CVE-2009-2957+2958.patch dnsmasq-CVE-2009-2957+2958.patch patch Alex Legler 2009-08-25 09:30 0000 2.73 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 282653 depends on: Show dependency tree
Bug 282653 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2009-08-25 09:17 0000
** Please note that this issue is confidential and no information should be
disclosed until it is made public, see "Whiteboard" for a date **

Simon Kelley informed us about the following issues in the dnsmasq TFTP code:

CVE-2009-2957:
A heap buffer can be overflowed by 2+strlen(tftp-prefix) bytes.
The problem is after access control, so only hosts which can do TFTP can
attack, that's usually local net, not the wider internet. 
It's not clear if that's enough for an attack, but it may well be, on some
platforms.

CVE-2009-2958:
DoS by NULL-pointer dereference, triggered by crafted malformed packet.

The current disclosure date is Aug, 31.

------- Comment #1 From Alex Legler 2009-08-25 09:21:44 0000 -------
I'll attach a patch we got from upstream. Chutzpah, please prepare an ebuild
that applies this patch and attach it to the bug, we can do prestabling here
then.

As usual, no commits to CVS before the issue is public, please.

------- Comment #2 From Alex Legler 2009-08-25 09:30:48 0000 -------
Created an attachment (id=202237) [details]
dnsmasq-CVE-2009-2957+2958.patch

------- Comment #3 From Alex Legler 2009-08-31 22:15:37 0000 -------
This is now public per $URL.
Adapting whiteboard.

+*dnsmasq-2.50 (31 Aug 2009)
+
+  31 Aug 2009; Alex Legler <a3li@gentoo.org> -dnsmasq-2.46.ebuild,
+  -dnsmasq-2.47.ebuild, -dnsmasq-2.49.ebuild, +dnsmasq-2.50.ebuild:
+  Non-maintainer commit: Version bump for security bug 282653. Removing
+  unneded vulnerable versions.
+

------- Comment #4 From Alex Legler 2009-08-31 22:16:25 0000 -------
Arches, please test and mark stable:
=net-dns/dnsmasq-2.50
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"

------- Comment #5 From Christian Faulhammer 2009-09-01 06:53:28 0000 -------
x86 stable

------- Comment #6 From Jeroen Roovers 2009-09-01 13:59:45 0000 -------
Stable for HPPA.

------- Comment #7 From Raúl Porcel 2009-09-02 18:42:57 0000 -------
alpha/arm/ia64/s390/sh/sparc stable

------- Comment #8 From Alex Legler 2009-09-06 09:44:04 0000 -------
CVE-2009-2957 (http://nvd.nist.gov/nvd.cfm?cvename=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 (http://nvd.nist.gov/nvd.cfm?cvename=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.

------- Comment #9 From Markus Meier 2009-09-11 19:17:07 0000 -------
amd64 stable

------- Comment #10 From Brent Baude 2009-09-13 12:35:37 0000 -------
ppc64 done

------- Comment #11 From Wernfried Haas 2009-09-19 09:42:15 0000 -------
If it's any help, net-dns/dnsmasq-2.50 with USE="dhcp ipv6 nls tftp -dbus"
builds fine on ppc here, dns and dhcp work fine too (don't know about tftp,
haven't used it).

------- Comment #12 From nixnut 2009-09-20 18:53:46 0000 -------
ppc stable. thanks amne :)

------- Comment #13 From Alex Legler 2009-09-20 19:38:18 0000 -------
GLSA 200909-19, thanks everyone.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug