]> git.baikalelectronics.ru Git - kernel.git/commit
b43: stop format string leaking into error msgs
authorKees Cook <keescook@chromium.org>
Fri, 10 May 2013 21:48:21 +0000 (14:48 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 14:20:59 +0000 (10:20 -0400)
commit466d002940c1fdb4b8e94128fa391426f663c62e
tree80d2f170443f2c7bc711c7dfaf31f9b19304718b
parentff90848ae6d062adc0fbb55015b871a3fd5962cb
b43: stop format string leaking into error msgs

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>
drivers/net/wireless/b43/main.c