]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 02:49:57 +0000 (11:49 +0900)
commitcab462140f8a183e3cca0b51c8b59ef715cb6148
tree803d24ba368364297ec79f2722a3b705ee4d47d0
parenta1471eb9da4a79650ca30c6038425f90da3b1054
staging: rtl8712: prevent buffer overrun in recvbuf2recvframe

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

Cc: <stable@vger.kernel.org>
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>
drivers/staging/rtl8712/rtl8712_recv.c