Linux Kernel up to 4.6.3 security/keys/key.c key_reject_and_link use after free

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.
5.2$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 4.6.3. It has been declared as problematic. Affected by this vulnerability is the function key_reject_and_link of the file security/keys/key.c. The manipulation results in use after free. This vulnerability is cataloged as CVE-2016-4470. The attack must be initiated from a local position. Furthermore, there is an exploit available. It is best practice to apply a patch to resolve this issue.

Detailsinfo

A vulnerability, which was classified as problematic, was found in Linux Kernel up to 4.6.3 (Operating System). Affected is the function key_reject_and_link of the file security/keys/key.c. The manipulation with an unknown input leads to a use after free vulnerability. CWE is classifying the issue as CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. This is going to have an impact on availability. CVE summarizes:

The key_reject_and_link function in security/keys/key.c in the Linux kernel through 4.6.3 does not ensure that a certain data structure is initialized, which allows local users to cause a denial of service (system crash) via vectors involving a crafted keyctl request2 command.

The weakness was shared 06/15/2016 (oss-sec). The advisory is available at openwall.com. This vulnerability is traded as CVE-2016-4470 since 05/02/2016. The exploitability is told to be easy. Local access is required to approach this attack. Required for exploitation is a authentication. Technical details and a public exploit are known. The reason for this vulnerability is this part of code:

if (keyring)

A public exploit has been developed in Bash. The exploit is shared for download at git.kernel.org. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 92232 (Fedora 24 : kernel (2016-1c409313f4)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 157314 (Oracle Enterprise Linux Security Update for kernel (ELSA-2016-2574)-Deprecated). The advisory illustrates:

The bug can be triggered using option (3) above using something like the following: echo 80 >/proc/sys/kernel/keys/root_maxbytes; keyctl request2 user debug:fred negate @t

Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. A possible mitigation has been published 2 days after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:

if (keyring && link_ret == 0)

The vulnerability is also documented in the databases at Tenable (92232) and SecurityFocus (BID 76005†). The entries VDB-77497, VDB-79923, VDB-82951 and VDB-82953 are related to this item. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.5
VulDB Meta Temp Score: 5.2

VulDB Base Score: 5.5
VulDB Temp Score: 5.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Use after free
CWE: CWE-416 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 92232
Nessus Name: Fedora 24 : kernel (2016-1c409313f4)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 14611
OpenVAS Name: Amazon Linux Local Check: alas-2016-726
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

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

Patch: git.kernel.org

Timelineinfo

05/02/2016 🔍
06/15/2016 +44 days 🔍
06/17/2016 +2 days 🔍
06/27/2016 +10 days 🔍
06/29/2016 +2 days 🔍
07/15/2016 +16 days 🔍
08/25/2022 +2232 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: FEDORA-2016-1c409313f4
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-4470 (🔍)
GCVE (CVE): GCVE-0-2016-4470
GCVE (VulDB): GCVE-100-88374

OVAL: 🔍

SecurityFocus: 76005
SecurityTracker: 1036763

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

Entryinfo

Created: 06/29/2016 11:21
Updated: 08/25/2022 12:27
Changes: 06/29/2016 11:21 (72), 02/12/2019 10:35 (15), 08/25/2022 12:13 (5), 08/25/2022 12:20 (1), 08/25/2022 12:27 (1)
Complete: 🔍
Cache ID: 216:6BC:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!