Bug 850449 (CVE-2012-3520) - CVE-2012-3520 kernel: af_netlink: invalid handling of SCM_CREDENTIALS passing
Summary: CVE-2012-3520 kernel: af_netlink: invalid handling of SCM_CREDENTIALS passing
Alias: CVE-2012-3520
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 850685 850687 850688
Blocks: 850459
TreeView+ depends on / blocked
Reported: 2012-08-21 15:28 UTC by Petr Matousek
Modified: 2023-05-11 20:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-08-24 14:11:11 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1491 0 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2012-12-05 00:50:25 UTC

Description Petr Matousek 2012-08-21 15:28:07 UTC
A flaw was found in the way Netlink messages without explicitly set SCM_CREDENTIALS were delivered. The kernel passes all-zero SCM_CREDENTIALS ancillary data to the receiver if the sender did not provide such data, instead of including the correct data from the peer (as it is the case with AF_UNIX). Programs that set SO_PASSCRED option on the Netlink socket and rely on SCM_CREDENTIALS for authentication might accept spoofed messages and perform privileged actions on behalf of the unprivileged attacker.

Introduced in:


Red Hat would like to thank Pablo Neira Ayuso for reporting this issue.

Comment 1 Petr Matousek 2012-08-21 15:30:14 UTC

This issue did not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5 and 6 as they did not backport the commit that introduced this issue. Future kernel updates for Red Hat Enterprise MRG 2 may address this issue.

Comment 6 Petr Matousek 2012-08-22 07:16:48 UTC
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 850688]

Comment 8 errata-xmlrpc 2012-12-04 19:58:56 UTC
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2012:1491 https://rhn.redhat.com/errata/RHSA-2012-1491.html

Note You need to log in before you can comment on or make changes to this bug.