Bug 679925 (CVE-2011-1013)

Summary: CVE-2011-1013 kernel: drm_modeset_ctl signedness issue
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: airlied, arozansk, bhu, davej, dhoward, jkacur, kernel-mgr, kmcmartin, lgoncalv, lwang, rt-maint, security-response-team, tcallawa, 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: Environment:
Last Closed: 2013-03-26 15:57:31 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: 679927, 679928, 679929    
Bug Blocks:    
Attachments:
Description Flags
OpenBSD proposed patch
none
Linux proposed patch none

Description Petr Matousek 2011-02-23 21:21:40 UTC
Description:
It has been found that drm_modeset_ctl() did not properly validate input parameters. The issue is that the crtc variable there is signed. So a large enough value passed in the modeset parameter structure will be treated as negative, escaping the check for proper range later. This variable is later used as an index variable effectively allowing out of bounds writes of zero integers.

Comment 3 Petr Matousek 2011-02-23 21:24:51 UTC
Created attachment 480579 [details]
OpenBSD proposed patch

Comment 4 Petr Matousek 2011-02-23 21:29:09 UTC
Statement:

This issue did not affect the versions of the Linux kernel as shipped with Red
Hat Enterprise Linux 4, 5 as they did not include the affected functionality. A future update in Red Hat Enterprise Linux 6 and Red Hat Enterprise MRG may address this flaw.

Comment 6 Petr Matousek 2011-02-23 22:47:09 UTC
Created attachment 480596 [details]
Linux proposed patch

Comment 9 Petr Matousek 2011-04-11 08:55:06 UTC
Upstream commit:
http://git.kernel.org/linus/1922756124ddd53846877416d92ba4a802bc658f

Comment 11 errata-xmlrpc 2011-05-10 17:20:30 UTC
This issue has been addressed in following products:

  MRG for RHEL-5

Via RHSA-2011:0500 https://rhn.redhat.com/errata/RHSA-2011-0500.html

Comment 12 errata-xmlrpc 2011-05-10 18:11:36 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:0498 https://rhn.redhat.com/errata/RHSA-2011-0498.html