Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
qemu-linux-user.26284
0225-hw-scsi-megasas-check-for-NULL-fram.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0225-hw-scsi-megasas-check-for-NULL-fram.patch of Package qemu-linux-user.26284
From: Mauro Matteo Cascella <mcascell@redhat.com> Date: Thu, 24 Dec 2020 18:54:41 +0100 Subject: hw/scsi/megasas: check for NULL frame in megasas_command_cancelled() Git-commit: 00000000000000000000000000000000000000000000 References: bsc#1180432, CVE-2020-35503 Ensure that 'cmd->frame' is not NULL before accessing the 'header' field. This check prevents a potential NULL pointer dereference issue. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1910346 Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com> Reported-by: Cheolwoo Myung <cwmyung@snu.ac.kr> Acked-By: Jose R Ziviani <jose.ziviani@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 e15043aa73a598d3b36592e7856c..6c9dfafb585ffca81e6c037071d5 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -1881,7 +1881,7 @@ static void megasas_command_cancelled(SCSIRequest *req) { MegasasCmd *cmd = req->hba_private; - if (!cmd) { + if (!cmd || !cmd->frame) { return; } cmd->frame->header.cmd_status = MFI_STAT_SCSI_IO_FAILED;
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