]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: rtl8712: prevent buffer overrun in recvbuf2recvframe
authorHaggai Eran <haggai.eran@gmail.com>
Sat, 23 May 2015 20:13:51 +0000 (23:13 +0300)
committerZefan Li <lizefan@huawei.com>
Thu, 22 Oct 2015 01:20:02 +0000 (09:20 +0800)
commitf8c1d2aa8f5e14dfcf4c5c3e31ea4dd3812f072f
treec526bad239ed1f64fed9b31a08e71fa89ba21f22
parentb716d0f38305a2bfe98379ce884e34802e2fcadf
staging: rtl8712: prevent buffer overrun in recvbuf2recvframe

commit cab462140f8a183e3cca0b51c8b59ef715cb6148 upstream.

With an RTL8191SU USB adaptor, sometimes the hints for a fragmented
packet are set, but the packet length is too large. Allocate enough
space to prevent memory corruption and a resulting kernel panic [1].

[1] http://www.spinics.net/lists/linux-wireless/msg136546.html

Signed-off-by: Haggai Eran <haggai.eran@gmail.com>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/staging/rtl8712/rtl8712_recv.c