[PATCH 0/3] vfio: Fix the null-ptr-deref bugs in samples of vfio-mdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a null-ptr-deref bug in strchr() of device_add(), if the kstrdup()
fails in kobject_set_name_vargs() in dev_set_name(). This patchset fix
the issues.

Jinjie Ruan (3):
  vfio/mdpy: Fix the null-ptr-deref bug in mdpy_dev_init()
  vfio/mtty: Fix the null-ptr-deref bug in mtty_dev_init()
  vfio/mbochs: Fix the null-ptr-deref bug in mbochs_dev_init()

 samples/vfio-mdev/mbochs.c | 4 +++-
 samples/vfio-mdev/mdpy.c   | 4 +++-
 samples/vfio-mdev/mtty.c   | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.34.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux