[31681] in bugtraq
uninitialized buffer in midnight commander
daemon@ATHENA.MIT.EDU (=?koi8-r?Q?=22?=Ilya Teterin=?koi8)
Fri Sep 19 16:07:20 2003
From: =?koi8-r?Q?=22?=Ilya Teterin=?koi8-r?Q?=22=20?= <alienhard@mail.ru>
To: bugtraq@securityfocus.com
Mime-Version: 1.0
Date: Fri, 19 Sep 2003 17:47:23 +0400
Reply-To: =?koi8-r?Q?=22?=Ilya Teterin=?koi8-r?Q?=22=20?= <alienhard@mail.ru>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 8bit
Message-Id: <E1A0LbX-000NPk-00.alienhard-mail-ru@f9.mail.ru>
Midnight Commander is using uninitialized buffer for handling symlinks in VFS (tar, cpio). See vfs/direntry.c, handling of buf[] at vfs_s_resolve_symlink(). I wonder but it works almost properly ;-)
On linux-i386 I can reach stack buffer overflow using specially crafted archive. Open http://buggzy.narod.ru/exp.tgz in mc's VFS to test (mc will crash).
Affected systems/vendors/archs: at least linux-i386, mc-4.5.52 to mc-4.6.0, too lazy to test others ;-)
P.S. Greetings to iDEFENSE VCP. I'm tired and hungry ;)