Bug 816560
Summary: | CVE-2012-2693 libvirt ignores address bus= device= when identicle vendor ID/product IDs usb devices attached with either virsh or virt-manager [fedora-all] | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ken Booth <kbooth> |
Component: | libvirt | Assignee: | Gunannan Ren <gren> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | acathrow, ajia, berrange, crobinso, dallan, dougsland, dyasny, dyuan, jforbes, jyang, laine, lyarwood, mhomolov, mzhan, pmatouse, rwu, veillard, weizhan |
Target Milestone: | --- | Keywords: | Security, SecurityTracking |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Release Note | |
Doc Text: | Story Points: | --- | |
Clone Of: | 815755 | Environment: | |
Last Closed: | 2012-07-04 16:48:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 816601 | ||
Bug Blocks: | 831164 |
Description
Ken Booth
2012-04-26 12:01:39 UTC
Suggested fix ...
$ diff src/qemu/qemu_hostdev.c src/qemu/qemu_hostdev-modified.c
597,599c597,613
< usbDevice *usb
< = usbFindDevice(hostdev->source.subsys.u.usb.vendor,
< hostdev->source.subsys.u.usb.product);
---
> if (hostdev->source.subsys.u.usb.bus) {
> usbDevice *usb
> = usbGetDevice(hostdev->source.subsys.u.usb.bus,
> hostdev->source.subsys.u.usb.device);
> if ((hostdev->source.subsys.u.usb.vendor != usb->vendor) ||
> (hostdev->source.subsys.u.usb.product != usb->product)) {
> qemuReportError(VIR_ERR_OPERATION_INVALID,
> _("USB device %s does not match vendor product id"),
> usbDeviceGetName(tmp));
> usbFreeDevice(usb);
> goto cleanup;
> }
> } else {
> usbDevice *usb
> = usbFindDevice(hostdev->source.subsys.u.usb.vendor,
> hostdev->source.subsys.u.usb.product);
> }
The patch has been pushed in upstream. So I set it to POST https://www.redhat.com/archives/libvir-list/2012-May/msg00289.html Fixed in currentrelease |