LWN.net Logo

Security

Civilizing SELinux

On its face, SELinux offers a number of attractive capabilities. It enables a Linux system to be partitioned into lots of little realms ("domains" or "types") with fine-grained control over the capabilities of each realm. For example, the named DNS server can be empowered to bind to the DNS ports (but no others), write to its log and cache files (but no others), and read from its configuration files (but from nowhere else). It can read random numbers, but cannot access any other device files. And so on. The end result is that, even if named falls to a remote code exploit, there is very little that exploit can actually do. A vulnerability which, on a current Linux system, could lead to a full system compromise is limited to a denial of service problem, or, at worst, the provision of bogus DNS information.
Advertisement

This promise is worth something. Currently, any sort of compromise of any daemon on the system has a good chance of being escalated to full control of the system itself. SELinux cannot prevent security holes in server processes, but it does have the potential to strictly limit the damage which can be done by exploiting those holes. SELinux could be the mechanism which turns Linux into the most secure widely-used operating system on the planet.

The only problem is that getting there could be a challenge, and, along the way, we risk turning Linux into a system we no longer wish to use.

Like all good kernel code, SELinux does not, itself, contain a security policy. That policy, instead, is defined by the system administrator and loaded from user space. Defining that policy, however, is not the easiest thing to do. The book SELinux: NSA's Open Source Security Enhanced Linux, just reviewed by LWN, notes that a typical set of policy files contains some 250,000 lines of code. More to the point:

The SELinux source policy is a sophisticated software system. It includes dozens of object classes, scores of defined permissions, more than 1,000 type transitions, thousands of object instances, and tens of thousands of access-vector rules.

As an aside, all of this code is written in a language which, as of this writing, probably has no more than a few dozen expert authors. So a couple of questions come immediately to mind: how is it possible for anybody to truly understand a system's security policy, and how can that policy be shown to be correct? Complexity and obscurity are enemies of security, and SELinux has large amounts of both.

There are complications. Installing a new program on a full-blown SELinux system required updating the security policy. There has been talk of a day when applications are routinely shipped with SELinux policy files, just like they currently contain makefiles. But that talk assumes that large numbers of application developers will learn the SELinux policy language well enough to write a secure policy for their code. It assumes that system administrators will understand those files well enough to decide whether they are safe to install. In an SELinux world, malicious policy files may become a required part of any self-respecting trojan horse; vigilance will be required.

Perhaps the biggest problem, though, is the assumption that a single policy file will fit into the security policies running on systems worldwide. If everybody ends up with a single, uniform security policy derived from the SELinux sample policy, that assumption might hold. But how can a single security policy make sense for all situations? The sheer difficulty of creating a radically different policy will likely keep experimentation to a minimum, but there will inevitably be pressure for different policies for different situations. In the future, we may see new offshoot distributions which differ mainly in their SELinux policies. Divergent security policies will be good for user choice, and the diversity may be good for the security of the net in general. But they will make it hard to write a portable application policy file.

SELinux depends on "labels" applied to almost all files on the system. Those labels define the type(s) of the files, and, thus, who can access them, and in which way. These labels are also a crucial part of the domain system which allows the isolation of specific daemons and utilities. Maintaining the integrity of these labels proves to be a challenge, however. Consider this warning from the SELinux book:

If you use vipw, vi, or some other means to modify /etc/passwd, /etc/group, or /etc/shadow, you'll likely remove the security context labeling [from] the file, which will make the file inaccessible.

Relabeling files is something every SELinux administrator needs to know how to do. The Fedora boot process checks for labeling problems, and, when they are found, it automatically relabels things. Relabeling is a fact of life in the SELinux world.

It turns out that the proper labels are stored in the SELinux policy; what's on the files themselves can be thought of as a sort of cached version. In other words, SELinux has imposed a new file permissions scheme which is maintained outside of the kernel. If the files are manipulated by non-aware applications, or by way of a non-SELinux kernel, those permissions will become unsynchronized. Applications installed by the administrator will have labeling problems of their own.

The end result is that SELinux could lead to systems which are too complex to administer, which have a single security policy created by the distributor, and which are highly resistant to the installation of software not provided by the distributor - or to changes in general. That is not a world which most of us would like to live in; we should think carefully before we run too quickly in that direction.

Of course, that is a worst case scenario, and the Linux community is unlikely to let things get that bad. Some steps have already been taken in the right direction. The Fedora Project's decision to fall back to a "targeted" mode, where SELinux only applies to certain system daemons, is a good start. The targeted mode reduces the complexity of the security policy and makes experimentation easier. Fedora has also introduced "policy booleans" to the mix. These booleans are runtime variables which provide (relatively) high-level control over the system's security policy. Booleans in Fedora Core 3 control whether Apache can run CGI programs or read home directories, whether yellow pages can be used, and more.

The booleans point in an important direction. Perhaps part of the real problem with SELinux is that policies must be written in the equivalent of assembly language. Most programmers do not want to worry about individual register assignments, and most system administrators would rather not deal with domain transitions and access vectors. If, in some future day, a system's security policy can be specified with, at most, a few hundred lines of high-level declarations, that policy may just be manageable. If that can be done, SELinux might just be the answer to a lot of our security worries.

(See also: this just-released, beta Fedora document which describes what is involved in using SELinux to control Apache).

Comments (20 posted)

Security news

EFF on mailing lists and spam

The EFF has put out a a lengthy document describing its concerns with contemporary spam filtering techniques. "Blind keyword or phrase blocking is the determination that messages will not be delivered because they contain specific words or phrases. This method is imprecise and unnecessary, especially now that more sophisticated tools are available. Moreover, it can be used to block messages for political reasons. In short, there's no defensible reason to label email as spam based solely on keywords or phrases."

