]> git.baikalelectronics.ru Git - kernel.git/commit
radiotap: fix bitmap-end-finding buffer overrun
authorJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2013 11:04:36 +0000 (12:04 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2013 11:06:43 +0000 (12:06 +0100)
commit3c9304f1f052903e25040e6c013b59a8ed0b700a
treed43aaa563d7e977e8b8122777baef54930528049
parent9d21ea65291c844c7b9ee77da484de92eb788b55
radiotap: fix bitmap-end-finding buffer overrun

Evan Huus found (by fuzzing in wireshark) that the radiotap
iterator code can access beyond the length of the buffer if
the first bitmap claims an extension but then there's no
data at all. Fix this.

Cc: stable@vger.kernel.org
Reported-by: Evan Huus <eapache@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/radiotap.c