]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Jun 2013 06:23:57 +0000 (23:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Jun 2013 06:23:57 +0000 (23:23 -0700)
added patches:
b43-stop-format-string-leaking-into-error-msgs.patch

queue-3.0/b43-stop-format-string-leaking-into-error-msgs.patch [new file with mode: 0644]
queue-3.0/series [new file with mode: 0644]

diff --git a/queue-3.0/b43-stop-format-string-leaking-into-error-msgs.patch b/queue-3.0/b43-stop-format-string-leaking-into-error-msgs.patch
new file mode 100644 (file)
index 0000000..ca366a5
--- /dev/null
@@ -0,0 +1,36 @@
+From e0e29b683d6784ef59bbc914eac85a04b650e63c Mon Sep 17 00:00:00 2001
+From: Kees Cook <keescook@chromium.org>
+Date: Fri, 10 May 2013 14:48:21 -0700
+Subject: b43: stop format string leaking into error msgs
+
+From: Kees Cook <keescook@chromium.org>
+
+commit e0e29b683d6784ef59bbc914eac85a04b650e63c upstream.
+
+The module parameter "fwpostfix" is userspace controllable, unfiltered,
+and is used to define the firmware filename. b43_do_request_fw() populates
+ctx->errors[] on error, containing the firmware filename. b43err()
+parses its arguments as a format string. For systems with b43 hardware,
+this could lead to a uid-0 to ring-0 escalation.
+
+CVE-2013-2852
+
+Signed-off-by: Kees Cook <keescook@chromium.org>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/b43/main.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/b43/main.c
++++ b/drivers/net/wireless/b43/main.c
+@@ -2309,7 +2309,7 @@ static int b43_request_firmware(struct b
+       for (i = 0; i < B43_NR_FWTYPES; i++) {
+               errmsg = ctx->errors[i];
+               if (strlen(errmsg))
+-                      b43err(dev->wl, errmsg);
++                      b43err(dev->wl, "%s", errmsg);
+       }
+       b43_print_fw_helptext(dev->wl, 1);
+       err = -ENOENT;
diff --git a/queue-3.0/series b/queue-3.0/series
new file mode 100644 (file)
index 0000000..9208fd0
--- /dev/null
@@ -0,0 +1 @@
+b43-stop-format-string-leaking-into-error-msgs.patch