Comments (1 posted)

freedesktop.org site compromised

Visitors to freedesktop.org will see a message noting that the site was compromised on November 15. The project does not believe that any code on the site was tampered with, but they are rebuilding everything from the beginning anyway. More info will come as we get it. (Thanks to Thomas Kirby).

Comments (20 posted)

New vulnerabilities

BNC: Buffer overflow vulnerability

Package(s):bnc CVE #(s):
Created:November 16, 2004 Updated:December 1, 2004
Description: Leon Juranic discovered that BNC fails to do proper bounds checking when checking server response. An attacker could exploit this to cause a Denial of Service and potentially execute arbitrary code with the permissions of the user running BNC.
Alerts:
Gentoo 200411-24 2004-11-16
Debian DSA-595-1 2004-11-24

Comments (none posted)

bogofilter: denial of service

Package(s):bogofilter CVE #(s):CAN-2004-1007
Created:November 17, 2004 Updated:November 17, 2004
Description: Bogofilter has a vulnerability in its quoted-printable processing code which may be exploited to crash the process.
Alerts:
Ubuntu USN-26-1 2004-11-17

Comments (none posted)

ez-ipupdate: format string vulnerability

Package(s):ez-ipupdate CVE #(s):CAN-2004-0980
Created:November 11, 2004 Updated:November 17, 2004
Description: ez-ipupdate, a dynamic DNS file updating utility, has a format string vulnerability that can lead to the execution of arbitrary code.
Alerts:
Gentoo 200411-20 2004-11-11
Mandrake MDKSA-2004:129 2004-11-10
Debian DSA-592-1 2004-11-12

Comments (none posted)

openssl: der_chop script temp file vulnerability

Package(s):openssl CVE #(s):CAN-2004-0975
Created:November 11, 2004 Updated:July 19, 2005
Description: The der_chop script in openssl has a temp file vulnerability that may allow an attacker to overwrite arbitrary files with the permissions that the script is running under.
Alerts:
Ubuntu USN-24-1 2004-11-11
Debian DSA-603-1 2004-12-01
Mandrake MDKSA-2004:147 2004-12-06
Fedora-Legacy FLSA:152841 2005-07-15

Comments (1 posted)

SquirrelMail: cross-site scripting

Package(s):squirrelmail CVE #(s):CAN-2004-1036
Created:November 17, 2004 Updated:December 23, 2004
Description: Squirrelmail (through version 1.4.3a-r2) suffers from yet another cross-site scripting vulnerability.
Alerts:
Gentoo 200411-25 2004-11-17
Fedora FEDORA-2004-471 2004-11-28
Fedora FEDORA-2004-472 2004-11-28
Conectiva CLA-2004:905 2004-12-02
Red Hat RHSA-2004:654-01 2004-12-23

Comments (none posted)

sudo: environment variable sanitizing

Package(s):sudo CVE #(s):CAN-2004-1051
Created:November 17, 2004 Updated:May 15, 2005
Description: Versions of sudo prior to 1.6.8p2 fail to properly sanitize the environment prior to running shell scripts; this failure can be exploited by a sudo user to subvert scripts and obtain shell access. See the 1.6.8p2 announcement for more information.
Alerts:
Mandrake MDKSA-2004:133 2004-11-15
Ubuntu USN-28-1 2004-11-17
Debian DSA-596-1 2004-11-24
Debian DSA-596-2 2004-11-24
OpenPKG OpenPKG-SA-2005.002 2005-01-17
Fedora-Legacy FLSA:152856 2005-05-12

Comments (none posted)

unarj: buffer overflow vulnerability

Package(s):unarj CVE #(s):CAN-2004-0947
Created:November 11, 2004 Updated:February 2, 2005
Description: The unarj uncompression utility has a buffer overflow vulnerability from handling long file names in an archive. An attacker can cause unarj to crash or execute arbitrary code.
Alerts:
Fedora FEDORA-2004-414 2004-11-11
Gentoo 200411-29 2004-11-19
Red Hat RHSA-2005:007-01 2005-01-12
Debian DSA-652-1 2005-01-21
Fedora-Legacy FLSA:2272 2005-02-01

Comments (none posted)

Updated vulnerabilities

Gallery: cross-site scripting vulnerability

Package(s):Gallery CVE #(s):CAN-2004-1106
Created:November 8, 2004 Updated:January 17, 2005
Description: Jim Paris has discovered a cross-site scripting vulnerability in Gallery. By sending a carefully crafted URL, an attacker can inject and execute script code in the victim's browser window, and potentially compromise the users gallery.
Alerts:
Gentoo 200411-10:01 2004-11-06
Debian DSA-642-1 2005-01-17

Comments (none posted)

ImageMagick: EXIF buffer overflow

Package(s):ImageMagick CVE #(s):CAN-2004-0981
Created:November 8, 2004 Updated:December 8, 2004
Description: ImageMagick fails to do proper bounds checking when handling image files with EXIF information. An attacker could use an image file with specially-crafted EXIF information to cause arbitrary code execution with the permissions of the user running ImageMagick. See this advisory for more information.
Alerts:
Gentoo 200411-11:01 2004-11-06
Debian DSA-593-1 2004-11-16
Mandrake MDKSA-2004:143 2004-12-06
Red Hat RHSA-2004:636-01 2004-12-08

Comments (none posted)

Kaffeine, gxine: remotely exploitable buffer overflow

