Bug 733112 - MyDNS is terminated after any lookup when listening on an IPv6 address
Summary: MyDNS is terminated after any lookup when listening on an IPv6 address
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mydns
Version: el6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Itamar Reis Peixoto
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-24 19:27 UTC by Stewart Adam
Modified: 2011-08-24 19:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Stewart Adam 2011-08-24 19:27:41 UTC
Description of problem:
When MyDNS is listening on any IPv6 address (such as ::1 on a stock installation), any DNS query the server receives will trigger a buffer overflow, crashing the server:
Aug 24 03:44:23 dns2 mydns[11494]: *** stack smashing detected ***: mydns terminated
Aug 24 03:44:23 dns2 mydns[11443]: pid 11494 exited due to signal 6
Aug 24 03:44:23 dns2 mydns[11443]: Server pid 11494 died

Having MyDNS bind to all addresses except ::1 in /etc/mydns.conf is a temporary work-around:
no-listen = ::1                	# Do not listen on these addresses

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Setup MyDNS
2. Listen on ::1
3. dig @localhost foobar.com
Actual results:
Stack smashing protection terminates the MyDNS server process.

Expected results:
No crash

Additional info:
Upstream report, incl. patch, here: http://bugs.mydns-ng.com/bug_view_advanced_page.php?bug_id=62

Note You need to log in before you can comment on or make changes to this bug.