]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath9k: fix tx99 potential info leak
authorMiaoqing Pan <miaoqing@codeaurora.org>
Wed, 27 Sep 2017 01:13:34 +0000 (09:13 +0800)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:41 +0000 (12:55 -0500)
commitaef3297a50e7fd666a817aba566537fceeee0f1a
treee993698ec56d494d5e37d6f985b89f854e27b46e
parent411934395be9e8074f08876c4b9fcbfee2574f43
ath9k: fix tx99 potential info leak

[ Upstream commit ee0a47186e2fa9aa1c56cadcea470ca0ba8c8692 ]

When the user sets count to zero the string buffer would remain
completely uninitialized which causes the kernel to parse its
own stack data, potentially leading to an info leak. In addition
to that, the string might be not terminated properly when the
user data does not contain a 0-terminator.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Reviewed-by: Christoph Böhmwalder <christoph@boehmwalder.at>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/wireless/ath/ath9k/tx99.c