<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200408-24">
  <title>Linux Kernel: Multiple information leaks</title>
  <synopsis>
    Multiple information leaks have been found in the Linux kernel, allowing an
    attacker to obtain sensitive data which may be used for further
    exploitation of the system.
  </synopsis>
  <product type="ebuild">Kernel</product>
  <announced>2004-08-25</announced>
  <revised count="03">2011-03-27</revised>
  <bug>59378</bug>
  <bug>59769</bug>
  <bug>59905</bug>
  <access>local</access>
  <affected>
    <package name="sys-kernel/aa-sources" auto="no" arch="*">
      <unaffected range="rge">2.4.23-r2</unaffected>
      <unaffected range="ge">2.6.5-r5</unaffected>
      <vulnerable range="lt">2.6.5-r5</vulnerable>
    </package>
    <package name="sys-kernel/alpha-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.21-r12</unaffected>
      <vulnerable range="lt">2.4.21-r12</vulnerable>
    </package>
    <package name="sys-kernel/ck-sources" auto="no" arch="*">
      <unaffected range="rge">2.4.26-r1</unaffected>
      <unaffected range="ge">2.6.7-r5</unaffected>
      <vulnerable range="lt">2.6.7-r5</vulnerable>
    </package>
    <package name="sys-kernel/development-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.8</unaffected>
      <vulnerable range="lt">2.6.8</vulnerable>
    </package>
    <package name="sys-kernel/gentoo-dev-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.7-r12</unaffected>
      <vulnerable range="lt">2.6.7-r12</vulnerable>
    </package>
    <package name="sys-kernel/gentoo-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.19-r22</unaffected>
      <unaffected range="rge">2.4.20-r25</unaffected>
      <unaffected range="rge">2.4.22-r16</unaffected>
      <unaffected range="rge">2.4.25-r9</unaffected>
      <unaffected range="ge">2.4.26-r9</unaffected>
      <vulnerable range="lt">2.4.26-r9</vulnerable>
    </package>
    <package name="sys-kernel/grsec-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.27.2.0.1-r1</unaffected>
      <vulnerable range="lt">2.4.27.2.0.1-r1</vulnerable>
    </package>
    <package name="sys-kernel/gs-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.25_pre7-r11</unaffected>
      <vulnerable range="lt">2.4.25_pre7-r11</vulnerable>
    </package>
    <package name="sys-kernel/hardened-dev-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.7-r7</unaffected>
      <vulnerable range="lt">2.6.7-r7</vulnerable>
    </package>
    <package name="sys-kernel/hardened-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.27-r1</unaffected>
      <vulnerable range="lt">2.4.27-r1</vulnerable>
    </package>
    <package name="sys-kernel/hppa-dev-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.7_p14-r1</unaffected>
      <vulnerable range="lt">2.6.7_p14-r1</vulnerable>
    </package>
    <package name="sys-kernel/hppa-sources" auto="no" arch="*">
      <unaffected range="ge">2.4.26_p7-r1</unaffected>
      <vulnerable range="lt">2.4.26_p7-r1</vulnerable>
    </package>
    <package name="sys-kernel/ia64-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.24-r10</unaffected>
      <vulnerable range="lt">2.4.24-r10</vulnerable>
    </package>
    <package name="sys-kernel/mips-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.25-r8</unaffected>
      <unaffected range="rge">2.4.26-r8</unaffected>
      <unaffected range="rge">2.6.4-r8</unaffected>
      <unaffected range="rge">2.6.6-r8</unaffected>
      <unaffected range="ge">2.6.7-r5</unaffected>
      <vulnerable range="lt">2.6.6-r8</vulnerable>
    </package>
    <package name="sys-kernel/mm-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.8_rc4-r1</unaffected>
      <vulnerable range="lt">2.6.8_rc4-r1</vulnerable>
    </package>
    <package name="sys-kernel/openmosix-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.24-r4</unaffected>
      <vulnerable range="lt">2.4.24-r4</vulnerable>
    </package>
    <package name="sys-kernel/pac-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.23-r12</unaffected>
      <vulnerable range="lt">2.4.23-r12</vulnerable>
    </package>
    <package name="sys-kernel/pegasos-dev-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.8</unaffected>
      <vulnerable range="lt">2.6.8</vulnerable>
    </package>
    <package name="sys-kernel/rsbac-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.26-r5</unaffected>
      <vulnerable range="lt">2.4.26-r5</vulnerable>
    </package>
    <package name="sys-kernel/rsbac-dev-sources" auto="yes" arch="*">
      <unaffected range="ge">2.6.7-r5</unaffected>
      <vulnerable range="lt">2.6.7-r5</vulnerable>
    </package>
    <package name="sys-kernel/selinux-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.26-r3</unaffected>
      <vulnerable range="lt">2.4.26-r3</vulnerable>
    </package>
    <package name="sys-kernel/sparc-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.27-r1</unaffected>
      <vulnerable range="lt">2.4.27-r1</vulnerable>
    </package>
    <package name="sys-kernel/uclinux-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.26_p0-r6</unaffected>
      <unaffected range="ge">2.6.7_p0-r5</unaffected>
      <vulnerable range="lt">2.6.7_p0-r5</vulnerable>
    </package>
    <package name="sys-kernel/usermode-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.24-r9</unaffected>
      <unaffected range="rge">2.4.26-r6</unaffected>
      <unaffected range="ge">2.6.6-r6</unaffected>
      <vulnerable range="lt">2.6.6-r6</vulnerable>
    </package>
    <package name="sys-kernel/vanilla-sources" auto="yes" arch="*">
      <unaffected range="ge">2.4.27</unaffected>
      <vulnerable range="lt">2.4.27</vulnerable>
    </package>
    <package name="sys-kernel/vserver-sources" auto="yes" arch="*">
      <unaffected range="ge">2.0</unaffected>
      <vulnerable range="lt">2.4.26.1.28-r4</vulnerable>
      <vulnerable range="lt">2.0</vulnerable>
      <vulnerable range="ge">2.4</vulnerable>
    </package>
    <package name="sys-kernel/win4lin-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.26-r6</unaffected>
      <unaffected range="ge">2.6.7-r2</unaffected>
      <vulnerable range="lt">2.6.7-r5</vulnerable>
    </package>
    <package name="sys-kernel/wolk-sources" auto="yes" arch="*">
      <unaffected range="rge">4.9-r14</unaffected>
      <unaffected range="rge">4.11-r10</unaffected>
      <unaffected range="ge">4.14-r7</unaffected>
      <vulnerable range="lt">4.14-r7</vulnerable>
    </package>
    <package name="sys-kernel/xbox-sources" auto="yes" arch="*">
      <unaffected range="rge">2.4.27-r1</unaffected>
      <unaffected range="ge">2.6.7-r5</unaffected>
      <vulnerable range="lt">2.6.7-r5</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    The Linux kernel is responsible for managing the core aspects of a
    GNU/Linux system, providing an interface for core system applications
    as well as providing the essential structure and capability to access
    hardware that is needed for a running system.
    </p>
  </background>
  <description>
    <p>
    The Linux kernel allows a local attacker to obtain sensitive kernel
    information by gaining access to kernel memory via several leaks in the
    /proc interfaces. These vulnerabilities exist in various drivers which
    make up a working Linux kernel, some of which are present across all
    architectures and configurations.
    </p>
    <p>
    CAN-2004-0415 deals with addressing invalid 32 to 64 bit conversions in
    the kernel, as well as insecure direct access to file offset pointers
    in kernel code which can be modified by the open(...), lseek(...) and
    other core system I/O functions by an attacker.
    </p>
    <p>
    CAN-2004-0685 deals with certain USB drivers using uninitialized
    structures and then using the copy_to_user(...) kernel call to copy
    these structures. This may leak uninitialized kernel memory, which can
    contain sensitive information from user applications.
    </p>
    <p>
    Finally, a race condition with the /proc/.../cmdline node was found,
    allowing environment variables to be read while the process was still
    spawning. If the race is won, environment variables of the process,
    which might not be owned by the attacker, can be read.
    </p>
  </description>
  <impact type="normal">
    <p>
    These vulnerabilities allow a local unprivileged attacker to access
    segments of kernel memory or environment variables which may contain
    sensitive information. Kernel memory may contain passwords, data
    transferred between processes and any memory which applications did not
    clear upon exiting as well as the kernel cache and kernel buffers.
    </p>
    <p>
    This information may be used to read sensitive data, open other attack
    vectors for further exploitation or cause a Denial of Service if the
    attacker can gain superuser access via the leaked information.
    </p>
  </impact>
  <workaround>
    <p>
    There is no temporary workaround for any of these information leaks
    other than totally disabling /proc support - otherwise, a kernel
    upgrade is required. A list of unaffected kernels is provided along
    with this announcement.
    </p>
  </workaround>
  <resolution>
    <p>
    Users are encouraged to upgrade to the latest available sources for
    their system:
    </p>
    <code>
    # emerge sync
    # emerge -pv your-favorite-sources
    # emerge your-favorite-sources
    
    # # Follow usual procedure for compiling and installing a kernel.
    # # If you use genkernel, run genkernel as you would normally.</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0415">CAN-2004-0415</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0685">CAN-2004-0685</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1058">CVE-2004-1058</uri>
  </references>
  <metadata tag="submitter" timestamp="2004-08-17T02:16:55Z">
    plasmaroo
  </metadata>
</glsa>
