Bug 1332139 (CVE-2016-3713)

Summary: CVE-2016-3713 kernel: kvm: out-of-bounds access in set_var_mtrr_msr
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aquini, areis, bhu, carnil, dhoward, fhrbata, iboverma, jen, jkacur, joelsmith, jross, kernel-mgr, knoel, kstutsma, lgoncalv, matt, mcressma, mkenneth, mrezanin, mst, nmurray, pbonzini, plougher, pmatouse, ppandit, rvrbovsk, security-response-team, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:51:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1336410    
Bug Blocks: 1332140    
Attachments:
Description Flags
Proposed patch none

Description Adam Mariš 2016-05-02 11:04:39 UTC
Linux kernel built with the Kernel-based Virtual Machine(CONFIG_KVM) with variable Memory Type Range Registers(MTRR) support is vulnerable to an out-of-bounds r/w access issue. It could occur while accessing processor's MTRRs via ioctl(2) calls.

A privileged user inside guest could use this flaw to manipulate host kernel's memory bytes leading to information disclosure or crashing the kernel resulting in DoS.

Upstream patch:
---------------
  -> https://lkml.org/lkml/2016/5/17/350

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2016/05/16/2

Comment 1 Adam Mariš 2016-05-02 11:04:45 UTC
Acknowledgments:

Name: David Matlack (Google)

Comment 2 Adam Mariš 2016-05-02 11:08:25 UTC
Created attachment 1152898 [details]
Proposed patch

Comment 3 Prasad Pandit 2016-05-12 10:57:01 UTC
Statement:

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

Comment 4 Prasad Pandit 2016-05-16 12:02:12 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1336410]

Comment 5 Fedora Update System 2016-05-24 18:02:48 UTC
kernel-4.5.5-300.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2016-06-01 20:23:07 UTC
kernel-4.4.11-200.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2016-06-02 14:57:34 UTC
kernel-4.5.5-201.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.