Bug 769721 (CVE-2011-4622)

Summary: CVE-2011-4622 kernel: kvm: pit timer with no irqchip crashes the system
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amaris, anton, arozansk, dhoward, fhrbata, kernel-mgr, lwang, sforsber, wnefal+redhatbugzilla
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20111214,reported=20111221,source=internet,cvss2=4.9/AV:L/AC:L/Au:N/C:N/I:N/A:C,rhel-5/kvm=affected,rhel-6/kernel=affected,fedora-all/kernel=affected,mrg-2/realtime-kernel=notaffected,rhel-4/kernel=notaffected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-11 13:37:37 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 769550, 769634, 770100, 770101, 770102, 770103, 770104, 771387    
Bug Blocks: 769699    

Description Petr Matousek 2011-12-21 16:58:07 EST
User space may create the PIT and forgets about setting up the irqchips.
In that case, firing PIT IRQs will crash the host:

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000128
    IP: [<ffffffffa10f6280>] kvm_set_irq+0x30/0x170 [kvm]
    ...
    Call Trace:
     [<ffffffffa11228c1>] pit_do_work+0x51/0xd0 [kvm]
     [<ffffffff81071431>] process_one_work+0x111/0x4d0
     [<ffffffff81071bb2>] worker_thread+0x152/0x340
     [<ffffffff81075c8e>] kthread+0x7e/0x90
     [<ffffffff815a4474>] kernel_thread_helper+0x4/0x10

Reference:
http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/83564
Comment 2 Kurt Seifried 2011-12-21 17:24:56 EST
Added CVE-2011-4622 as per http://www.openwall.com/lists/oss-security/2011/12/21/7
Comment 5 Petr Matousek 2011-12-23 06:10:20 EST
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 770102]
Comment 6 Fedora Update System 2012-01-07 18:05:38 EST
kernel-3.1.7-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Fedora Update System 2012-01-15 14:59:06 EST
kernel-2.6.41.9-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Petr Matousek 2012-01-18 16:03:13 EST
Statement:

This issue did not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 4 and Red Hat Enterprise MRG as they did not provide support for the KVM subsystem. It has been addressed in Red Hat Enterprise 5 and 6 via https://rhn.redhat.com/errata/RHSA-2012-0051.html and https://rhn.redhat.com/errata/RHSA-2012-0350.html.
Comment 9 errata-xmlrpc 2012-01-23 13:58:24 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:0051 https://rhn.redhat.com/errata/RHSA-2012-0051.html
Comment 10 errata-xmlrpc 2012-03-06 13:45:47 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:0350 https://rhn.redhat.com/errata/RHSA-2012-0350.html