Bug 649920 (CVE-2010-3881)

Summary: CVE-2010-3881 kvm: arch/x86/kvm/x86.c: reading uninitialized stack memory
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-19 09:15:51 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: 649832, 649840, 649929, 649931    
Bug Blocks: 580951    

Description Petr Matousek 2010-11-04 19:59:06 UTC
Description of problem:
Structures kvm_vcpu_events, kvm_debugregs, kvm_pit_state2 and kvm_clock_data are copied to userland with some padding and reserved fields unitialized.  It leads to leaking of contents of kernel stack memory.

Reference:
http://www.spinics.net/lists/kvm/msg44130.html
http://git.kernel.org/?p=virt/kvm/kvm.git;a=commit;h=831d9d02f9522e739825a51a11e3bc5aa531a905

Acknowledgements:

Red Hat would like to thank Vasiliy Kulikov of Openwall for reporting this issue.

Comment 1 Petr Matousek 2010-11-04 20:00:02 UTC
Statement:

This issue did not affect the version of Linux kernel as shipped with Red Hat
Enterprise Linux 3, 4 and Red Hat Enterprise MRG as they did not include
support for Kernel-based Virtual Machine (KVM). A future kernel update in Red
Hat Enterprise Linux 5 may address this flaw.

Comment 3 Eugene Teo (Security Response) 2010-11-22 13:25:03 UTC
Upstream commit:
http://git.kernel.org/linus/97e69aa62f8b5d338d6cff49be09e37cc1262838

Comment 4 errata-xmlrpc 2010-12-20 17:36:59 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0998 https://rhn.redhat.com/errata/RHSA-2010-0998.html

Comment 5 errata-xmlrpc 2011-06-21 23:53:31 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.0.Z - Server Only

Via RHSA-2011:0883 https://rhn.redhat.com/errata/RHSA-2011-0883.html