]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
b43: stop format string leaking into error msgs
authorKees Cook <keescook@chromium.org>
Fri, 10 May 2013 21:48:21 +0000 (21:48 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:26 +0000 (07:53 +0200)
commitf9653a5ab3bba8a3ace8174df52776ee98239c4a
tree1e238da11db307af7adba6d5180d51e93c947acf
parent134cbf552295204ea9b17882580acf800b30eaff
b43: stop format string leaking into error msgs

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>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/wireless/b43/main.c