Package(s):Kaffeine gxine CVE #(s):
Created:November 8, 2004 Updated:November 11, 2004
Description: KF of Secure Network Operations has discovered an overflow that occurs during the Content-Type header processing of Kaffeine. The vulnerable code in Kaffeine is reused from gxine, making gxine vulnerable as well. An attacker could create a specially-crafted Content-type header from a malicious HTTP server, and crash a user's instance of Kaffeine or gxine, potentially allowing the execution of arbitrary code. See this SecurityTracker advisory for details.
Alerts:
Gentoo 200411-14:01 2004-11-07

Comments (none posted)

OpenSSL: denial of service vulnerabilities

Package(s):OpenSSL CVE #(s):CAN-2004-0081 CAN-2003-0851
Created:March 17, 2004 Updated:November 2, 2005
Description: Versions 0.9.7a-c of the OpenSSL library suffer from two denial of service vulnerabilities; see the version 0.9.7d release announcement for details.
Alerts:
EnGarde ESA-20040317-003 2004-03-17
Red Hat RHSA-2004:119-01 2004-03-17
Red Hat RHSA-2004:120-01 2004-03-17
SuSE SuSE-SA:2004:007 2004-03-17
Mandrake MDKSA-2004:023 2004-03-17
Netwosix NW-2004-0005 2004-03-17
Debian DSA-465-1 2004-03-17
Gentoo 200403-03 2004-03-17
OpenPKG OpenPKG-SA-2004.007 2004-03-18
Red Hat RHSA-2004:121-01 2004-03-17
Slackware SSA:2004-077-01 2004-03-17
Trustix TSLSA-2004-0012 2004-03-17
Whitebox WBSA-2004:120-01 2004-03-22
Fedora FEDORA-2004-095 2004-03-19
Red Hat RHSA-2004:084-01 2004-03-23
Whitebox WBSA-2004:084-01 2004-03-23
Conectiva CLA-2004:834 2004-03-31
Fedora-Legacy FLSA:1395 2004-05-08
Fedora FEDORA-2005-1042 2005-10-31
Red Hat RHSA-2005:829-00 2005-11-02
Red Hat RHSA-2005:830-00 2005-11-02

Comments (1 posted)

PostgreSQL: Insecure temporary file use in make_oidjoins_check

Package(s):PostgreSQL CVE #(s):CAN-2004-0977
Created:October 18, 2004 Updated:December 20, 2004
Description: The make_oidjoins_check script insecurely creates temporary files in world-writeable directories with predictable names. A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When make_oidjoins_check is called, this would result in file overwrite with the rights of the user running the utility, which could be the root user.
Alerts:
Gentoo 200410-16 2004-10-18
Ubuntu USN-6-1 2004-10-27
Debian DSA-577-1 2004-10-29
OpenPKG OpenPKG-SA-2004.046 2004-10-29
Mandrake MDKSA-2004:149 2004-12-13
Red Hat RHSA-2004:489-01 2004-12-20

Comments (none posted)

Speedtouch USB driver: Privilege escalation vulnerability

Package(s):Speedtouch USB driver CVE #(s):
Created:November 2, 2004 Updated:November 11, 2004
Description: The Speedtouch USB driver contains multiple format string vulnerabilities in modem_run, pppoa2 and pppoa3. This flaw is due to an improperly made syslog() system call. A malicious local user could exploit this vulnerability by causing a buffer overflow, and potentially allowing the execution of arbitrary code with escalated privileges.
Alerts:
Gentoo 200411-04 2004-11-02
Mandrake MDKSA-2004:130 2004-11-10

Comments (none posted)

apache: arbitrary code execution

Package(s):apache CVE #(s):CAN-2004-0940
Created:October 29, 2004 Updated:December 14, 2004
Description: According to an Apache announcement, a vulnerability exists in the Apache HTTP server, version 1.3. The problem is a potential buffer overflow in the "get_tag" function of Apache's SSI module "mod_include". It allows local users who can create SSI documents to execute arbitrary code as the Apache run-time user via SSI documents that trigger a content length calculation error.
Alerts:
OpenPKG OpenPKG-SA-2004.047 2004-10-29
Slackware SSA:2004-305-01 2004-11-01
Gentoo 200411-03 2004-11-02
Trustix TSLSA-2004-0056 2004-11-05
Debian DSA-594-1 2004-11-17
Mandrake MDKSA-2004:134 2004-11-15
Red Hat RHSA-2004:600-01 2004-12-13

Comments (none posted)

apache2: denial of service

Package(s):apache CVE #(s):CAN-2004-0942
Created:November 10, 2004 Updated:November 26, 2004
Description: Versions of Apache 2.0 prior to 2.0.53 contain a bug in the header parsing code which can allow a remote denial of service attack given sufficient bandwidth.
Alerts:
Gentoo 200411-18 2004-11-10
Ubuntu USN-23-1 2004-11-11
Fedora FEDORA-2004-420 2004-11-12
Fedora FEDORA-2004-421 2004-11-12
Red Hat RHSA-2004:562-01 2004-11-12
Mandrake MDKSA-2004:135 2004-11-15
Trustix TSLSA-2004-0061 2004-11-19

Comments (none posted)

aspell: bounds checking problem

Package(s):aspell CVE #(s):CAN-2004-0548
Created:June 17, 2004 Updated:December 20, 2004
Description: Aspell's word-list-compress utility fails to properly check bounds when dealing with words that are more than 256 bytes long. This can lead to arbitrary code execution by an attacker.
Alerts:
Gentoo 200406-14 2004-06-17
OpenPKG OpenPKG-SA-2004.042 2004-09-15
Mandrake MDKSA-2004:153 2004-12-20

Comments (none posted)

cdrecord: failure to drop privilege

