Bug 143900 - postfix segfaults when hostname unknown
Summary: postfix segfaults when hostname unknown
Keywords:
Status: CLOSED DUPLICATE of bug 139983
Alias: None
Product: Fedora
Classification: Fedora
Component: postfix
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-31 23:05 UTC by Mike Bird
Modified: 2007-11-30 22:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:07:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mike Bird 2004-12-31 23:05:51 UTC
Postfix segfaults if the hostname cannot be found in DNS.

Since the DNS response is not safely checked an exploit may be possible.

Version-Release number of selected component (if applicable):
2.1.5-2.4.FC3

How reproducible:
Always

Steps to Reproduce:
# hostname foo.bar
# service postfix restart


Actual Results:
Shutting down postfix: /etc/init.d/postfix: line 58: 10620
Segmentation fault    /usr/sbin/postfix stop 2>/dev/null 1>&2
                                                           [FAILED]
Starting postfix: /etc/init.d/postfix: line 34: 10628 Segmentation
fault      /usr/sbin/postalias ${alias_database//,} 2>/dev/null
                                                           [FAILED]


Expected Results:
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]

Comment 1 Rob van Nieuwkerk 2005-01-27 23:44:40 UTC
FYI:
I saw something on the postfix developers list that suggests that
this bug is caused by a (not so smart according to Wietse Venema ..)
change to the stock postfix code by Red Hat.  See these postings:

    http://article.gmane.org/gmane.mail.postfix.devel/316
    http://article.gmane.org/gmane.mail.postfix.devel/317
    http://article.gmane.org/gmane.mail.postfix.devel/318
    http://article.gmane.org/gmane.mail.postfix.devel/319


Comment 2 Chris Ricker 2005-01-28 15:15:39 UTC
Is there any reason to include the postfix-hostname-fqdn.patch in
question? I've never found it necessary....

Comment 3 Chris Ricker 2005-01-28 16:19:49 UTC

*** This bug has been marked as a duplicate of 139983 ***

Comment 4 Red Hat Bugzilla 2006-02-21 19:07:49 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


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