Users login

Create an account »


Users login

Home » Security Advisories» Fedora » Mc stack-based buffer overflow

Mc stack-based buffer overflow

There exists a stack-based buffer overflow in fs_s_resolve_symlink of vfs/direntry.c for Midnight Commander (mc) 4.6.0 and earlier, and possibly later versions, allowing remote attackers to execute arbitrary code during symlink conversion.

  • Vendor: Fedora
  • Vendor ID: FLSA:1224
  • Date: May 18, 2004

- -----------------------------------------------------------------------
Fedora Legacy Update Advisory

Synopsis: Updated mc resolves security vulnerability
Advisory ID: FLSA:1224
Issue date: 2004-05-18
Product: Red Hat Linux
Keywords: Security
Cross references:
CVE Names: CAN-2003-1023
- -----------------------------------------------------------------------

- ---------------------------------------------------------------------
1. Topic:

Updated mc packages that fix remote buffer overflow vulnerabilities are now

2. Relevent releases/architectures:

Red Hat Linux 7.2 - i386
Red Hat Linux 7.3 - i386
Red Hat Linux 8.0 - i386

3. Problem description:
Midnight Commander is a visual shell much like a file manager, only with
many more features. It is a text mode application, but it also includes
mouse support if you are running GPM. Midnight Commander's best features
are its ability to FTP, view tar and zip files, and to poke into RPMs for
specific files.

There exists a stack-based buffer overflow in vfs_s_resolve_symlink of
vfs/direntry.c for Midnight Commander (mc) 4.6.0 and earlier, and possibly
later versions, allowing remote attackers to execute arbitrary code during
symlink conversion.

Fedora Legacy would like to thank Seth Vidal for bringing this issue to our

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the desired RPMs.

Please note that this update is also available via yum and apt. Many
people find this an easier way to apply updates. To use yum issue:

yum update

or to use apt:

apt-get update; apt-get upgrade

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system. This assumes that you have yum or
apt-get configured for obtaining Fedora Legacy content. Please visit
http://www for directions on how to configure yum
and apt-get.

5. Bug IDs fixed: - 1224 - bug in mc - gnu midnight commander

6. RPMs required:

Red Hat Linux 7.2:



Red Hat Linux 7.3:



Red Hat Linux 8.0:



7. Verification:

SHA1 sum Package Name
- ---------------------------------------------------------------------------




These packages are GPG signed by Fedora Legacy for security. Our key is
available from

You can verify each package with the following command:

rpm --checksig -v

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the sha1sum with the following command:


8. References:

9. Contact:

The Fedora Legacy security contact is . More
project details at

- ---------------------------------------------------------------------

Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »