Bug 1226809

Summary: Overflow in malloc size calculation in VMDK driver
Product: Red Hat Enterprise Linux 7 Reporter: Fam Zheng <famz>
Component: qemu-kvm-rhevAssignee: Fam Zheng <famz>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: hhuang, huding, juzhang, qiguo, rbalakri, rjones, virt-bugs, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: qemu-kvm-rhev-2.3.0-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1217351 Environment:
Last Closed: 2015-12-04 16:43:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1217351    
Bug Blocks: 1218823    

Comment 2 Miroslav Rezanina 2015-06-19 11:09:06 UTC
Fix included in qemu-kvm-rhev-2.3.0-3.el7

Comment 3 Qian Guo 2015-07-01 08:04:16 UTC
Reproduced this bug with qemu-kvm-rhev-2.1.2-23.el7.x86_64

# qemu-img info afl6.img 

# qemu-img info afl6.img 
qemu-img: Could not open 'afl6.img': Could not open 'afl6.img': Cannot allocate memory

So this bug is reproduced.

Verified this bug with qemu-kvm-rhev-2.3.0-6.el7.x86_64

# qemu-img info afl6.img 
qemu-img: Could not open 'afl6.img': Could not read l1 table from extent 'afl6.img': Invalid argument

No overflow occurs, just report it invalid,  so this bug is fixed.

Comment 7 errata-xmlrpc 2015-12-04 16:43:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.