cf91b1dfd9
CVE-2016-4952 scsi: pvscsi: out-of-bounds access issue CVE-2016-4964: scsi: mptsas infinite loop (bz #1339157) CVE-2016-5106: scsi: megasas: out-of-bounds write (bz #1339581) CVE-2016-5105: scsi: megasas: stack information leakage (bz #1339585) CVE-2016-5107: scsi: megasas: out-of-bounds read (bz #1339573) CVE-2016-4454: display: vmsvga: out-of-bounds read (bz #1340740) CVE-2016-4453: display: vmsvga: infinite loop (bz #1340744) CVE-2016-5126: block: iscsi: buffer overflow (bz #1340925) CVE-2016-5238: scsi: esp: OOB write (bz #1341932) CVE-2016-5338: scsi: esp: OOB r/w access (bz #1343325) CVE-2016-5337: scsi: megasas: information leakage (bz #1343910) Fix crash with -nodefaults -sdl (bz #1340931) Add deps on edk2-ovmf and edk2-aarch64
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From: Prasad J Pandit <pjp@fedoraproject.org>
|
|
Date: Wed, 25 May 2016 16:01:29 +0530
|
|
Subject: [PATCH] scsi: megasas: use appropriate property buffer size
|
|
|
|
When setting MegaRAID SAS controller properties via MegaRAID
|
|
Firmware Interface(MFI) commands, a user supplied size parameter
|
|
is used to set property value. Use appropriate size value to avoid
|
|
OOB access issues.
|
|
|
|
Reported-by: Li Qiang <liqiang6-s@360.cn>
|
|
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
|
|
Message-Id: <1464172291-2856-2-git-send-email-ppandit@redhat.com>
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit 1b85898025c4cd95dce673d15e67e60e98e91731)
|
|
---
|
|
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 a63a581..dcbd3e1 100644
|
|
--- a/hw/scsi/megasas.c
|
|
+++ b/hw/scsi/megasas.c
|
|
@@ -1446,7 +1446,7 @@ static int megasas_dcmd_set_properties(MegasasState *s, MegasasCmd *cmd)
|
|
dcmd_size);
|
|
return MFI_STAT_INVALID_PARAMETER;
|
|
}
|
|
- dma_buf_write((uint8_t *)&info, cmd->iov_size, &cmd->qsg);
|
|
+ dma_buf_write((uint8_t *)&info, dcmd_size, &cmd->qsg);
|
|
trace_megasas_dcmd_unsupported(cmd->index, cmd->iov_size);
|
|
return MFI_STAT_OK;
|
|
}
|