Bug 628434 - (CVE-2010-2955) CVE-2010-2955 kernel: wireless: fix 64K kernel heap content leak via ioctl
CVE-2010-2955 kernel: wireless: fix 64K kernel heap content leak via ioctl
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
desktop-bugs@redhat.com
impact=moderate,reported=20100830,pub...
: Security
Depends On: 628435 628436 628437 628438
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-29 23:44 EDT by Eugene Teo (Security Response)
Modified: 2015-08-19 04:53 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-28 04:48:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
bz628434.patch (5.16 KB, patch)
2010-08-30 16:49 EDT, John W. Linville
no flags Details | Diff
jwltest-wireless-extensions-fix-kernel-heap-content-leak.patch (3.04 KB, patch)
2010-08-31 08:51 EDT, John W. Linville
no flags Details | Diff

  None (edit)
Description Eugene Teo (Security Response) 2010-08-29 23:44:29 EDT
Description of problem:
This problem was originally tracked down by Brad Spengler.

When calling wireless ioctls, if a driver does not correctly validate/shrink iwp->length, the resulting copy_to_user can leak up to 64K of kernel heap contents.

It seems that this is triggerable[1] in 2.6.32 at least on ath5k, but I was not able to track down how. The twisty maze of ioctl handlers stumped me. :) Other drivers I checked did not appear to have any problems, but the potential remains. I'm not sure if this patch is the right approach; it was fixed differently[2] in grsecurity.

[1] http://forums.grsecurity.net/viewtopic.php?f=3&t=2290&start=0
[2] http://grsecurity.net/~spender/wireless-infoleak-fix2.patch

Discussion:
http://lkml.org/lkml/2010/8/27/413
Comment 3 John W. Linville 2010-08-30 16:49:55 EDT
Created attachment 442035 [details]
bz628434.patch
Comment 4 Eugene Teo (Security Response) 2010-08-31 03:10:06 EDT
Discussions:
http://lkml.org/lkml/2010/8/27/413
http://lkml.org/lkml/2010/8/30/351
Fix: http://lkml.org/lkml/2010/8/30/146
Comment 5 John W. Linville 2010-08-31 08:51:14 EDT
Created attachment 442177 [details]
jwltest-wireless-extensions-fix-kernel-heap-content-leak.patch
Comment 6 John W. Linville 2010-08-31 08:51:50 EDT
Test kernels w/ above patch are available here:

http://people.redhat.com/linville/kernels/rhel6/
Comment 11 Eugene Teo (Security Response) 2010-10-13 05:09:50 EDT
Statement:

This issue did not affect the version of Linux kernel as shipped with Red Hat Enterprise Linux 3, 4, and 5 as they did not backport the upstream commit 3d23e349 that had introduced the problem. A future update in Red Hat Enterprise MRG may address this flaw.
Comment 12 errata-xmlrpc 2010-10-14 11:30:27 EDT
This issue has been addressed in following products:

  MRG for RHEL-5

Via RHSA-2010:0771 https://rhn.redhat.com/errata/RHSA-2010-0771.html
Comment 13 errata-xmlrpc 2010-11-10 14:07:38 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2010:0842 https://rhn.redhat.com/errata/RHSA-2010-0842.html
Comment 14 errata-xmlrpc 2010-11-22 14:34:25 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2010:0842 https://rhn.redhat.com/errata/RHSA-2010-0842.html

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