Bug 896038 (CVE-2013-0190)

Summary: CVE-2013-0190 kernel: stack corruption in xen_failsafe_callback()
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: drjones, imammedo, lersek, pbonzini
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20130116,reported=20130110,source=distros,cvss2=4/AV:L/AC:H/Au:N/C:N/I:N/A:C,rhel-5/kernel=notaffected,rhel-6/kernel=affected,mrg-2/realtime-kernel=notaffected,fedora-all/kernel=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-24 09:02:28 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 896049, 896050, 896051    
Bug Blocks: 896056    
Description Flags
Upstream proposed patch none

Description Petr Matousek 2013-01-16 09:18:09 EST
A flaw was found in the way xen_failsafe_callback() handled failed iret,
which causes the stack pointer to be wrong when entering the
iret_exc error path. An unprivileged local guest user in the 32-bit PV
Xen domain could use this flaw to crash the guest.



Red Hat would like to thank the Andrew Cooper of Citrix for reporting this issue.
Comment 1 Petr Matousek 2013-01-16 09:22:55 EST
Created attachment 679616 [details]
Upstream proposed patch
Comment 3 Petr Matousek 2013-01-16 09:28:33 EST
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 896051]
Comment 4 Petr Matousek 2013-01-16 09:39:45 EST

This issue did not affect Red Hat Enterprise Linux 5 and Red Hat Enterprise MRG 2.
Comment 5 Andrew Jones 2013-01-16 12:42:17 EST
I'm brewing a build with the proposed patch:


and taking a stab at writing a reproducer.
Comment 6 Fedora Update System 2013-01-18 15:43:52 EST
kernel-3.7.2-204.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 17 Fedora Update System 2013-01-24 17:39:17 EST
kernel-3.7.3-101.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 19 errata-xmlrpc 2013-02-21 02:02:22 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:0496 https://rhn.redhat.com/errata/RHSA-2013-0496.html