[linux] 01/01: ALSA: usb-audio: avoid freeing umidi object twice (CVE-2016-XXXX)
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sun Feb 14 05:01:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch wheezy-security
in repository linux.
commit b3410b765909bca9e3e4b3b114cf1e933c5fd7cc
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sun Feb 14 04:58:20 2016 +0000
ALSA: usb-audio: avoid freeing umidi object twice (CVE-2016-XXXX)
---
debian/changelog | 1 +
...sb-audio-avoid-freeing-umidi-object-twice.patch | 29 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2500ebb..99802ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ linux (3.2.73-2+deb7u3) UNRELEASED; urgency=medium
* af_unix: Guard against other == sk in unix_dgram_sendmsg
(regression in 3.2.73-2+deb7u1)
* pipe: Fix buffer offset after partially failed read (CVE-2016-0774)
+ * ALSA: usb-audio: avoid freeing umidi object twice (CVE-2016-XXXX)
[ Salvatore Bonaccorso ]
* unix: properly account for FDs passed over unix sockets (CVE-2013-4312)
diff --git a/debian/patches/bugfix/all/alsa-usb-audio-avoid-freeing-umidi-object-twice.patch b/debian/patches/bugfix/all/alsa-usb-audio-avoid-freeing-umidi-object-twice.patch
new file mode 100644
index 0000000..8218950
--- /dev/null
+++ b/debian/patches/bugfix/all/alsa-usb-audio-avoid-freeing-umidi-object-twice.patch
@@ -0,0 +1,29 @@
+From: Andrey Konovalov <andreyknvl at gmail.com>
+Date: Sat, 13 Feb 2016 11:08:06 +0300
+Subject: ALSA: usb-audio: avoid freeing umidi object twice
+Origin: https://git.kernel.org/linus/07d86ca93db7e5cdf4743564d98292042ec21af7
+
+The 'umidi' object will be free'd on the error path by snd_usbmidi_free()
+when tearing down the rawmidi interface. So we shouldn't try to free it
+in snd_usbmidi_create() after having registered the rawmidi interface.
+
+Found by KASAN.
+
+Signed-off-by: Andrey Konovalov <andreyknvl at gmail.com>
+Acked-by: Clemens Ladisch <clemens at ladisch.de>
+Cc: <stable at vger.kernel.org>
+Signed-off-by: Takashi Iwai <tiwai at suse.de>
+---
+ sound/usb/midi.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/sound/usb/midi.c
++++ b/sound/usb/midi.c
+@@ -2243,7 +2243,6 @@ int snd_usbmidi_create(struct snd_card *
+ else
+ err = snd_usbmidi_create_endpoints(umidi, endpoints);
+ if (err < 0) {
+- snd_usbmidi_free(umidi);
+ return err;
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 8483951..19b0d54 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1204,3 +1204,4 @@ bugfix/all/aufs-tiny-extract-a-new-func-xino_fwrite_wkq.patch
bugfix/all/aufs-for-4.3-xino-handles-eintr-from-the-dying-proce.patch
bugfix/all/af_unix-guard-against-other-sk-in-unix_dgram_sendmsg.patch
bugfix/all/pipe-fix-buffer-offset-after-partially-failed-read.patch
+bugfix/all/alsa-usb-audio-avoid-freeing-umidi-object-twice.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list