Bug 694021 (CVE-2011-1494, CVE-2011-1495)

Summary: CVE-2011-1494 CVE-2011-1495 kernel: drivers/scsi/mpt2sas: prevent heap overflows
Product: [Other] Security Response Reporter: Eugene Teo (Security Response) <eteo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: arozansk, bhu, bressers, dhoward, grocha, jkacur, kernel-mgr, kmcmartin, lgoncalv, lwang, pmatouse, pneedle, rt-maint, sforsber, tcallawa, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 12:33:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 694022, 694023, 694024, 694526, 694527, 745793    
Bug Blocks:    

Description Eugene Teo (Security Response) 2011-04-06 09:17:45 UTC
At two points in handling device ioctls via /dev/mpt2ctl, user-supplied length values are used to copy data from userspace into heap buffers without bounds checking, allowing controllable heap corruption and subsequently privilege escalation.

Additionally, user-supplied values are used to determine the size of a copy_to_user() as well as the offset into the buffer to be read, with no bounds checking, allowing users to read arbitrary kernel memory.

Compile-tested only.  Thanks to Eric Moore for suggestions on how to fix this.

Acknowledgements:

Red Hat would like to thank Dan Rosenberg for reporting this issue.

Comment 5 Eugene Teo (Security Response) 2011-04-07 15:17:27 UTC
Statement:

This issue did not affect the version of Linux kernel as shipped with Red Hat
Enterprise Linux 4 as it did not provide support for MPT (Message Passing
Technology) based controllers. This has been addressed in Red Hat Enterprise Linux 5, 6, and Red Hat Enterprise MRG via https://rhn.redhat.com/errata/RHSA-2011-0833.html, and https://rhn.redhat.com/errata/RHSA-2011-0542.html, and https://rhn.redhat.com/errata/RHSA-2011-1253.html.

Comment 6 Eugene Teo (Security Response) 2011-04-08 01:13:57 UTC
I saw a couple versions of the fixes for this. Please wait for akpm to update -mm with Dan's version before backporting.

Comment 7 Eugene Teo (Security Response) 2011-04-18 02:49:58 UTC
(In reply to comment #6)
> I saw a couple versions of the fixes for this. Please wait for akpm to update
> -mm with Dan's version before backporting.

http://marc.info/?l=linux-scsi&m=130202237006310&w=2

Comment 9 errata-xmlrpc 2011-05-23 20:50:03 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:0542 https://rhn.redhat.com/errata/RHSA-2011-0542.html

Comment 11 errata-xmlrpc 2011-06-21 23:53:06 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.0.Z - Server Only

Via RHSA-2011:0883 https://rhn.redhat.com/errata/RHSA-2011-0883.html

Comment 12 Eugene Teo (Security Response) 2011-07-19 06:47:01 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > I saw a couple versions of the fixes for this. Please wait for akpm to update
> > -mm with Dan's version before backporting.
> 
> http://marc.info/?l=linux-scsi&m=130202237006310&w=2

Upstream commit:
http://git.kernel.org/linus/a1f74ae82d133ebb2aabb19d181944b4e83e9960

Comment 13 errata-xmlrpc 2011-09-12 19:44:07 UTC
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2011:1253 https://rhn.redhat.com/errata/RHSA-2011-1253.html