]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status
authorScott Bauer <scott.bauer@intel.com>
Wed, 3 Oct 2018 06:29:00 +0000 (08:29 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 23 Oct 2018 06:45:58 +0000 (08:45 +0200)
commit00ab3ffb35c4472bc415dc90fc3a646c2b40630d
treedda9e6454dc44bccfdae74dff1b670f8f794fa76
parent9f1e2b5059ac7059fc89f9cf90f5e7804da6c19d
cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status

CVE-2018-16658

Like d88b6d04: "cdrom: information leak in cdrom_ioctl_media_changed()"

There is another cast from unsigned long to int which causes
a bounds check to fail with specially crafted input. The value is
then used as an index in the slot array in cdrom_slot_status().

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 8f3fafc9c2f0ece10832c25f7ffcb07c97a32ad4)
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/cdrom/cdrom.c