diff options
author | Salva Peiró <speiro@ai2.upv.es> | 2014-03-03 08:44:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-05 01:20:01 +0100 |
commit | 084b6e7765b9554699afa23a50e702a3d0ae4b24 (patch) | |
tree | 50efbe4843bc48fd5220b6f02ff1add272431a7e /drivers/iio/adc/at91_adc.c | |
parent | Linux 3.14-rc5 (diff) | |
download | linux-084b6e7765b9554699afa23a50e702a3d0ae4b24.tar.xz linux-084b6e7765b9554699afa23a50e702a3d0ae4b24.zip |
staging/cxt1e1/linux.c: Correct arbitrary memory write in c4_ioctl()
The function c4_ioctl() writes data from user in ifr->ifr_data
to the kernel struct data arg, without any iolen bounds checking.
This can lead to a arbitrary write outside of the struct data arg.
Corrected by adding bounds-checking of iolen before the copy_from_user().
Signed-off-by: Salva Peiró <speiro@ai2.upv.es>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/at91_adc.c')
0 files changed, 0 insertions, 0 deletions