Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1272371 - (CVE-2015-7872) CVE-2015-7872 kernel: Keyrings crash triggerable by unprivileged user
CVE-2015-7872 kernel: Keyrings crash triggerable by unprivileged user
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=20151012,repo...
: Security
Depends On: 1272172 1273463 1273465 1275926 1275927 1275928 1275929 1275930 1275931 1275932 1275933 1275934 1291660
Blocks: 1272373
  Show dependency treegraph
 
Reported: 2015-10-16 05:35 EDT by Adam Mariš
Modified: 2018-08-28 18:00 EDT (History)
40 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was found that the Linux kernel's keys subsystem did not correctly garbage collect uninstantiated keyrings. A local attacker could use this flaw to crash the system or, potentially, escalate their privileges on the system.
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2636 normal SHIPPED_LIVE Important: kernel security and bug fix update 2015-12-15 13:57:46 EST
Red Hat Product Errata RHSA-2016:0185 normal SHIPPED_LIVE Important: kernel security and bug fix update 2016-02-16 11:15:39 EST
Red Hat Product Errata RHSA-2016:0212 normal SHIPPED_LIVE Important: kernel-rt security, bug fix, and enhancement update 2016-02-16 10:46:40 EST
Red Hat Product Errata RHSA-2016:0224 normal SHIPPED_LIVE Important: kernel-rt security, bug fix, and enhancement update 2016-02-16 14:59:08 EST

  None (edit)
Description Adam Mariš 2015-10-16 05:35:42 EDT
A vulnerability in the Linux kernel's keyrings garbage collector allowing any local user account to trigger a kernel panic.

Problem arrises when using request_key() or keyctl request2.

This code sequence tries to invoke an upcall to instantiate a keyring if one doesn't already exist by that name within the user's keyring set. However, if the upcall fails, the code sets keyring->type_data.reject_error to -ENOKEY or some other error code.  When the key is garbage collected, the key destroy function is called unconditionally and keyring_destroy() uses list_empty() on keyring->type_data.link - which is in a union with reject_error. Subsequently, the kernel tries to unlink the keyring from the keyring names list, which leads to an oops.
Comment 2 Adam Mariš 2015-10-20 07:43:54 EDT
CVE request:

http://seclists.org/oss-sec/2015/q4/111
Comment 4 Wade Mealing 2015-10-30 01:41:58 EDT
Statement:

This issue affects the Linux kernels as shipped with Red Hat Enterprise Linux 6 , 7 and Red Hat MRG 2. Future updates for the respective releases may address this flaw.
Comment 10 errata-xmlrpc 2015-12-15 08:59:25 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:2636 https://rhn.redhat.com/errata/RHSA-2015-2636.html
Comment 12 errata-xmlrpc 2016-02-16 05:48:55 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2016:0212 https://rhn.redhat.com/errata/RHSA-2016-0212.html
Comment 13 errata-xmlrpc 2016-02-16 06:19:17 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2016:0185 https://rhn.redhat.com/errata/RHSA-2016-0185.html
Comment 14 errata-xmlrpc 2016-02-16 10:05:22 EST
This issue has been addressed in the following products:

  MRG for RHEL-6 v.2

Via RHSA-2016:0224 https://rhn.redhat.com/errata/RHSA-2016-0224.html

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