Package(s):cdrecord CVE #(s):CAN-2004-0806
Created:September 8, 2004 Updated:February 21, 2005
Description: The cdrecord utility, which is installed setuid on some distributions, fails to drop privilege before running a user-specified program.
Alerts:
Mandrake MDKSA-2004:091 2004-09-07
Fedora FEDORA-2004-297 2004-09-09
Fedora FEDORA-2004-298 2004-09-09
Gentoo 200409-18 2004-09-14
Fedora-Legacy FLSA:2058 2005-02-20

Comments (none posted)

ncompress: Buffer overflow

Package(s):compress uncompress ncompress CVE #(s):CAN-2001-1413
Created:October 11, 2004 Updated:December 14, 2004
Description: compress and uncompress do not properly check bounds on command line options, including the filename. Large parameters would trigger a buffer overflow. By supplying a carefully crafted filename or other option, an attacker could execute arbitrary code on the system. A local attacker could only execute code with his own rights, but since compress and uncompress are called by various daemon programs, this might also allow a remote attacker to execute code with the rights of the daemon making use of ncompress.
Alerts:
Gentoo 200410-08 2004-10-09
Red Hat RHSA-2004:536-01 2004-12-13

Comments (none posted)

cyrus-sasl: remote buffer overflow

Package(s):cyrus-sasl CVE #(s):CAN-2004-0884
Created:October 7, 2004 Updated:March 16, 2005
Description: cyrus-sasl has a vulnerability involving a buffer overflow in the digestmda5.c file. A remote attacker may be able to compromise the system. Also, a local user may be able to exploit a vulnerability by using the SASL_PATH environment variable.
Alerts:
Gentoo 200410-05 2004-10-07
Red Hat RHSA-2004:546-02 2004-10-07
Mandrake MDKSA-2004:106 2004-10-07
Trustix TSLSA-2004-0053 2004-10-08
Debian DSA-563-1 2004-10-12
Debian DSA-563-2 2004-10-12
Debian DSA-563-3 2004-10-14
Debian DSA-568-1 2004-10-16
Conectiva CLA-2004:889 2004-11-11
OpenPKG OpenPKG-SA-2005.004 2005-01-28
Fedora-Legacy FLSA:2137 2005-02-17
SuSE SUSE-SA:2005:013 2005-03-03
Mandrake MDKSA-2005:054 2005-03-15

Comments (none posted)

dhcp: format string vulnerability

Package(s):dhcp CVE #(s):CAN-2004-1006
Created:November 4, 2004 Updated:July 13, 2005
Description: Dhcp has a format string vulnerability in the log functions of dhcp 2.x that may be exploited via a malicious DNS server.
Alerts:
Debian DSA-584-1 2004-11-04
Red Hat RHSA-2005:212-01 2005-04-12
Fedora-Legacy FLSA:152835 2005-07-10

Comments (none posted)

Filename disclosure vulnerability in fam

Package(s):fam CVE #(s):CAN-2002-0875
Created:August 19, 2002 Updated:January 5, 2005
Description: "fam" (file alteration monitor) watches files and directories for changes and lets interested applications know when something happens. This package has a flaw in its group handling that blocks some legitimate operations while, at the same time, exposing the names of files that should otherwise be invisible.
Alerts:
Debian DSA-154-1 2002-08-15
Red Hat RHSA-2005:005-01 2005-01-05

Comments (none posted)

flim: insecure file creation

Package(s):flim CVE #(s):CAN-2004-0422
Created:May 5, 2004 Updated:December 16, 2004
Description: The emacs "flim" mode creates temporary files in an insecure fashion, possibly allowing a local attacker to overwrite files.
Alerts:
Debian DSA-500-1 2004-05-01
Red Hat RHSA-2004:344-01 2004-08-18
Fedora FEDORA-2004-546 2004-12-15

Comments (none posted)

Foomatic: Arbitrary command execution in foomatic-rip

Package(s):foomatic CVE #(s):CAN-2004-0801
Created:September 20, 2004 Updated:May 31, 2006
Description: There is a vulnerability in the foomatic-filters package. This vulnerability is due to insufficient checking of command-line parameters and environment variables in the foomatic-rip filter. This vulnerability may allow both local and remote attackers to execute arbitrary commands on the print server with the permissions of the spooler.
Alerts:
Gentoo 200409-24 2004-09-20
Fedora FEDORA-2004-303 2004-09-21
Conectiva CLA-2004:880 2004-10-27
Fedora-Legacy FLSA:2076 2004-11-05
SuSE SUSE-SA:2006:026 2006-05-30

Comments (none posted)

freeamp: arbitrary code execution

Package(s):freeamp CVE #(s):CAN-2004-0964
Created:November 8, 2004 Updated:November 10, 2004
Description: Luigi Auriemma discovered a buffer overflow condition in the playlist module of freeamp which could lead to arbitrary code execution. Recent versions of freeamp were renamed into zinf.
Alerts:
Debian DSA-587-1 2004-11-08

Comments (none posted)

FreeRADIUS: denial of service

Package(s):freeradius CVE #(s):CAN-2004-0938 CAN-2004-0960 CAN-2004-0961
Created:September 22, 2004 Updated:February 2, 2005
Description: FreeRADIUS (through version 1.0.1) suffers from several denial of service vulnerabilities in its packet reception code.
Alerts:
Gentoo 200409-29 2004-09-22
Red Hat RHSA-2004:609-01 2004-11-12
Fedora-Legacy FLSA:2187 2005-02-01

Comments (none posted)

gaim: buffer overflow in MSN protocol

