Bug 1284847 (CVE-2015-7513)

Summary: CVE-2015-7513 Kernel: kvm: divide by zero issue leads to DoS
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abaron, aortega, apevec, areis, ayoung, carnil, chrisw, dallan, gkotton, jen, jschluet, knoel, lhh, lpeer, markmc, mkenneth, mrezanin, mst, pbonzini, pmatouse, ppandit, rbalakri, rbryant, sclewis, security-response-team, slong, srevivo, tdecacqu
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A divide-by-zero flaw was discovered in the Linux kernel built with KVM virtualization support(CONFIG_KVM). The flaw occurs in the KVM module's Programmable Interval Timer(PIT) emulation, when PIT counters for channel 1 or 2 are set to zero(0) and a privileged user inside the guest attempts to read these counters. A privileged guest user with access to PIT I/O ports could exploit this issue to crash the host kernel (denial of service).
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-20 11:29:34 UTC Type: ---
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: 1296142, 1296143    
Bug Blocks: 1284848    

Description Adam Mariš 2015-11-24 10:47:48 UTC
Linux kernel built with the KVM virtualisation support(CONFIG_KVM) is vulnerable to a divide by zero issue. It occurs in the KVM module's Programmable Interval Timer(PIT) emulation, when PIT counters for channel 1 or 2 are set to zero(0) and a privileged user inside guest attempts to read those.

A privileged guest user with access to PIT I/O ports, could use this issue to crash the host kernel resulting in DoS.

Upstream patch:
---------------
  -> https://git.kernel.org/linus/0185604c2d82c560dab2f2933a18f797e74ab5a8

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2016/01/07/2
  -> http://wiki.osdev.org/Programmable_Interval_Timer
  -> http://www.osdever.net/bkerndev/Docs/pit.htm

Comment 2 Martin Prpič 2016-01-06 12:40:30 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1296142]

Comment 3 Prasad Pandit 2016-01-07 10:39:57 UTC
Statement:

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

This issue affects the versions of Linux kernel as shipped with
Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7.

This has been rated as having Moderate security impact and is not 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 4 Fedora Update System 2016-01-20 21:52:48 UTC
kernel-4.3.3-301.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2016-01-26 18:23:43 UTC
kernel-4.3.3-303.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

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