Bug 955629 (CVE-2013-1979)

Summary: CVE-2013-1979 kernel: net: incorrect SCM_CREDENTIALS passing
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: bhu, esammons, iboverma, jkacur, jlieskov, jrusnack, lgoncalv, mcressma, security-response-team, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=important,public=20130423,reported=20130419,source=researcher,cvss2=6.9/AV:L/AC:M/Au:N/C:C/I:C/A:C,rhel-5/kernel=notaffected,rhel-6/kernel=notaffected,mrg-2/realtime-kernel=affected,fedora-all/kernel=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-24 08:32:56 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 955630, 955631, 955647    
Bug Blocks: 955634    

Description Petr Matousek 2013-04-23 08:30:31 EDT
Commit 257b5358b32f ("scm: Capture the full credentials of the scm sender") changed the credentials passing code to pass in the effective uid/gid instead of the real uid/gid.

Obviously this doesn't matter most of the time (since normally they are the same), but it results in differences for suid binaries when the wrong uid/gid ends up being used. 

An unprivileged local user could use this flaw to elevate their privileges.

Upstream fix:


Red Hat would like to thank Andy Lutomirski for reporting this issue.
Comment 3 Petr Matousek 2013-04-23 08:39:07 EDT

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

This issue was addressed in Red Hat Enterprise MRG 2 via RHSA-2013:0829 https://rhn.redhat.com/errata/RHSA-2013-0829.html
Comment 5 Jan Lieskovsky 2013-04-23 08:53:42 EDT
Other references:
Comment 7 Petr Matousek 2013-04-23 09:04:21 EDT
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 955647]
Comment 8 Fedora Update System 2013-04-26 20:07:18 EDT
kernel-3.8.8-203.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-05-03 20:08:51 EDT
kernel-3.8.11-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 10 errata-xmlrpc 2013-05-20 12:56:27 EDT
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2013:0829 https://rhn.redhat.com/errata/RHSA-2013-0829.html