Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193797 - media-sound/alsa-driver: snd_mem_proc_read() Information Disclosure (CVE-2007-4571)
Summary: media-sound/alsa-driver: snd_mem_proc_read() Information Disclosure (CVE-2007...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL: http://labs.idefense.com/intelligence...
Whiteboard: B4 [noglsa]
Keywords:
Depends on: 194617
Blocks:
  Show dependency tree
 
Reported: 2007-09-25 21:28 UTC by Robert Buchholz (RETIRED)
Modified: 2007-11-07 20:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2007-09-25 21:28:57 UTC
+++ This bug was initially created as a clone of Bug #193796 +++

Local exploitation of an information disclosure vulnerability within the ALSA driver included in the Linux Kernel allows attackers to obtain sensitive information from kernel memory.

The problem lies within the handling of multiple reads from the "/proc/driver/snd-page-alloc" file. The kernel side function that handles the read system call, "snd_mem_proc_read", is defined in sound/core/memalloc.c 

The fix is available with 2.6.22.8 or in this commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ccec6e2c4a74adf76ed4e2478091a311b1806212
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2007-09-25 21:31:23 UTC
This might be is an issue for the non-kernel modules, too.

Alsa, please advise.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-09-25 21:52:03 UTC
yes, alsa-driver is also affected
Comment 3 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-09-29 14:38:20 UTC
alsa, please provide a fixed version of alsa-driver.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-10-03 13:50:30 UTC
It's in the tree now, alsa-driver-1.0.14-r1.
Comment 5 Christian Heim (RETIRED) gentoo-dev 2007-10-03 16:51:46 UTC
Guess, we'll have to wait a bit :(
Comment 6 Christian Heim (RETIRED) gentoo-dev 2007-10-03 18:04:24 UTC
(In reply to comment #5)
> Guess, we'll have to wait a bit :(

Fixed!
Comment 7 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-10-03 18:07:27 UTC
arches, please test and mark stable media-sound/alsa-driver-1.0.14-r1
target "alpha amd64 ia64 ~mips ppc ppc64 x86"
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-03 23:16:43 UTC
x86 stable
Comment 9 Tobias Scherbaum (RETIRED) gentoo-dev 2007-10-06 21:04:12 UTC
ppc stable
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2007-10-11 09:46:45 UTC
ppc64 stable
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-17 00:55:11 UTC
Sorry that it took so long, but amd64 is done.
Comment 12 Tobias Klausmann (RETIRED) gentoo-dev 2007-10-20 17:12:37 UTC
1.0.14-r1 bombs on my XP1000:

  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/rawmidi.o
  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/timer.o
  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/sound.o
/var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/sound.c: In function ‘alsa_sound_exit’:
/var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/sound.c:552: error: void value not ignored as it ought to be
make[4]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore/sound.o] Error 1
make[3]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14/acore] Error 2
make[2]: *** [_module_/var/tmp/portage/media-sound/alsa-driver-1.0.14-r1/work/alsa-driver-1.0.14] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-rc3'
make: *** [compile] Error 2


# emerge --info
Portage 2.1.3.12 (default-linux/alpha/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-rc3 alpha)
=================================================================
System uname: 2.6.23-rc3 alpha EV6
Timestamp of tree: Sat, 13 Oct 2007 17:50:01 +0000
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="alpha ~alpha"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev6"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev6"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/"
INSTALL_MASK="/etc/udev/rules.d/75-persistent-net-generator.rules"
LC_ALL="en_US.utf8"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage"
USE="X acl alpha alsa ao apache2 audacious audiofile bash-completion berkdb bitmap-fonts bzip2 cairo calendar cdparanoia cdr cli cracklib crypt cups dbus dio dri dvdr dvdread encode ethereal evo exif fam ffmpeg fftw firefox flac fortran ftp gdbm gif gpm gstreamer gtk hal iconv imlib2 isdnlog jpeg kdeenablefinal libcaca libsamplerate lua mad matroska midi mikmod mmap mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mudflap ncurses network-cron nls nptl nptlonly offensive ogg openmp oss pam pcre pdf pdflib perl png pnm ppds pppd python qt3 qt3support qt4 quicktime rar readline recode reflection session sharedmem sndfile sockets sox spell spl ssl svg szip tcpd tetex theora truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vidix vim vim-pager vlm vorbis xcb xml xorg xosd xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga glint mga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2007-10-21 16:25:45 UTC
Haven't checked, but that looks like an unrelated issue (i.e. previous versions will also fail against that kernel). Open a new bug if there isn't one already.
Comment 14 Tobias Klausmann (RETIRED) gentoo-dev 2007-10-22 20:05:15 UTC
Ysowink and I narrowed my problem down to being with .23 kernels. On top of the issue I found, it also has the known sandbox violations that 2.3 is ripe with.

So I tested against gentoo-sources-2.6.21-gentoo-r4 which is alphas current stable kernel. 

And it works out fine. It also makes all the right noises :)
Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2007-10-22 20:37:05 UTC
alpha stable and ia64 keyword dropped, thanks Tobias for testing
Comment 16 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-10-26 09:05:30 UTC
ready for glsa decision. It's a local issue, rather hard to exploit, so I vote NO.
Comment 17 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-11-07 20:58:35 UTC
Voting NO and closing.