Linux Kernel up to 4.10.4 drivers/scsi/sg.c sg_write memory corruption

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

Summaryinfo

A vulnerability labeled as critical has been found in Linux Kernel up to 4.10.4. This vulnerability affects the function sg_write of the file drivers/scsi/sg.c. Executing a manipulation can lead to memory corruption. This vulnerability is tracked as CVE-2017-7187. The attack is restricted to local execution. No exploit exists. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in Linux Kernel up to 4.10.4 (Operating System). It has been declared as critical. This vulnerability affects the function sg_write of the file drivers/scsi/sg.c. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

The sg_ioctl function in drivers/scsi/sg.c in the Linux kernel through 4.10.4 allows local users to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a large command size in an SG_NEXT_CMD_LEN ioctl call, leading to out-of-bounds write access in the sg_write function.

The bug was discovered 03/20/2017. The weakness was disclosed 03/20/2017 with Red Hat (Website). The advisory is shared for download at kernel.org. This vulnerability was named CVE-2017-7187 since 03/20/2017. The attack needs to be approached locally. A single authentication is necessary for exploitation. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 99407 (Fedora 25 : kernel (2017-3a9ec92dd6)), 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 157422 (Oracle Enterprise Linux Security Update for Unbreakable Enterprise kernel (ELSA-2017-3535)).

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

The vulnerability is also documented in the databases at Tenable (99407), SecurityFocus (BID 96989†) and SecurityTracker (ID 1038086†). The entries VDB-75570, VDB-93980, VDB-94739 and VDB-99320 are pretty similar. Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 6.4

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
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: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 99407
Nessus Name: Fedora 25 : kernel (2017-3a9ec92dd6)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for kernel FEDORA-2017-502cf68d68
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Patch: git.kernel.org

Timelineinfo

03/16/2017 🔍
03/20/2017 +4 days 🔍
03/20/2017 +0 days 🔍
03/20/2017 +0 days 🔍
03/20/2017 +0 days 🔍
03/21/2017 +1 days 🔍
03/21/2017 +0 days 🔍
04/14/2017 +24 days 🔍
04/17/2017 +3 days 🔍
11/14/2022 +2037 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: FEDORA-2017-3a9ec92dd6
Organization: Red Hat
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2017-7187 (🔍)
GCVE (CVE): GCVE-0-2017-7187
GCVE (VulDB): GCVE-100-98332
SecurityFocus: 96989 - Linux Kernel CVE-2017-7187 Local Denial of Service Vulnerability
SecurityTracker: 1038086

See also: 🔍

Entryinfo

Created: 03/21/2017 07:26
Updated: 11/14/2022 09:53
Changes: 03/21/2017 07:26 (81), 02/07/2020 06:53 (7), 11/14/2022 09:48 (4), 11/14/2022 09:53 (1)
Complete: 🔍
Cache ID: 216:567: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!