]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nl80211: fix MAC address validation
authorEliad Peller <eliad@wizery.com>
Thu, 24 Nov 2011 16:13:56 +0000 (18:13 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Jan 2013 21:44:59 +0000 (16:44 -0500)
commit42585bfbff9ad0c9c03e47a1989f911a984ce618
treec08c4c48d7707a1982716801cc6b6aa5d8b0f98d
parent89b56467c5ee10ab80c44aa1fe03d461deaf0c92
nl80211: fix MAC address validation

commit e007b857e88097c96c45620bf3b04a4e309053d1 upstream.

MAC addresses have a fixed length. The current
policy allows passing < ETH_ALEN bytes, which
might result in reading beyond the buffer.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/wireless/nl80211.c