Bug 1086730 (CVE-2014-2851)

Summary: CVE-2014-2851 kernel: net: ping: refcount issue in ping_init_sock() function
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, bhu, carnil, davej, dhoward, esammons, fhrbata, gansalmon, iboverma, itamar, jforbes, jkacur, jkurik, jonathan, jross, jscalf, jwboyer, kernel-maint, kernel-mgr, kseifried, lgoncalv, lwang, madhu.chinakonda, matt, mchehab, mcressma, mguzik, mjc, nobody, npajkovs, pholasek, plougher, rt-maint, rvrbovsk, sreber, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=important,public=20140411,reported=20140411,source=redhat,cvss2=6.2/AV:L/AC:H/Au:N/C:C/I:C/A:C,rhel-5/kernel=notaffected,rhel-6/kernel=affected,rhel-7/kernel=affected,mrg-2/realtime-kernel=affected,fedora-all/kernel=affected,rhel-6.4.z/kernel=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A use-after-free flaw was found in the way the ping_init_sock() function of the Linux kernel handled the group_info reference counter. A local, unprivileged user could use this flaw to crash the system or, potentially, escalate their privileges on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 12:32:38 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 1087412, 1087414, 1087415, 1087416, 1087418, 1087419, 1087420, 1087478    
Bug Blocks: 1086734    

Description Petr Matousek 2014-04-11 07:50:15 EDT
A flaw was found in the way ping_init_sock() function handled group_info struct reference counter. Since group_info refcounter is only incremented but never decremented in this codepath, it could lead to refcounter overflow and possibly to use-after-free issue later.

An unprivileged local user could use this flaw to crash the system or, potentially, escalate their privileges on the system.

Upstream patch proposal:
https://lkml.org/lkml/2014/4/10/736
Comment 1 Petr Matousek 2014-04-11 07:52:15 EDT
Statement:

This issue does not affect Linux kernel packages as shipped with Red Hat Enterprise Linux 5.
Comment 5 Petr Matousek 2014-04-14 06:18:28 EDT
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1087420]
Comment 7 Fedora Update System 2014-04-18 11:36:03 EDT
kernel-3.13.10-200.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 9 Fedora Update System 2014-05-05 23:31:39 EDT
kernel-3.13.11-100.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 errata-xmlrpc 2014-05-27 12:27:55 EDT
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2014:0557 https://rhn.redhat.com/errata/RHSA-2014-0557.html
Comment 11 errata-xmlrpc 2014-06-24 11:58:53 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 7

Via RHSA-2014:0786 https://rhn.redhat.com/errata/RHSA-2014-0786.html
Comment 12 errata-xmlrpc 2014-07-29 11:52:44 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:0981 https://rhn.redhat.com/errata/RHSA-2014-0981.html
Comment 13 Martin Prpic 2014-08-25 05:09:55 EDT
IssueDescription:

A use-after-free flaw was found in the way the ping_init_sock() function of the Linux kernel handled the group_info reference counter. A local, unprivileged user could use this flaw to crash the system or, potentially, escalate their privileges on the system.
Comment 14 errata-xmlrpc 2014-08-27 10:01:59 EDT
This issue has been addressed in following products:

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

Via RHSA-2014:1101 https://rhn.redhat.com/errata/RHSA-2014-1101.html
Comment 15 Mark J. Cox (Product Security) 2016-01-05 04:07:16 EST
interesting discussion of exploitability:

https://cyseclabs.com/page?n=02012016