diff options
author | Luciano Coelho <coelho@ti.com> | 2011-06-07 19:42:26 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-07 20:19:07 +0200 |
commit | 57a27e1d6a3bb9ad4efeebd3a8c71156d6207536 (patch) | |
tree | 2873dc389e21115f1b674134baf1fae0ecdbb087 /fs/stat.c | |
parent | rtlwifi: Avoid modifying skbs that are resubmitted (diff) | |
download | linux-57a27e1d6a3bb9ad4efeebd3a8c71156d6207536.tar.xz linux-57a27e1d6a3bb9ad4efeebd3a8c71156d6207536.zip |
nl80211: fix overflow in ssid_len
When one of the SSID's length passed in a scan or sched_scan request
is larger than 255, there will be an overflow in the u8 that is used
to store the length before checking. This causes the check to fail
and we overrun the buffer when copying the SSID.
Fix this by checking the nl80211 attribute length before copying it to
the struct.
This is a follow up for the previous commit
208c72f4fe44fe09577e7975ba0e7fa0278f3d03, which didn't fix the problem
entirely.
Reported-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions