Bug 1094455 (CVE-2014-0205)

Summary: CVE-2014-0205 kernel: futex: refcount issue in case of requeue
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: agordeev, aquini, carnil, dhoward, dvlasenk, fhrbata, jkurik, kernel-mgr, lwang, mguzik, mickygough, nobody, npajkovs, onestero, pholasek, prarit, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A flaw was found in the way the Linux kernel's futex subsystem handled reference counting when requeuing futexes during futex_wait(). A local, unprivileged user could use this flaw to zero out the reference counter of an inode or an mm struct that backs up the memory area of the futex, which could lead to a use-after-free flaw, resulting in a system crash or, potentially, privilege escalation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-07 11:50:44 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: 1094457, 1094458, 1094459, 1094460, 1094461    
Bug Blocks: 1094463    

Description Petr Matousek 2014-05-05 18:02:25 UTC
A flaw was found in the way the Linux kernel's futex subsystem handled
reference counting in case of futex requeue during futex_wait().

An unprivileged local user could use this flaw to crash the system or,
potentially, escalate their privileges on the system by overputting 
reference counter on either inode or mm that backs up the memory area of
the futex, leading to use-after-free.

References:
https://lkml.org/lkml/2010/9/16/99

Upstream fix:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7ada876a8703f23befbb20a7465a702ee39b1704

Acknowledgements:

The security impact of this issue was discovered by Mateusz Guzik of Red Hat.

Comment 2 Petr Matousek 2014-05-05 18:08:14 UTC
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5 and Red Hat Enterprise MRG-2.

Future Linux kernel updates for Red Hat Enterprise Linux 6 may address this issue.

Comment 5 Martin Prpič 2014-09-05 11:58:18 UTC
IssueDescription:

A flaw was found in the way the Linux kernel's futex subsystem handled reference counting when requeuing futexes during futex_wait(). A local, unprivileged user could use this flaw to zero out the reference counter of an inode or an mm struct that backs up the memory area of the futex, which could lead to a use-after-free flaw, resulting in a system crash or, potentially, privilege escalation.

Comment 6 errata-xmlrpc 2014-09-09 17:56:25 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

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

Comment 7 errata-xmlrpc 2014-10-07 16:31:53 UTC
This issue has been addressed in the following products:

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

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

Comment 8 errata-xmlrpc 2014-10-30 17:22:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6.2 AUS

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