Bug 969515 (CVE-2013-2851)

Summary: CVE-2013-2851 kernel: block: passing disk names as format strings
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: agordeev, bhu, dhoward, esammons, fhrbata, fweimer, iboverma, jkacur, jlieskov, kernel-mgr, lgoncalv, lwang, mcressma, nobody, plougher, rvrbovsk, security-response-team, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20130606,reported=20130530,source=distros,cvss2=6/AV:L/AC:H/Au:S/C:C/I:C/A:C,rhel-5/kernel=notaffected,rhel-6/kernel=affected,mrg-2/realtime-kernel=affected,fedora-all/kernel=affected,rhel-7/kernel=notaffected,rhel-6.3.z/kernel=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-24 12:59:15 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 971371, 971372, 971373, 971374, 971662, 998408, 998409    
Bug Blocks: 969516    

Description Petr Matousek 2013-05-31 12:13:48 EDT
A flaw was found in the way certain disk names were interpreted by the Linux kernel. 

Block layer uses the "disk_name" field as a format string in a number of places. While this is normally not a problem due to how disk names are created (statically or incrementally), there is currently at least one way to define nearly arbitrary names via md.

A privileged (uid 0) local user could potentially use this flaw to execute code at ring0.

Acknowledgements:

Red Hat would like to thank Kees Cook for reporting this issue.
Comment 3 Petr Matousek 2013-06-06 07:24:21 EDT
Statement:

This issue does not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5.

This issue does affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 6, and Red Hat Enterprise MRG. Future updates for Red Hat Enterprise Linux 6 and Red Hat Enterprise MRG may address this issue.
Comment 6 Petr Matousek 2013-06-07 02:04:20 EDT
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 971662]
Comment 8 Fedora Update System 2013-06-13 02:03:59 EDT
kernel-3.9.5-201.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 9 Fedora Update System 2013-06-14 00:51:47 EDT
kernel-3.9.5-301.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2013-06-30 21:33:41 EDT
kernel-3.9.8-100.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 errata-xmlrpc 2013-09-16 13:05:24 EDT
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2013:1264 https://rhn.redhat.com/errata/RHSA-2013-1264.html
Comment 13 errata-xmlrpc 2013-11-21 13:50:19 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:1645 https://rhn.redhat.com/errata/RHSA-2013-1645.html
Comment 14 errata-xmlrpc 2013-12-05 12:09:51 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.3 EUS - Server and Compute Node Only

Via RHSA-2013:1783 https://rhn.redhat.com/errata/RHSA-2013-1783.html
Comment 15 errata-xmlrpc 2014-03-11 13:07:32 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.4 EUS - Server and Compute Node Only

Via RHSA-2014:0284 https://rhn.redhat.com/errata/RHSA-2014-0284.html