Package(s):gaim CVE #(s):CAN-2004-0891
Created:October 25, 2004 Updated:February 11, 2005
Description: A buffer overflow in the MSN protocol handler for gaim 0.79 to 1.0.1 allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via an "unexpected sequence of MSNSLP messages" that results in an unbounded copy operation that writes to the wrong buffer.
Alerts:
Slackware SSA:2004-296-01 2004-10-25
Gentoo 200410-23 2004-10-24
Ubuntu USN-8-1 2004-10-27
Mandrake MDKSA-2004:117 2004-11-01
Red Hat RHSA-2004:604-01 2004-10-20
Fedora-Legacy FLSA:2188 2005-02-10

Comments (none posted)

gaim: command execution via smiley themes

Package(s):gaim CVE #(s):CAN-2004-0784 CAN-2004-0785
Created:October 21, 2004 Updated:November 12, 2004
Description: gaim may allow arbitrary commands to be executed via shell meta characters in the the tar file name that is dragged to the smiley selector.
Alerts:
Mandrake MDKSA-2004:110 2004-10-21
Conectiva CLA-2004:884 2004-11-04
Red Hat RHSA-2004:400-01 2004-09-07

Comments (none posted)

gtk2, gdk-pixbuf: buffer overflows

Package(s):gdk-pixbuf gtk2 CVE #(s):CAN-2004-0753 CAN-2004-0782 CAN-2004-0783 CAN-2004-0788
Created:September 15, 2004 Updated:February 25, 2005
Description: The gdk-pixbuf and gtk2 libraries contain vulnerabilities in their handling of BMP and XPM files which can lead to denial of service and, potentially, code execution attacks.
Alerts:
Fedora FEDORA-2004-286 2004-09-15
Fedora FEDORA-2004-287 2004-09-15
Fedora FEDORA-2004-288 2004-09-15
Fedora FEDORA-2004-289 2004-09-15
Mandrake MDKSA-2004:095 2004-09-15
Red Hat RHSA-2004:447-01 2004-09-15
Red Hat RHSA-2004:466-01 2004-09-15
Debian DSA-546-1 2004-09-16
Red Hat RHSA-2004:447-02 2004-09-15
Debian DSA-549-1 2004-09-17
SuSE SUSE-SA:2004:033 2004-09-17
Mandrake MDKSA-2004:095-1 2004-09-17
Gentoo 200409-28 2004-09-21
Slackware SSA:2004-266-02 2004-09-22
Conectiva CLA-2004:875 2004-10-18
Fedora-Legacy FLSA:2005 2005-02-23

Comments (none posted)

gettext: Insecure temporary file handling

Package(s):gettext CVE #(s):CAN-2004-0966
Created:October 11, 2004 Updated:March 1, 2006
Description: gettext insecurely creates temporary files in world-writeable directories with predictable names. A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When gettext is called, this would result in file access with the rights of the user running the utility, which could be the root user.
Alerts:
Gentoo 200410-10 2004-10-10
Ubuntu USN-5-1 2004-10-27
OpenPKG OpenPKG-SA-2004.055 2004-12-23
Gentoo 200410-10:02 2004-10-10
Fedora-Legacy FLSA:136323 2006-01-09
Mandriva MDKSA-2006:051 2006-02-28

Comments (1 posted)

ghostscript: symlink vulnerabilities

Package(s):ghostscript CVE #(s):CAN-2004-0967
Created:October 20, 2004 Updated:September 28, 2005
Description: The ghostscript package (prior to version 7.07.1-r7) contains several scripts which are vulnerable to symlink attacks.
Alerts:
Gentoo 200410-18 2004-10-20
Ubuntu USN-3-1 2004-10-27
Red Hat RHSA-2005:081-01 2005-09-28

Comments (none posted)

glibc: Information leak with LD_DEBUG

Package(s):glibc CVE #(s):CAN-2004-1453
Created:August 17, 2004 Updated:May 26, 2005
Description: Silvio Cesare discovered a potential information leak in glibc. It allows LD_DEBUG on SUID binaries where it should not be allowed. This has various security implications, which may be used to gain confidential information. An attacker can gain the list of symbols a SUID application uses and their locations and can then use a trojaned library taking precedence over those symbols to gain information or perform further exploitation.
Alerts:
Gentoo 200408-16 2004-08-16
Red Hat RHSA-2005:256-01 2005-05-18

Comments (1 posted)

glibc: tempfile vulnerability in catchsegv script

Package(s):glibc CVE #(s):CAN-2004-0968
Created:October 21, 2004 Updated:November 14, 2005
Description: The catchsegv script in the glibc package has a symlink vulnerability that may allow a local user to overwrite arbitrary files with the permissions of the user that is running the script.
Alerts:
Gentoo 200410-19 2004-10-21
Ubuntu USN-4-1 2004-10-27
Fedora FEDORA-2004-356 2004-11-11
Red Hat RHSA-2004:586-01 2004-12-20
Mandrake MDKSA-2004:159 2004-12-29
Debian DSA-636-1 2005-01-12
Red Hat RHSA-2005:261-01 2005-04-28
Fedora-Legacy FLSA:152848 2005-11-13

Comments (none posted)

gnats: format string vulnerability

Package(s):gnats CVE #(s):CAN-2004-0623
Created:November 9, 2004 Updated:November 10, 2004
Description: Khan Shirani discovered a format string vulnerability in gnats, the GNU problem report management system. This problem may be exploited to execute arbitrary code.
Alerts:
Debian DSA-590-1 2004-11-09

Comments (none posted)

gnome-vfs: backend script vulnerabilities

Package(s):gnome-vfs CVE #(s):CAN-2004-0494
Created:August 4, 2004 Updated:February 21, 2005
Description: Several scripts packaged with gnome-vfs, using its "extfs" capability, have security flaws. These scripts tend not to be used on many systems, but their presence can still be a threat.
Alerts:
Red Hat RHSA-2004:373-01 2004-08-04
Whitebox WBSA-2004:373-01 2004-08-19
Fedora-Legacy FLSA:1944 2005-02-20

