https://github.com/torvalds/linux
Revision 657308f73e674e86b60509a430a46e569bf02846 authored by Johannes Berg on 22 February 2018, 19:55:28 UTC, committed by Johannes Berg on 22 February 2018, 19:57:48 UTC
Similar to the ancient commit a5fe8e7695dc ("regulatory: add NUL
to alpha2"), add another byte to alpha2 in the request struct so
that when we use nla_put_string(), we don't overrun anything.

Fixes: 73d54c9e74c4 ("cfg80211: add regulatory netlink multicast group")
Reported-by: Kees Cook <keescook@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 3b07029
History
Tip revision: 657308f73e674e86b60509a430a46e569bf02846 authored by Johannes Berg on 22 February 2018, 19:55:28 UTC
regulatory: add NUL to request alpha2
Tip revision: 657308f
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.4 KB
.mailmap -rw-r--r-- 8.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 426.8 KB
Makefile -rw-r--r-- 58.5 KB
README -rw-r--r-- 722 bytes

README

back to top