Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
qemu-linux-user.7445
0211-scsi-initialise-info-object-with-ap.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0211-scsi-initialise-info-object-with-ap.patch of Package qemu-linux-user.7445
From fb4dd809ecaedcca965ca2417c5ac35ef254de96 Mon Sep 17 00:00:00 2001 From: P J P <ppandit@redhat.com> Date: Mon, 21 Dec 2015 15:13:13 +0530 Subject: [PATCH] scsi: initialise info object with appropriate size While processing controller 'CTRL_GET_INFO' command, the routine 'megasas_ctrl_get_info' overflows the '&info' object size. Use its appropriate size to null initialise it. Reported-by: Qinghao Tang <luodalongde@gmail.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-Id: <alpine.LFD.2.20.1512211501420.22471@wniryva> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: P J P <ppandit@redhat.com> (cherry picked from commit 36fef36b91f7ec0435215860f1458b5342ce2811) [BR: BSC#961556 CVE-2015-8613] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/scsi/megasas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index 17815251f7..e7a4d9f1c6 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -676,7 +676,7 @@ static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd) int num_ld_disks = 0; uint16_t sdev_id; - memset(&info, 0x0, cmd->iov_size); + memset(&info, 0x0, dcmd_size); if (cmd->iov_size < dcmd_size) { trace_megasas_dcmd_invalid_xfer_len(cmd->index, cmd->iov_size, dcmd_size);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor