]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sound/pci/rme9652: prevent reading uninitialized stack memory
authorDan Rosenberg <drosenberg@vsecurity.com>
Sat, 25 Sep 2010 15:07:27 +0000 (11:07 -0400)
committerTakashi Iwai <tiwai@suse.de>
Sat, 25 Sep 2010 15:46:22 +0000 (17:46 +0200)
commit166ae07ba49f9f7bc9056a8834c0f7b8288cbb57
tree6dddc80b93622ba0bfe626ae1f0b0fddd9395072
parent585f922f27f3d7ddad248da4effb1175b8024504
ALSA: sound/pci/rme9652: prevent reading uninitialized stack memory

The SNDRV_HDSP_IOCTL_GET_CONFIG_INFO and
SNDRV_HDSP_IOCTL_GET_CONFIG_INFO ioctls in hdspm.c and hdsp.c allow
unprivileged users to read uninitialized kernel stack memory, because
several fields of the hdsp{m}_config_info structs declared on the stack
are not altered or zeroed before being copied back to the user.  This
patch takes care of it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdsp.c
sound/pci/rme9652/hdspm.c