OpenSSH SSH2_MSG_NEWKEYS Message packet.c ssh_packet_read_poll2 null pointer dereference

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

Summaryinfo

A vulnerability described as problematic has been identified in OpenSSH. Affected by this issue is the function ssh_packet_read_poll2 of the file packet.c of the component SSH2_MSG_NEWKEYS Message Handler. The manipulation results in null pointer dereference. No exploit exists. It is advisable to implement a patch to correct this issue.

Detailsinfo

A vulnerability classified as problematic has been found in OpenSSH (Connectivity Software) (unknown version). Affected is the function ssh_packet_read_poll2 of the file packet.c of the component SSH2_MSG_NEWKEYS Message Handler. The manipulation with an unknown input leads to a null pointer dereference vulnerability. CWE is classifying the issue as CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. This is going to have an impact on availability.

The weakness was disclosed 09/21/2016 by Robert Swiecki and honggfuzz as confirmed git commit (GIT Repository). The advisory is shared for download at anongit.mindrot.org. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The reason for this vulnerability is this part of code:

if (*typep == SSH2_MSG_NEWKEYS)
   r = ssh_set_newkeys(ssh, MODE_IN);
else if (*typep == SSH2_MSG_USERAUTH_SUCCESS && !state->server_side)

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

if (*typep == SSH2_MSG_USERAUTH_SUCCESS && !state->server_side)
   r = ssh_packet_enable_delayed_compress(ssh);

The vulnerability is also documented in the vulnerability database at SecurityTracker (ID 1036937†). Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 5.1

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

Exploitinginfo

Class: Null pointer dereference
CWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

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

Patch: anongit.mindrot.org

Timelineinfo

09/21/2016 🔍
09/21/2016 +0 days 🔍
10/04/2016 +13 days 🔍
10/05/2016 +1 days 🔍
05/02/2019 +939 days 🔍

Sourcesinfo

Advisory: anongit.mindrot.org
Researcher: Robert Swiecki, honggfuzz
Status: Confirmed

GCVE (VulDB): GCVE-100-92412
SecurityTracker: 1036937

Entryinfo

Created: 10/05/2016 11:18
Updated: 05/02/2019 07:59
Changes: 10/05/2016 11:18 (45), 05/02/2019 07:59 (4)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!