Bug 529597 (CVE-2009-3620)

Summary: CVE-2009-3620 kernel: r128 IOCTL NULL pointer dereferences when CCE state is uninitialised
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: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: bhu, davej, dhoward, jkacur, jolsa, jpirko, jskrabal, kyle, lgoncalv, ltroan, lwang, pmatouse, tcallawa, vgoyal, 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:
: 531630 (view as bug list) Environment:
Last Closed: 2012-03-28 08:08:42 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: 529598, 529599, 529600, 529601, 529602, 529603, 531630, 537299    
Bug Blocks:    

Description Eugene Teo (Security Response) 2009-10-19 04:52:04 UTC
Quoting from the upstream commit:
Almost all r128's private ioctls require that the CCE state has already been initialised.  However, most do not test that this has been done, and will proceed to dereference a null pointer.  This may result in a security vulnerability, since some ioctls are unprivileged.

This adds a macro for the common initialisation test and changes all ioctl implementations that require prior initialisation to use that macro.

Also, r128_do_init_cce() does not test that the CCE state has not been initialised already.  Repeated initialisation may lead to a crash or resource leak.  This adds that test.

http://git.kernel.org/linus/7dc482dfeeeefcfd000d4271c4626937406756d7

Other references:
http://secunia.com/advisories/36707/

Comment 3 errata-xmlrpc 2009-11-03 18:21:21 UTC
This issue has been addressed in following products:

  MRG for RHEL-5

Via RHSA-2009:1540 https://rhn.redhat.com/errata/RHSA-2009-1540.html

Comment 4 Fedora Update System 2009-11-05 05:14:49 UTC
kernel-2.6.27.38-170.2.113.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/kernel-2.6.27.38-170.2.113.fc10

Comment 5 Fedora Update System 2009-11-06 00:05:05 UTC
kernel-2.6.27.38-170.2.113.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 errata-xmlrpc 2009-12-15 17:18:26 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2009:1671 https://rhn.redhat.com/errata/RHSA-2009-1671.html

Comment 8 errata-xmlrpc 2009-12-15 17:19:04 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:1670 https://rhn.redhat.com/errata/RHSA-2009-1670.html

Comment 12 errata-xmlrpc 2010-11-12 09:37:08 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3 Extended Lifecycle Support

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