Linux Kernel up to 4.13.8 SCSI I/O Vector block/bio.c bio_add_pc_page memory corruption

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.2 | $0-$5k | 0.00 |
Summary
A vulnerability identified as critical has been detected in Linux Kernel up to 4.13.8. The affected element is the function bio_add_pc_page of the file block/bio.c of the component SCSI I/O Vector Handler. Performing a manipulation results in memory corruption.
This vulnerability is reported as CVE-2017-12190. The attack requires a local approach. No exploit exists.
Applying a patch is the recommended action to fix this issue.
Details
A vulnerability was found in Linux Kernel up to 4.13.8 (Operating System). It has been classified as critical. This affects the function bio_add_pc_page of the file block/bio.c of the component SCSI I/O Vector Handler. The manipulation with an unknown input leads to a memory corruption vulnerability. CWE is classifying the issue as 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. This is going to have an impact on availability. The summary by CVE is:
The bio_map_user_iov and bio_unmap_user functions in block/bio.c in the Linux kernel before 4.13.8 do unbalanced refcounting when a SCSI I/O vector has small consecutive buffers belonging to the same page. The bio_add_pc_page function merges them into one, but the page reference is never dropped. This causes a memory leak and possible system lockup (exploitable against the host OS by a guest OS user, if a SCSI disk is passed through to a virtual machine) due to an out-of-memory condition.
The bug was discovered 08/01/2017. The weakness was disclosed 11/22/2017 as confirmed git commit (GIT Repository). The advisory is shared at git.kernel.org. This vulnerability is uniquely identified as CVE-2017-12190 since 08/01/2017. An attack has to be approached locally. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available.
The vulnerability was handled as a non-public zero-day exploit for at least 85 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 104158 (Fedora 26 : kernel (2017-c110ac0eb1)), 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 371045 (F5 BIG-IP ASM Multiple Vulnerabilitites (K24578092,K29146534,K51801290,K93472064)).
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 even before and not after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (104158) and SecurityFocus (BID 101911†). The entries VDB-97117, VDB-107859, VDB-107862 and VDB-108798 are pretty similar. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.3VulDB Meta Temp Score: 6.2
VulDB Base Score: 6.2
VulDB Temp Score: 5.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Memory corruptionCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 104158
Nessus Name: Fedora 26 : kernel (2017-c110ac0eb1)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 867773
OpenVAS Name: Fedora Update for kernel FEDORA-2017-cafcdbdde5
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: git.kernel.org
Timeline
08/01/2017 🔍08/01/2017 🔍
09/21/2017 🔍
10/25/2017 🔍
10/26/2017 🔍
11/22/2017 🔍
11/22/2017 🔍
11/23/2017 🔍
01/11/2023 🔍
Sources
Vendor: kernel.orgAdvisory: FEDORA-2017-c110ac0eb1
Researcher: Vitaly Mayatskikh
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2017-12190 (🔍)
GCVE (CVE): GCVE-0-2017-12190
GCVE (VulDB): GCVE-100-109797
SecurityFocus: 101911 - Linux kernel 'block/bio.c' Multiple Local Information Disclosure Vulnerabilities
See also: 🔍
Entry
Created: 11/23/2017 07:41Updated: 01/11/2023 09:08
Changes: 11/23/2017 07:41 (80), 12/09/2019 14:30 (5), 01/24/2021 22:43 (3), 01/11/2023 09:06 (3), 01/11/2023 09:08 (1)
Complete: 🔍
Cache ID: 216:133:103
No comments yet. Languages: en.
Please log in to comment.