Bug 694021 - (CVE-2011-1494, CVE-2011-1495) CVE-2011-1494 CVE-2011-1495 kernel: drivers/scsi/mpt2sas: prevent heap overflows
CVE-2011-1494 CVE-2011-1495 kernel: drivers/scsi/mpt2sas: prevent heap overflows
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
public=20110405,reported=20110406,sou...
: Security
Depends On: 694022 694023 694024 694526 694527 745793
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-06 05:17 EDT by Eugene Teo (Security Response)
Modified: 2015-07-31 02:39 EDT (History)
16 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 08:33:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Eugene Teo (Security Response) 2011-04-06 05:17:45 EDT
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 11:17:27 EDT
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-07 21:13:57 EDT
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-17 22:49:58 EDT
(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 16:50:03 EDT
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 19:53:06 EDT
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 02:47:01 EDT
(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 15:44:07 EDT
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

Note You need to log in before you can comment on or make changes to this bug.