Fix denial of service - memory corruption.
authorJeremy Allison <jra@samba.org>
Sun, 27 Feb 2011 17:16:20 +0000 (18:16 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 27 Feb 2011 17:16:20 +0000 (18:16 +0100)
commitf4fdbf96e21f9d1875bae2e509831d5b188c4fff
tree2e05fc07570d309babade10d073d8906056512fc
parent37b5a8f7125a25a38b1c089bac743482dfff18e2
Fix denial of service - memory corruption.

CVE-2011-0719

Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open).

All current released versions of Samba are vulnerable to
a denial of service caused by memory corruption. Range
checks on file descriptors being used in the FD_SET macro
were not present allowing stack corruption. This can cause
the Samba code to crash or to loop attempting to select
on a bad file descriptor set.

A connection to a file share, or a local account is needed
to exploit this problem, either authenticated or unauthenticated
(guest connection).

Currently we do not believe this flaw is exploitable
beyond a crash or causing the code to loop, but on the
advice of our security reviewers we are releasing fixes
in case an exploit is discovered at a later date.
tevent/tevent_select.c
tevent/tevent_standard.c