projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82248a5
)
sound: ensure device number is valid in snd_seq_oss_synth_make_info
author
Willy Tarreau
<
[email protected]
>
Sat, 2 Aug 2008 16:25:16 +0000
(18:25 +0200)
committer
Linus Torvalds
<
[email protected]
>
Tue, 5 Aug 2008 00:03:26 +0000
(17:03 -0700)
snd_seq_oss_synth_make_info() incorrectly reports information
to userspace without first checking for the validity of the
device number, leading to possible information leak (CVE-2008-3272).
Reported-By: Tobias Klein <
[email protected]
>
Acked-and-tested-by: Takashi Iwai <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Willy Tarreau <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
sound/core/seq/oss/seq_oss_synth.c
patch
|
blob
|
history
diff --git
a/sound/core/seq/oss/seq_oss_synth.c
b/sound/core/seq/oss/seq_oss_synth.c
index 558dadbf45f12e39387573ca5566b8d31b5be562..e024e4588b829280b8871420c7d32a616352e7ef 100644
(file)
--- a/
sound/core/seq/oss/seq_oss_synth.c
+++ b/
sound/core/seq/oss/seq_oss_synth.c
@@
-604,6
+604,9
@@
snd_seq_oss_synth_make_info(struct seq_oss_devinfo *dp, int dev, struct synth_in
{
struct seq_oss_synth *rec;
+ if (dev < 0 || dev >= dp->max_synthdev)
+ return -ENXIO;
+
if (dp->synths[dev].is_midi) {
struct midi_info minf;
snd_seq_oss_midi_make_info(dp, dp->synths[dev].midi_mapped, &minf);