diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-04-18 12:51:31 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-29 07:50:07 +0200 |
| commit | e47611257d7b46bfdc70726a8a236881180cf990 (patch) | |
| tree | 80bd8ee4cfabb0aa3175859f2e02b4895f39f7b9 /scripts/dtc/libfdt/fdt_strerror.c | |
| parent | f0ffbef2003775400c14108ee38acbf69e611767 (diff) | |
cdrom: information leak in cdrom_ioctl_media_changed()
commit 9de4ee40547fd315d4a0ed1dd15a2fa3559ad707 upstream.
This cast is wrong. "cdi->capacity" is an int and "arg" is an unsigned
long. The way the check is written now, if one of the high 32 bits is
set then we could read outside the info->slots[] array.
This bug is pretty old and it predates git.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/dtc/libfdt/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions
