aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorGwendal Grignou <[email protected]>2016-03-08 17:13:52 +0000
committerOlof Johansson <[email protected]>2016-05-11 18:55:47 +0000
commit5d749d0bbe811c10d9048cde6dfebc761713abfd (patch)
tree7f8497b6fa3125c0f7256dab097a73fbdc34bc58 /net/unix/af_unix.c
parentplatform/chrome: Add Chrome OS keyboard backlight LEDs support (diff)
downloadkernel-5d749d0bbe811c10d9048cde6dfebc761713abfd.tar.gz
kernel-5d749d0bbe811c10d9048cde6dfebc761713abfd.zip
platform/chrome: cros_ec_dev - Fix security issue
Prevent memory scribble by checking that ioctl buffer size parameters are sane. Without this check, on 32 bits system, if .insize = 0xffffffff - 20 and .outsize the amount to scribble, we would overflow, allocate a small amounts and be able to write outside of the malloc'ed area. Adding a hard limit allows argument checking of the ioctl. With the current EC, it is expected .insize and .outsize to be at around 512 bytes or less. Signed-off-by: Gwendal Grignou <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions