Bug 1389258 (CVE-2016-9083) - CVE-2016-9083 kernel: State machine confusion bug in vfio driver leading to memory corruption
Summary: CVE-2016-9083 kernel: State machine confusion bug in vfio driver leading to m...
Status: CLOSED ERRATA
Alias: CVE-2016-9083
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=important,public=20161012,repo...
Keywords: Security
Depends On: 1389285 1394627 1394628 1394629 1394630 1394631 1394632
Blocks: 1389281
TreeView+ depends on / blocked
 
Reported: 2016-10-27 09:52 UTC by Adam Mariš
Modified: 2019-06-11 11:13 UTC (History)
33 users (show)

(edit)
A flaw was discovered in the Linux kernel's implementation of VFIO. An attacker issuing an ioctl can create a situation where memory is corrupted and modify memory outside of the expected area. This may overwrite kernel memory and subvert kernel execution.
Clone Of:
(edit)
Last Closed: 2019-06-08 03:01:17 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0386 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2017-03-02 22:06:10 UTC
Red Hat Product Errata RHSA-2017:0387 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2017-03-02 22:06:22 UTC

Description Adam Mariš 2016-10-27 09:52:25 UTC
A flaw was discovered in the Linux kernels implementation of VFIO. While issuing an IOCTL, the VFIO_DEVICE_SET_IRQS parameter for vfio PCI devices has a state machine confusion bug where specifying VFIO_IRQ_SET_DATA_NONE along with another bit in VFIO_IRQ_SET_DATA_TYPE_MASK in hdr.flags allows integer overflow checks to be skipped for hdr.start/hdr.count. 

This might allow memory corruption later in vfio_pci_set_msi_trigger() with user access to an appropriate vfio device file, but it seems difficult to usefully exploit in practice.

Proposed patch:

https://patchwork.kernel.org/patch/9373631/

CVE assignment:

http://seclists.org/oss-sec/2016/q4/251

Comment 1 Adam Mariš 2016-10-27 11:26:06 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1389285]

Comment 2 Wade Mealing 2016-11-14 04:46:07 UTC
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6 and Red Hat Enterprise MRG 2.

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 7. This has been rated as having Moderate security impact and is  currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Comment 9 errata-xmlrpc 2017-03-02 17:13:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0386 https://rhn.redhat.com/errata/RHSA-2017-0386.html

Comment 10 errata-xmlrpc 2017-03-02 17:23:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0387 https://rhn.redhat.com/errata/RHSA-2017-0387.html


Note You need to log in before you can comment on or make changes to this bug.