Bug 818820 - (CVE-2012-2313) CVE-2012-2313 kernel: unfiltered netdev rio_ioctl access by users
CVE-2012-2313 kernel: unfiltered netdev rio_ioctl access by users
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
public=20120426,reported=20120426,imp...
: Security
Depends On: 818822 818823 818824 818825 818826 818827 818828 869030 869033 869346
Blocks: 818813
  Show dependency treegraph
 
Reported: 2012-05-04 01:38 EDT by Eugene Teo (Security Response)
Modified: 2015-08-19 05:16 EDT (History)
24 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-09-11 07:26:37 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) 2012-05-04 01:38:15 EDT
The dl2k driver's rio_ioctl call has a few issues:
- No permissions checking
- Implements SIOCGMIIREG and SIOCGMIIREG using the SIOCDEVPRIVATE numbers
- Has a few ioctls that may have been used for debugging at one point but have no place in the kernel proper.
    
This patch removes all but the MII ioctls, renumbers them to use the standard ones, and adds the proper permission check for SIOCSMIIREG.
    
We can also get rid of the dl2k-specific struct mii_data in favor of the generic struct mii_ioctl_data.
    
Since we have the phyid on hand, we can add the SIOCGMIIPHY ioctl too.  

Most of the MII code for the driver could probably be converted to use the generic MII library but I don't have a device to test the results.

Upstream commit:
http://git.kernel.org/linus/1bb57e940e1958e40d51f2078f50c3a96a9b2d75

Acknowledgements:

Red Hat would like to thank Stephan Mueller for reporting this issue.
Comment 3 Eugene Teo (Security Response) 2012-05-04 01:45:48 EDT
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 818828]
Comment 4 Fedora Update System 2012-05-08 00:14:35 EDT
kernel-3.3.4-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2012-05-12 21:50:40 EDT
kernel-3.3.5-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 6 Fedora Update System 2012-05-15 19:23:55 EDT
kernel-2.6.43.5-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Petr Matousek 2012-05-16 03:25:58 EDT
This has been assigned CVE-2012-2313 [1].

  [1] http://www.openwall.com/lists/oss-security/2012/05/04/8
Comment 9 errata-xmlrpc 2012-08-21 16:44:44 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:1174 https://rhn.redhat.com/errata/RHSA-2012-1174.html
Comment 10 errata-xmlrpc 2012-09-25 14:59:40 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:1304 https://rhn.redhat.com/errata/RHSA-2012-1304.html
Comment 12 errata-xmlrpc 2012-11-20 17:21:47 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.6 EUS - Server Only

Via RHSA-2012:1481 https://rhn.redhat.com/errata/RHSA-2012-1481.html
Comment 14 errata-xmlrpc 2012-12-04 15:33:31 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.2 EUS - Server Only

Via RHSA-2012:1541 https://rhn.redhat.com/errata/RHSA-2012-1541.html
Comment 15 errata-xmlrpc 2012-12-18 17:22:32 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.1 EUS - Server Only

Via RHSA-2012:1589 https://rhn.redhat.com/errata/RHSA-2012-1589.html
Comment 16 Petr Matousek 2014-09-11 07:26:37 EDT
This issue has been addressed in following products:

  Red Hat Enterprise MRG 2

Via RHSA-2012:1282 https://rhn.redhat.com/errata/RHSA-2012-1282.html

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