Linux Kernel 3.8 Session Keyring Reference Count process_keys.c join_session_keyring integer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.1$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel 3.8. It has been rated as problematic. This impacts the function join_session_keyring of the file security/keys/process_keys.c of the component Session Keyring Reference Count Handler. This manipulation causes integer overflow. This vulnerability appears as CVE-2016-0728. The attack requires local access. In addition, an exploit is available. Upgrading the affected component is advised.

Detailsinfo

A vulnerability classified as critical was found in Linux Kernel 3.8 (Operating System). Affected by this vulnerability is the function join_session_keyring of the file security/keys/process_keys.c of the component Session Keyring Reference Count Handler. The manipulation with an unknown input leads to a integer overflow vulnerability. The CWE definition for the vulnerability is CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. As an impact it is known to affect confidentiality, integrity, and availability.

The bug was discovered 01/19/2016. The weakness was presented 01/19/2016 with Perception Point Research Team as confirmed advisory (Website). The advisory is shared at perception-point.io. This vulnerability is known as CVE-2016-0728 since 12/16/2015. An attack has to be approached locally. The successful exploitation requires a single authentication. Technical details and also a public exploit are known.

A public exploit has been developed in ANSI C and been published immediately after the advisory. It is possible to download the exploit at gist.github.com. It is declared as attacked. We expect the 0-day to have been worth approximately $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 87991 (Amazon Linux AMI : kernel (ALAS-2016-642)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Amazon Linux Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 157108 (Oracle Enterprise Linux Security Update for Unbreakable Enterprise kernel (ELSA-2016-3510)). The code used by the exploit is:

for (i=0; i<5; ++i) {
    if (keyctl(KEYCTL_JOIN_SESSION_KEYRING, keyring_name) < 0) {
        perror("keyctl");
        return -1;
    }
}

Upgrading eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (109695), Exploit-DB (39277), Zero-Day.cz (304), Tenable (87991) and SecurityFocus (BID 81054†). Additional details are provided at blogs.cisco.com. See VDB-81294 for similar entry. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

Video

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.3
VulDB Meta Temp Score: 8.3

VulDB Base Score: 8.8
VulDB Temp Score: 8.8
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Integer overflow
CWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Attacked
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 87991
Nessus Name: Amazon Linux AMI : kernel (ALAS-2016-642)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 100313
OpenVAS Name: Amazon Linux Local Check: alas-2016-642
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍
Zero-Day.cz: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍

Patch: git.kernel.org
Fortigate IPS: 🔍

Timelineinfo

12/16/2015 🔍
01/11/2016 +26 days 🔍
01/19/2016 +8 days 🔍
01/19/2016 +0 days 🔍
01/19/2016 +0 days 🔍
01/19/2016 +0 days 🔍
01/19/2016 +0 days 🔍
01/20/2016 +1 days 🔍
01/21/2016 +1 days 🔍
01/26/2016 +5 days 🔍
01/27/2016 +1 days 🔍
02/07/2016 +11 days 🔍
07/08/2024 +3073 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: USN-2870-1
Organization: Perception Point Research Team
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-0728 (🔍)
GCVE (CVE): GCVE-0-2016-0728
GCVE (VulDB): GCVE-100-80353
X-Force: 109695 - Linux Kernel keyring privilege escalation
SecurityFocus: 81054 - Linux Kernel CVE-2016-0728 Local Privilege Escalation Vulnerability
SecurityTracker: 1034701
Vulnerability Center: 56182 - Linux Kernel 3.8 - 4.4 Local Privilage Escalation Vulnerability due to Reference Leak in Keyrings Facility, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍

Entryinfo

Created: 01/21/2016 11:19
Updated: 07/08/2024 01:08
Changes: 01/21/2016 11:19 (99), 07/15/2019 16:33 (7), 07/03/2022 19:56 (5), 07/03/2022 20:04 (1), 07/08/2024 01:08 (21)
Complete: 🔍
Cache ID: 216:A8F:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!