First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 139369
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
tcon_DoS.patch tcon_DoS.patch patch Sune Kloppenborg Jeppesen 2006-07-05 13:57 0000 469 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 139369 depends on: Show dependency tree
Bug 139369 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: 2006-07-05 13:56 0000
We've got a small anonymous DoS against Samba 3.0.1 - 3.0.22
inclusive.  The bug is caused by continually increasing
the size of an array which maintains state information about
the number of active share connections.  The result is that
an attacker could cause a single smbd to bloat exhausting
the memory on a server.

------- Comment #1 From Sune Kloppenborg Jeppesen 2006-07-05 13:57:31 0000 -------
Created an attachment (id=91012) [details]
tcon_DoS.patch

------- Comment #2 From Sune Kloppenborg Jeppesen 2006-07-06 13:22:35 0000 -------
Christian do you think we should do some pretesting before the public release
or just wait?

------- Comment #3 From Christian Andreetta (RETIRED) 2006-07-10 05:04:07 0000 -------
I've done a quick test, but maybe I didn't understand the problem/patch.
With a loop like
'for n in ${long}; do smbmount //srv/share /mnt/point/${n} -o...; done'
I stop only at the memory limits of the client (well above 4000 concurrent
connections, instead of 2047 limit in the patch).
Is there anything more that I can do to test this?

------- Comment #4 From Sune Kloppenborg Jeppesen 2006-07-11 02:35:01 0000 -------
*** Bug 139961 has been marked as a duplicate of this bug. ***

------- Comment #5 From Sune Kloppenborg Jeppesen 2006-07-11 02:35:23 0000 -------
This is now public.

------- Comment #6 From Christian Andreetta (RETIRED) 2006-07-11 03:02:44 0000 -------
samba-3.0.22-r3 in portage, with patchset samba-3-gentoo-0.3.13.tar.bz2 in
/space/distfiles-local

------- Comment #7 From Sune Kloppenborg Jeppesen 2006-07-11 03:14:35 0000 -------
Thx Christian.

Arches please test and mark stable.

------- Comment #8 From Markus Rothe 2006-07-11 05:52:08 0000 -------
ppc64 stable

------- Comment #9 From Christian Faulhammer 2006-07-11 06:22:17 0000 -------
1) emerges fine
2) no problems accessing shares from WinXP machine on Linux
3) no problems accessing shares of WinXP from Linux (through smp:// interface
of Nautilus and on command line via smbclient)

This is an partly unstable system:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4,
2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash
/etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa artworkextra asf audiofile avi
bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo
ccache cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags
dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs
emboss encode esd evo exif fam fat fbcon fdftk ffmpeg firefox foomaticdb
fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal howl icq
idn imagemagick imap imlib ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap
leim libg++ libwww lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext
mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus
nosendmail nowebdav nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf
pdflib perl plotutils pmu png ppds pppd preview-latex print python qt qt3 qt4
quicktime readline reflection reiserfs samba sdk session slang spell spl sse
ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype truetype-fonts
type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xml xorg
xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard
kernel_linux linguas_de userland_GNU video_cards_radeon video_cards_vesa
video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #10 From Christian Faulhammer 2006-07-11 06:25:37 0000 -------
1) emerges fine
2) does not pass testsuite
make: *** No rule to make target `rpcclient/display.o', needed by
`bin/rpctorture'.  Stop.
[...]
 * rpctorture didn't build
running build
running build_py
running build_ext
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.

3) passes collision test

4) QA Notice: USE Flag 'kernel_linux' not in IUSE for net-fs/samba-3.0.22-r3

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O0"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash
/etc/terminfo"
CXXFLAGS="-O0"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer
parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa apache2 arts artworkextra asf
audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash
branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl
custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread
dvi eds emacs emboss encode esd evo exif expat fam fat fbcon fdftk ffmpeg
firefox foomaticdb fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2
gtkhtml hal howl icq idn imagemagick imap imlib ipv6 isdnlog java javascript
jikes jpeg jpeg2k kde ldap leim libg++ libwww lm_sensors mad maildir matroska
mbox mikmod mime mmx mmxext mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses
nforce2 nls nocardbus nowebdav nptl nptlonly nsplugin nvidia ogg opengl pam
pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt
qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell
spl sse ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype
truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows
xine xml xorg xosd xv xvid zlib elibc_glibc input_devices_mouse
input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon
video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #11 From Tobias Scherbaum 2006-07-11 11:03:51 0000 -------
ppc stable

------- Comment #12 From Joshua Jackson 2006-07-11 12:09:25 0000 -------
x86 is done, the tests would be nice to pass though. Security comes first ~_~

------- Comment #13 From Jason Wever (RETIRED) 2006-07-11 16:47:15 0000 -------
Stable on SPARC

------- Comment #14 From Patrick McLean 2006-07-13 18:22:44 0000 -------
stable on amd64

------- Comment #15 From René Nussbaumer 2006-07-15 02:51:27 0000 -------
Stable on hppa

------- Comment #16 From Jose Luis Rivero (yoswink) 2006-07-16 17:29:35 0000 -------
Stable on alpha.

Marked stable on ia64 by agriffis.

------- Comment #17 From Sune Kloppenborg Jeppesen 2006-07-22 23:47:24 0000 -------
This one is ready for GLSA decision. I tend to vote yes.

------- Comment #18 From Wolf Giesen (RETIRED) 2006-07-23 01:12:17 0000 -------
Hm, weak yes [I just think how winbindd eats memory in ADS mode in every single
version since 3.0.4 or so] :/

------- Comment #19 From Stefan Cornelius (RETIRED) 2006-07-23 04:30:30 0000 -------
seems like a lot of distries issued an update for this one. and its very easy
to exploit ... mhh, another weak yes

------- Comment #20 From Thierry Carrez (RETIRED) 2006-07-23 12:09:24 0000 -------
Weak yes, lets have one

------- Comment #21 From Sune Kloppenborg Jeppesen 2006-07-30 12:33:35 0000 -------
At last GLSA 200607-10.

arm and s390 don't forget to mark stable to benifit from the GLSA.

------- Comment #22 From Peter Volkov 2008-03-06 09:34:50 0000 -------
Does not affect current (2008.0) release. Removing release.

First Last Prev Next    No search results available      Search page      Enter new bug