Bug 1428353 - (CVE-2017-2647) CVE-2017-2647 kernel: Null pointer dereference in search_keyring
CVE-2017-2647 kernel: Null pointer dereference in search_keyring
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20170321,repo...
: Security
Depends On: 1427994 1433218 1433220 1433221 1433222 1433216 1433217 1433219
Blocks: 1428357
  Show dependency treegraph
 
Reported: 2017-03-02 07:08 EST by Adam Mariš
Modified: 2017-08-13 22:28 EDT (History)
47 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found that can be triggered in keyring_search_iterator in keyring.c if type->match is NULL. A local user could use this flaw to crash the system or, potentially, escalate their privileges.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1.22 KB, patch)
2017-03-02 07:10 EST, Adam Mariš
no flags Details | Diff

  None (edit)
Description Adam Mariš 2017-03-02 07:08:58 EST
A null pointer dereference vulnerability that can be triggered in keyring_search_iterator in keyring.c if type->match is NULL by unprivileged local user was found.  It is possible that an attacker could crash the system or escalate privileges using this vulnerability.

Fixed in upstream:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c06cfb08b88d
Comment 1 Adam Mariš 2017-03-02 07:09:10 EST
Acknowledgments:

Name: Igor Redko (Virtuozzo), Andrey Ryabinin (Virtuozzo)
Comment 2 Adam Mariš 2017-03-02 07:10 EST
Created attachment 1259126 [details]
Proposed patch
Comment 4 Wade Mealing 2017-03-17 01:50:53 EDT
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5 as the code which can trigger the flaw is not present in the products listed.

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 6, 7 and MRG-2. Future Linux kernel updates for the respective releases might address this issue.
Comment 9 Ben Hutchings 2017-04-01 00:06:22 EDT
This seems to be the same issue as CVE-2017-6951. Is there really any difference between the two?
Comment 11 Adam Mariš 2017-04-03 09:59:24 EDT
(In reply to Ben Hutchings from comment #9)
> This seems to be the same issue as CVE-2017-6951. Is there really any
> difference between the two?

We haven't fully analyzed CVE-2017-6951 yet. We'll do so soon.
Comment 19 Wade Mealing 2017-04-23 03:12:09 EDT
Re:  Ben Hutchings

They do appear to be the same flaw, this issue in Red Hat Enterprise Linux 7 seem to have a greater impact (RIP modification).  EL6 doesn't has the same privesc capability with the reproducer that I have, it doesn't mean it can't be tricked into privesc.

It looks as though the fix for EL6 fixes both CVE's.  I'm going to mark both as fixed in the same errata.  I will continue my investigation on Wednesday to confirm this.

At this time Red Hat is not interested in correcting the double allocation.  The end user shouldn't be affected.
Comment 20 Wade Mealing 2017-07-02 22:38:11 EDT
Well, after investigating both.  I'm going to call it a different flaw.

The fix propsed by David does solve both issues.
Comment 22 errata-xmlrpc 2017-08-01 15:13:30 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2077 https://access.redhat.com/errata/RHSA-2017:2077
Comment 23 errata-xmlrpc 2017-08-02 03:53:40 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1842 https://access.redhat.com/errata/RHSA-2017:1842
Comment 24 errata-xmlrpc 2017-08-08 12:20:42 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.3 Extended Update Support

Via RHSA-2017:2437 https://access.redhat.com/errata/RHSA-2017:2437
Comment 25 errata-xmlrpc 2017-08-08 14:57:54 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

Via RHSA-2017:2444 https://access.redhat.com/errata/RHSA-2017:2444

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