Commit f9653a5a authored by Kees Cook's avatar Kees Cook Committed by Willy Tarreau

b43: stop format string leaking into error msgs

commit e0e29b68 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: default avatarKees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 134cbf55
...@@ -2257,7 +2257,7 @@ static int b43_request_firmware(struct b43_wldev *dev) ...@@ -2257,7 +2257,7 @@ static int b43_request_firmware(struct b43_wldev *dev)
for (i = 0; i < B43_NR_FWTYPES; i++) { for (i = 0; i < B43_NR_FWTYPES; i++) {
errmsg = ctx->errors[i]; errmsg = ctx->errors[i];
if (strlen(errmsg)) if (strlen(errmsg))
b43err(dev->wl, errmsg); b43err(dev->wl, "%s", errmsg);
} }
b43_print_fw_helptext(dev->wl, 1); b43_print_fw_helptext(dev->wl, 1);
err = -ENOENT; err = -ENOENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment