CVE-2015-7872: Input Validation

Published Oct 16, 2015
·
Updated

A vulnerability in the Linux kernel's keyrings garbage collector allowing any local user account to trigger a kernel panic.

Problem arrises when using requestkey() 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->typedata.rejecterror to -ENOKEY or some other error code. When the key is garbage collected, the key destroy function is called unconditionally and keyringdestroy() uses listempty() on keyring->typedata.link - which is in a union with rejecterror. Subsequently, the kernel tries to unlink the keyring from the keyring names list, which leads to an oops.

Other sources

The keygcunusedkeys function in security/keys/gc.c in the Linux kernel through 4.2.6 allows local users to cause a denial of service (OOPS) via crafted keyctl commands.

Launchpad

Affected Software

3 affected componentsFixes available
Google Android
Linux Linux Kernel<=4.2.6
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Oct 16, 2015
Data Sourced
via Red Hat·09:35 AM
DescriptionSeverityAffected Software
Nov 16, 2015
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Dec 5, 2016
Data Sourced
via Android·12:00 AM
SeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:12 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:09 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2015-7872?

CVE-2015-7872 is a vulnerability in the Linux kernel that allows local users to cause a denial of service (OOPS) via crafted keyctl commands.

2

What is the severity of CVE-2015-7872?

CVE-2015-7872 has a severity level of high (7 out of 10).

3

How can I fix CVE-2015-7872?

To fix CVE-2015-7872, you should update your Linux kernel to version 4.3~ or higher.

4

Which Linux kernel versions are affected by CVE-2015-7872?

Linux kernel versions up to and including 4.2.6 are affected by CVE-2015-7872.

5

Where can I find more information about CVE-2015-7872?

You can find more information about CVE-2015-7872 on the following websites: [SecurityTracker](http://www.securitytracker.com/id/1034472), [SecurityFocus](http://www.securityfocus.com/bid/77544), [Debian](http://www.debian.org/security/2015/dsa-3396).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203