Comments (none posted)

groff: insecure temporary directory

Package(s):groff CVE #(s):CAN-2004-0969
Created:November 1, 2004 Updated:February 9, 2006
Description: Recently, Trustix Secure Linux discovered a vulnerability in the groff package. The utility "groffer" created a temporary directory in an insecure way, which allowed exploitation of a race condition to create or overwrite files with the privileges of the user invoking the program.
Alerts:
Ubuntu USN-13-1 2004-11-01
Gentoo 200411-15 2004-11-08
Mandriva MDKSA-2006:038 2006-02-08

Comments (none posted)

gtkhtml: malformed messages cause crash

Package(s):gtkhtml CVE #(s):CAN-2003-0133 CAN-2003-0541
Created:April 14, 2003 Updated:April 18, 2005
Description: GtkHTML is the HTML rendering widget used by the Evolution mail reader.

GtkHTML supplied with versions of Evolution prior to 1.2.4 contain a bug when handling HTML messages. Alan Cox discovered that certain malformed messages could cause the Evolution mail component to crash.

Alerts:
Red Hat RHSA-2003:126-01 2003-04-14
Mandrake MDKSA-2003:046 2003-04-15
Red Hat RHSA-2003:264-01 2003-09-09
Conectiva CLA-2003:737 2003-09-12
Mandrake MDKSA-2003:093 2003-09-18
Debian DSA-710-1 2005-04-18

Comments (none posted)

gzip: insecure temporary files

Package(s):gzip CVE #(s):CAN-2004-0970
Created:November 8, 2004 Updated:December 7, 2004
Description: Trustix developers discovered insecure temporary file creation in supplemental scripts in the gzip package which may allow local users to overwrite files via a symlink attack.
Alerts:
Debian DSA-588-1 2004-11-08
Mandrake MDKSA-2004:142 2004-12-06

Comments (none posted)

imagemagick: buffer overflow vulnerability

Package(s):imagemagick CVE #(s):CAN-2004-0827
Created:September 16, 2004 Updated:November 30, 2004
Description: The ImageMagick graphics library has several buffer overflow vulnerabilities that allow an attacker to crash the reading process by creating mal-formed video or image files in the AVI, BMP, or DIB format.
Alerts:
Debian DSA-547-1 2004-09-16
Mandrake MDKSA-2004:102 2004-09-22
Red Hat RHSA-2004:494-01 2004-10-20
Red Hat RHSA-2004:480-01 2004-10-20
Ubuntu USN-7-1 2004-10-27
Ubuntu USN-35-1 2004-11-30

Comments (none posted)

imlib2: buffer overflows

Package(s):imlib2 CVE #(s):CAN-2004-0802 CAN-2004-0817
Created:September 8, 2004 Updated:October 26, 2005
Description: The imlib2 library contains buffer overflows in the BMP handling code.
Alerts:
Mandrake MDKSA-2004:089 2004-09-07
Fedora FEDORA-2004-300 2004-09-09
Fedora FEDORA-2004-301 2004-09-09
Gentoo 200409-12 2004-09-08
Red Hat RHSA-2004:465-01 2004-09-15
Debian DSA-548-1 2004-09-16
Debian DSA-552-1 2004-09-22
Conectiva CLA-2004:870 2004-09-28
Debian DSA-548-2 2005-10-26

Comments (none posted)

iproute: local denial of service

Package(s):iproute net-tools CVE #(s):CAN-2003-0856
Created:November 25, 2003 Updated:December 14, 2004
Description: The iproute utility is susceptible to spoofed netlink messages sent by local users, with the result that denial of service attacks are possible.
Alerts:
Red Hat RHSA-2003:316-01 2003-11-24
Gentoo 200404-10 2004-04-09
Debian DSA-492-1 2004-04-18
Fedora FEDORA-2004-115 2004-05-11
Fedora FEDORA-2004-154 2004-06-03
Mandrake MDKSA-2004:148 2004-12-13

Comments (none posted)

iptables: missing initialization

Package(s):iptables CVE #(s):CAN-2004-0986
Created:November 1, 2004 Updated:February 11, 2005
Description: Faheem Mitha noticed that the iptables command, an administration tool for IPv4 packet filtering and NAT, did not always load the required modules on its own as it was supposed to. This could lead to firewall rules not being loaded on system startup. This caused a failure in connection with rules provided by lokkit at least.
Alerts:
Debian DSA-580-1 2004-11-01
Mandrake MDKSA-2004:125 2004-11-04
Ubuntu USN-81-1 2005-02-11
Fedora-Legacy FLSA:2252 2005-02-10

Comments (none posted)

kernel-utils: setuid vulnerability

Package(s):kernel-utils CVE #(s):CAN-2003-0019
Created:February 7, 2003 Updated:January 21, 2005
Description: The kernel-utils package contains several utilities that can be used to control the kernel or machine hardware. In Red Hat Linux 8.0 this package contains user mode linux (UML) utilities.

The uml_net utility in kernel-utils packages with Red Hat Linux 8.0 was incorrectly shipped setuid root. This could allow local users to control certain network interfaces, add and remove arp entries and routes, and put interfaces in and out of promiscuous mode.

All users of the kernel-utils package should update to these packages that contain a version of uml_net that is not setuid root.

Alternatively, as a work-around to this vulnerability issue the following command as root:

chmod -s /usr/bin/uml_net

Alerts:
Red Hat RHSA-2003:056-08 2003-02-07

