]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
libnvdimm: Fix security issue with DSM IOCTL.
authorJerry Hoemann <jerry.hoemann@hpe.com>
Wed, 6 Jan 2016 23:03:41 +0000 (16:03 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 20 Apr 2016 20:54:01 +0000 (14:54 -0600)
commit56b16f02db8b5708aa1502be55d0ac7eec0d014f
treee1fdeb2f5b8cb5b45e5c4cef9624aee84bc52d71
parentb34b0067594d58f8451577617955f02b36615b8f
libnvdimm: Fix security issue with DSM IOCTL.

BugLink: http://bugs.launchpad.net/bugs/1572722
commit 07accfa9d1a8bac8262f6d24a94a54d2d1f35149 upstream.

Code attempts to prevent certain IOCTL DSM from being called
when device is opened read only.  This security feature can
be trivially overcome by changing the size portion of the
ioctl_command which isn't used.

Check only the _IOC_NR (i.e. the command).

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/nvdimm/bus.c