Home > Security > Advisories


Mandriva Advisories

Package name modutils
Date November 16th, 2000
Advisory ID MDKSA-2000:071
Affected versions 7.1, 7.2
Synopsis Updated modutils packages fix insecure method of loading modules

Problem Description

All 2.3.x versions of modutils (since March 12 1999) contain a
vulnerability that can lead to a local root compromise. The modprobe
program uses popen() to execute the "echo" program argumented with
user input. Because popen() relies on /bin/sh to parse the command
string and execute "echo", un-escaped shell meta-characters can be
included in user input to execute commands. Although modprobe is not
installed setuid root, this vulnerability can be exploited to gain root
access provided the target system is using kmod. Kmod is a kernel
facility that automatically executes the program modprobe when a module
is requested via request_module(). One program that can take advantage
of this vulnerability is ping. When a device is specified at the
command line that doesn't exist, request_module is called with the
user-supplied arguments passed to the kernel. The kernel then takes
the arguments and executes modprobe with them. Arbitrary commands
included in the argument for module name (device name to ping) are then
executed when popen() is called as root.

A new version of modutils (2.3.20) has been released that fixes this
particular vulnerability. modutils still supports meta expansion,
including back quoted commands, but only for data read from the
configuration file. This assumes that when modutils is run as root
out of the kernel, normal users cannot specify their own configuration

Updated Packages

Mandrakelinux 7.1

 de9f58e8def6af9174eb53227422bb70  7.1/RPMS/modutils-2.3.20-1.2mdk.i586.rpm
05f7919a3353537fe97f0405120bb0f7  7.1/SRPMS/modutils-2.3.20-1.2mdk.src.rpm

Mandrakelinux 7.2

 83071582ed7ae9dbe93f13a386c9f500  7.2/RPMS/modutils-2.3.20-1.1mdk.i586.rpm
a1fb2ec6a86c131a3ae2b45bca976e31  7.2/SRPMS/modutils-2.3.20-1.1mdk.src.rpm


To upgrade automatically, use MandrivaUpdate.


Please verify the update prior to upgrading to ensure the integrity of the downloaded package. You can do this with the command :

                rpm --checksig package.rpm

You can get the GPG public key of the Mandriva Security Team to verify the GPG signature of each RPM.

If you use MandrivaUpdate, the verification of md5 checksum and GPG signature is performed automatically for you.