Comments (none posted)

libgd2: buffer overflows in PNG handling

Package(s):libgd2 CVE #(s):CAN-2004-0990 CAN-2004-0941
Created:October 29, 2004 Updated:June 28, 2006
Description: Several buffer overflows have been discovered in libgd's PNG handling functions.
If an attacker tricked a user into loading a malicious PNG image, they could leverage this into executing arbitrary code in the context of the user opening image. Most importantly, this library is commonly used in PHP. One possible target would be a PHP driven photo website that lets users upload images. Therefore this vulnerability might lead to privilege escalation to a web server's privileges.
Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to execute arbitrary code via malformed image files that trigger the overflows due to improper calls to the gdMalloc function.
Alerts:
Ubuntu USN-11-1 2004-10-28
OpenPKG OpenPKG-SA-2004.049 2004-10-30
Gentoo 200411-08 2004-11-03
Debian DSA-589-1 2004-11-09
Debian DSA-591-1 2004-11-09
Ubuntu USN-21-1 2004-11-09
Fedora FEDORA-2004-411 2004-11-11
Fedora FEDORA-2004-412 2004-11-11
Ubuntu USN-25-1 2004-11-15
Mandrake MDKSA-2004:132 2004-11-15
Debian DSA-601-1 2004-11-29
Debian DSA-602-1 2004-11-29
Ubuntu USN-33-1 2004-11-29
Red Hat RHSA-2004:638-01 2004-12-17
Fedora-Legacy FLSA:152838 2005-07-15
Red Hat RHSA-2006:0194-01 2006-02-01
Mandriva MDKSA-2006:114 2006-06-27

Comments (none posted)

libpng: multiple vulnerabilities

Package(s):libpng CVE #(s):CAN-2002-1363 CAN-2004-0597 CAN-2004-0598 CAN-2004-0599
Created:August 4, 2004 Updated:February 10, 2005
Description: There is yet another set of holes in libpng, versions 1.2.5 and prior, which can be exploited by a malicious image file; see this advisory from Chris Evans or this CERT advisory for details.
Alerts:
OpenPKG OpenPKG-SA-2004.035 2004-08-04
Red Hat RHSA-2004:402-01 2004-08-04
SuSE SUSE-SA:2004:023 2004-08-04
Mandrake MDKSA-2004:079 2004-08-04
Debian DSA-536-1 2004-08-04
Gentoo 200408-03 2004-08-05
Trustix TSLSA-2004-0040 2004-08-05
Conectiva CLA-2004:856 2004-08-06
Slackware SSA:2004-222-01 2004-08-07
Slackware SSA:2004-222-01b 2004-08-10
Slackware SSA:2004-223-02 2004-08-07
Slackware SSA:2004-223-01 2004-08-09
Mandrake MDKSA-2004:082 2004-08-12
Whitebox WBSA-2004:402-01 2004-08-19
Gentoo 200408-22 2004-08-23
Red Hat RHSA-2004:421-01 2004-08-04
Fedora-Legacy FLSA:1943 2005-02-08

Comments (1 posted)

libxml2: multiple buffer overflows

Package(s):libxml2 CVE #(s):CAN-2004-0989
Created:October 28, 2004 Updated:February 28, 2005
Description: libxml2 prior to version 2.6.14 has multiple buffer overflow vulnerabilities, if a local user passes a specially crafted FTP URL, arbitrary code may be executed.
Alerts:
Fedora FEDORA-2004-353 2004-10-28
Ubuntu USN-10-1 2004-10-28
OpenPKG OpenPKG-SA-2004.050 2004-10-31
Trustix TSLSA-2004-0055 2004-10-29
Gentoo 200411-05 2004-11-02
Debian DSA-582-1 2004-11-02
Mandrake MDKSA-2004:127 2004-11-04
Red Hat RHSA-2004:615-01 2004-11-12
Conectiva CLA-2004:890 2004-11-18
Red Hat RHSA-2004:650-01 2004-12-16
Ubuntu USN-89-1 2005-02-28

Comments (none posted)

libxpm4: stack and integer overflows

Package(s):libxpm4 CVE #(s):CAN-2004-0687 CAN-2004-0688
Created:September 16, 2004 Updated:February 14, 2005
Description: There are several stack and integer overflow bugs in the libXpm code of XFree86 that may be used for a denial of service.
Alerts:
Mandrake MDKSA-2004:098 2004-09-15
Mandrake MDKSA-2004:099 2004-09-15
SuSE SUSE-SA:2004:034 2004-09-17
Gentoo 200409-34 2004-09-27
Red Hat RHSA-2004:478-01 2004-10-04
Red Hat RHSA-2004:479-01 2004-10-06
Debian DSA-560-1 2004-10-07
Gentoo 200410-09 2004-10-09
Debian DSA-561-1 2004-10-11
Mandrake MDKSA-2004:124 2004-11-04
Ubuntu USN-27-1 2004-11-17
Red Hat RHSA-2004:537-01 2004-12-02
Red Hat RHSA-2005:004-01 2005-01-12
Conectiva CLA-2005:924 2005-02-14

Comments (none posted)

logcheck: symlink vulnerability

Package(s):logcheck CVE #(s):CAN-2004-0404
Created:April 21, 2004 Updated:December 22, 2004
Description: The logcheck utility handles temporary files in an unsafe way, possibly allowing local attackers to overwrite files.
Alerts:
Debian DSA-488-1 2004-04-16
Mandrake MDKSA-2004:155 2004-12-22

Comments (none posted)

lvm10: creates insecure temporary directory

