Bug 2179892 (CVE-2023-1513)

Summary: CVE-2023-1513 kernel: KVM: information leak in KVM_GET_DEBUGREGS ioctl on 32-bit systems
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, crwood, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, gcovolo, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, junzhao, jwyatt, kcarcia, kernel-mgr, ldoskova, lgoncalv, lzampier, nanliu, nmurray, ptalbert, qzhao, rogbas, rrobaina, rvrbovsk, rysulliv, scweaver, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in KVM. When calling the KVM_GET_DEBUGREGS ioctl, on 32-bit systems, there might be some uninitialized portions of the kvm_debugregs structure that could be copied to userspace, causing an information leak.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2179894, 2179895, 2179896, 2179897, 2179898    
Bug Blocks: 2169253    

Description Mauro Matteo Cascella 2023-03-20 10:54:03 UTC
When calling the KVM_GET_DEBUGREGS ioctl, on some configurations (32-bit systems), there might be some unitialized portions of the kvm_debugregs structure that could be copied to userspace.

Upstream patch & commit:
https://lore.kernel.org/kvm/20230214103304.3689213-1-gregkh@linuxfoundation.org/
https://github.com/torvalds/linux/commit/2c10b61421a28e95a46ab489fd56c0f442ff6952

Comment 1 Mauro Matteo Cascella 2023-03-20 11:03:30 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2179894]

Comment 4 Justin M. Forbes 2023-03-21 13:07:46 UTC
This was fixed for Fedora with the 6.1.13 stable kernel updates.

Comment 12 errata-xmlrpc 2024-05-22 09:12:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2950 https://access.redhat.com/errata/RHSA-2024:2950

Comment 13 errata-xmlrpc 2024-05-22 09:50:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3138 https://access.redhat.com/errata/RHSA-2024:3138