Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259472 - mail-mta/ssmtp dies with error: standardise() -- Buffer overflow
Summary: mail-mta/ssmtp dies with error: standardise() -- Buffer overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard: B3? [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 13:26 UTC by Arturas
Modified: 2010-03-06 16:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for gentoo version of ssmtp.c (ssmtp.patch,649 bytes, patch)
2009-02-18 13:27 UTC, Arturas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arturas 2009-02-18 13:26:06 UTC
ssmtp dies with error 'standardise() -- Buffer overflow' on some mails. For details check url. It affects stable version ssmtp-2.62-r4 and also unstable 2.62-r5. Provided patch fixes problem.

Reproducible: Sometimes

Actual Results:  
Feb 18 14:39:03 www sSMTP[24423]: standardise() -- Buffer overflow
Feb 18 14:42:17 www sSMTP[25042]: standardise() -- Buffer overflow


Expected Results:  
mail successfuly sent

Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-19-openvz i686)
=================================================================
System uname: Linux-2.6.24-19-openvz-i686-Genuine_Intel-R-_CPU_2140_@_1.60GHz-with-glibc2.0
Timestamp of tree: Wed, 18 Feb 2009 12:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /sbin/rc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /et
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog jpeg midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session snmp spl ssl sysfs tcpdl
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Arturas 2009-02-18 13:27:37 UTC
Created attachment 182417 [details, diff]
patch for gentoo version of ssmtp.c
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-02-18 18:47:35 UTC
This is referenced as CVE-2008-3962 by Ubuntu. Tracked in #234391, the fix we (and Debian) used seems incomplete, see https://bugs.launchpad.net/ubuntu/+source/ssmtp/+bug/282424/comments/6

Updated patch for CVE-2008-3962 in =mail-mta/ssmtp-2.62-r6.
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2009-02-25 17:05:05 UTC
Please do not mix those issues. CVE-2008-3962 was issued for the data disclosure issue, whereas we are dealing with another bug here. Putting the fix for this bug (aka launchpad #282424) into a patch for CVE-2008-3962 is misleading.

However, I'd cc arches to stable this bump. Do you want to split patches to ease seperation of issues before that?
Comment 4 Aleksandr Dobdin 2009-04-02 11:14:11 UTC
i'm fixed by edit crontab

MAILTO=""
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2009-07-10 13:01:37 UTC
Arches, please test and mark stable:
=mail-mta/ssmtp-2.62-r6
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-10 14:47:53 UTC
Stable for HPPA.
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2009-07-12 11:25:05 UTC
Nevermind. setuptools was still installed for Python 2.5 (2.6 is my default).
Comment 8 Tobias Klausmann (RETIRED) gentoo-dev 2009-07-12 12:09:52 UTC
Stable on alpha.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-14 20:38:02 UTC
x86 stable
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2009-07-15 14:04:23 UTC
arm/ia64/m68k/s390/sh/sparc stable
Comment 11 nixnut (RETIRED) gentoo-dev 2009-07-19 17:23:00 UTC
ppc stable
Comment 12 Brent Baude (RETIRED) gentoo-dev 2009-07-26 12:35:43 UTC
ppc64 done
Comment 13 Markus Meier gentoo-dev 2009-07-27 22:06:15 UTC
amd64 stable, all arches done.
Comment 14 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-07-28 06:13:27 UTC
GLSA voting: NO. 
Looking at the patch, the copied data is just reduced by 2 bytes. Don't think you can cause anything besides a client DoS with 2 bytes to play with.
Comment 15 Stefan Behte (RETIRED) gentoo-dev Security 2009-08-08 22:41:38 UTC
NO, too. Closing.