Package(s):lvm10 CVE #(s):CAN-2004-0972
Created:November 1, 2004 Updated:July 25, 2005
Description: Trustix Secure Linux discovered a vulnerability in a supplemental script of the lvm10 package. The program "lvmcreate_initrd" created a temporary directory in an insecure way, which could allow a symlink attack to create or overwrite arbitrary files with the privileges of the user invoking the program.
Alerts:
Ubuntu USN-15-1 2004-11-01
Debian DSA-583-1 2004-11-03
Gentoo 200411-22 2004-11-11
Mandrake MDKSA-2004:144 2004-12-06
Fedora-Legacy FLSA:152842 2005-07-24

Comments (none posted)

Midnight Commander: extfs vfs vulnerability

Package(s):mc CVE #(s):CAN-2004-0494
Created:September 2, 2004 Updated:January 5, 2005
Description: Midnight Commander has a vfs vulnerability with shell quoting in extfs perl scripts.
Alerts:
Fedora FEDORA-2004-272 2004-09-01
Fedora FEDORA-2004-273 2004-09-01
Red Hat RHSA-2004:464-01 2004-09-15
Red Hat RHSA-2004:464-02 2005-01-05

Comments (none posted)

mikmod: buffer overflow

Package(s):mikmod CVE #(s):CAN-2003-0427
Created:June 16, 2003 Updated:June 16, 2005
Description: Ingo Saitz discovered a bug in mikmod whereby a long filename inside an archive file can overflow a buffer when the archive is being read by mikmod.
Alerts:
Debian DSA-320-1 2003-06-13
Gentoo 200307-01 2003-07-02
Fedora FEDORA-2005-404 2005-06-09
Red Hat RHSA-2005:506-01 2005-06-13
Fedora FEDORA-2005-405 2005-06-16

Comments (none posted)

mozilla products: arbitrary code execution and other vulnerabilities

Package(s):mozilla firefox thunderbird CVE #(s):CAN-2004-0902 CAN-2004-0903 CAN-2004-0904 CAN-2004-0905 CAN-2004-0908
Created:September 20, 2004 Updated:January 13, 2005
Description: Several vulnerabilities exist in the Mozilla web browser and derived products, the most serious of which could allow a remote attacker to execute arbitrary code on an affected system. See the CERT advisory for details.
Alerts:
Gentoo 200409-26 2004-09-20
Slackware SSA:2004-266-03 2004-09-22
Red Hat RHSA-2004:486-01 2004-09-30
SuSE SUSE-SA:2004:036 2004-10-06
Mandrake MDKSA-2004:107 2004-10-19
Conectiva CLA-2004:877 2004-10-22
Fedora-Legacy FLSA:2089 2004-10-27
Gentoo 200501-03 2005-01-05

Comments (none posted)

mpg123: buffer overflow bug

Package(s):mpg123 CVE #(s):CAN-2004-0805
Created:September 16, 2004 Updated:January 11, 2005
Description: The mpg123 audio playing utility has a buffer overflow bug that may allow arbitrary execution of code.
Alerts:
Gentoo 200409-20 2004-09-16
Mandrake MDKSA-2004:100 2004-09-22
Debian DSA-564-1 2004-10-13
Gentoo 200501-14 2005-01-10

Comments (none posted)

mpg321: format string vulnerability

Package(s):mpg321 CVE #(s):CAN-2003-0969
Created:January 6, 2004 Updated:March 28, 2005
Description: A vulnerability was discovered in mpg321, a command-line mp3 player, whereby user-supplied strings were passed to printf(3) unsafely. This vulnerability could be exploited by a remote attacker to overwrite memory, and possibly execute arbitrary code. In order for this vulnerability to be exploited, mpg321 would need to play a malicious mp3 file (including via HTTP streaming).
Alerts:
Debian DSA-411-1 2004-01-05
Gentoo 200503-34 2005-03-28

Comments (none posted)

mtink: insecure tempfile handling

Package(s):mtink CVE #(s):
Created:November 9, 2004 Updated:November 10, 2004
Description: Tavis Ormandy from Gentoo Linux discovered that mtink uses insecure permissions on temporary files. A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When mtink is executed, this would result in the file being overwritten with the rights of the user running the utility, which could be the root user.
Alerts:
Gentoo 200411-17 2004-11-09

Comments (none posted)

mysql: several vulnerabilities

Package(s):mysql CVE #(s):CAN-2004-0835 CAN-2004-0836 CAN-2004-0837
Created:October 11, 2004 Updated:April 6, 2005
Description: Several problems have been discovered in MySQL. Oleksandr Byelkin noticed that ALTER TABLE ... RENAME checks CREATE/INSERT rights of the old table instead of the new one. (CAN-2004-0835) Lukasz Wojtow noticed a buffer overrun in the mysql_real_connect function. (CAN-2004-0836) Dean Ellis noticed that multiple threads ALTERing the same (or different) MERGE tables to change the UNION can cause the server to crash or stall. (CAN-2004-0837)
Alerts:
Debian DSA-562-1 2004-10-11
Red Hat RHSA-2004:597-01 2004-10-20
Red Hat RHSA-2004:569-01 2004-10-20
Gentoo 200410-22 2004-10-24
Red Hat RHSA-2004:611-01 2004-10-27
OpenPKG OpenPKG-SA-2004.045 2004-10-30
Mandrake MDKSA-2004:119 2004-11-01
Conectiva CLA-2004:892 2004-11-18
Ubuntu USN-32-1 2004-11-25
Fedora FEDORA-2004-530 2004-12-08
Ubuntu USN-109-1 2005-04-06

Comments (none posted)

netkit-telnet: invalid free pointer

Package(s):netkit-telnet CVE #(s):CAN-2004-0911
Created:October 4, 2004 Updated: