]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mwifiex: fix probable memory corruption while processing TDLS frame
authorAvinash Patil <patila@marvell.com>
Fri, 12 Sep 2014 14:38:46 +0000 (20:08 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:02:16 +0000 (19:02 +0100)
commit585453f1881a2f6b650d38a6f9e45621faa0b273
tree70451a2e85195064cd908a756563ef4663481d98
parent2485578fc363bfc01012027cca4a746993a5df52
mwifiex: fix probable memory corruption while processing TDLS frame

commit 3c99832d74777c9ec5545a92450fac5d37b0d0e1 upstream.

Size of RSN IE buffer in driver is 254 while maximum size of received buffer
to be copied to RSN IE buffer can be 255. Add boundary check to copy maximum
of 254 bytes into RSN IE buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/mwifiex/tdls.c