* [Bug 49241] New: Unsafe dereference of pointer after allocing memory @ 2012-10-22 9:35 bugzilla-daemon 2013-11-19 22:40 ` [Bug 49241] [PATCH]Unsafe " bugzilla-daemon ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: bugzilla-daemon @ 2012-10-22 9:35 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=49241 Summary: Unsafe dereference of pointer after allocing memory Product: SCSI Drivers Version: 2.5 Kernel Version: 3.0.47 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Other AssignedTo: scsi_drivers-other@kernel-bugs.osdl.org ReportedBy: yangyeping_666@hotmail.com CC: linux-scsi@vger.kernel.org Regression: No Vulnerability kind: Null-pointer dereference The file path containing this vulnerability: drivers/scsi/mac_scsi.c Line number: 290 Severity: medium Code fragment (from line 270 to line 290): instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); #if NDEBUG default_instance = instance; #endif if (macintosh_config->ident == MAC_MODEL_IIFX) { mac_scsi_regp = via1+0x8000; mac_scsi_drq = via1+0xE000; mac_scsi_nodrq = via1+0xC000; /* The IIFX should be able to do true DMA, but pseudo-dma doesn't work */ flags = FLAG_NO_PSEUDO_DMA; } else { mac_scsi_regp = via1+0x10000; mac_scsi_drq = via1+0x6000; mac_scsi_nodrq = via1+0x12000; } if (! setup_use_pdma) flags = FLAG_NO_PSEUDO_DMA; instance->io_port = (unsigned long) mac_scsi_regp; Description: The variable "instance" is defined at line 270 via function "scsi_register" but is not sanity-checked.Then it is dereferenced at line 290. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. You are watching the assignee of the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 49241] [PATCH]Unsafe dereference of pointer after allocing memory 2012-10-22 9:35 [Bug 49241] New: Unsafe dereference of pointer after allocing memory bugzilla-daemon @ 2013-11-19 22:40 ` bugzilla-daemon 2013-11-19 22:41 ` bugzilla-daemon ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2013-11-19 22:40 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=49241 Alan <alan@lxorguk.ukuu.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alan@lxorguk.ukuu.org.uk Summary|Unsafe dereference of |[PATCH]Unsafe dereference |pointer after allocing |of pointer after allocing |memory |memory -- You are receiving this mail because: You are on the CC list for the bug. You are watching the assignee of the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 49241] [PATCH]Unsafe dereference of pointer after allocing memory 2012-10-22 9:35 [Bug 49241] New: Unsafe dereference of pointer after allocing memory bugzilla-daemon 2013-11-19 22:40 ` [Bug 49241] [PATCH]Unsafe " bugzilla-daemon @ 2013-11-19 22:41 ` bugzilla-daemon 2013-11-20 13:50 ` bugzilla-daemon 2013-12-27 18:14 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2013-11-19 22:41 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=49241 Alan <alan@lxorguk.ukuu.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|scsi_drivers-other@kernel-b |alan@lxorguk.ukuu.org.uk |ugs.osdl.org | -- You are receiving this mail because: You are on the CC list for the bug. You are watching the assignee of the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 49241] [PATCH]Unsafe dereference of pointer after allocing memory 2012-10-22 9:35 [Bug 49241] New: Unsafe dereference of pointer after allocing memory bugzilla-daemon 2013-11-19 22:40 ` [Bug 49241] [PATCH]Unsafe " bugzilla-daemon 2013-11-19 22:41 ` bugzilla-daemon @ 2013-11-20 13:50 ` bugzilla-daemon 2013-12-27 18:14 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2013-11-20 13:50 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=49241 Alan <alan@lxorguk.ukuu.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 49241] [PATCH]Unsafe dereference of pointer after allocing memory 2012-10-22 9:35 [Bug 49241] New: Unsafe dereference of pointer after allocing memory bugzilla-daemon ` (2 preceding siblings ...) 2013-11-20 13:50 ` bugzilla-daemon @ 2013-12-27 18:14 ` bugzilla-daemon 3 siblings, 0 replies; 5+ messages in thread From: bugzilla-daemon @ 2013-12-27 18:14 UTC (permalink / raw) To: linux-scsi https://bugzilla.kernel.org/show_bug.cgi?id=49241 Alan <alan@lxorguk.ukuu.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |CODE_FIX -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-27 18:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-22 9:35 [Bug 49241] New: Unsafe dereference of pointer after allocing memory bugzilla-daemon 2013-11-19 22:40 ` [Bug 49241] [PATCH]Unsafe " bugzilla-daemon 2013-11-19 22:41 ` bugzilla-daemon 2013-11-20 13:50 ` bugzilla-daemon 2013-12-27 18:14 ` bugzilla-daemon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).