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.
Created kernel tracking bugs for this issue Affects: fedora-all [bug 818828]
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.
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.
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.
This has been assigned CVE-2012-2313 [1]. [1] http://www.openwall.com/lists/oss-security/2012/05/04/8
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
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
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
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
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
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