Linux Kernel up to 4.13.5 fork fs/userfaultfd.c userfaultfd_ctx_put use after free
![Linux](/logos/linux.jpg)
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
6.7 | $0-$5k | 0.00 |
A vulnerability was found in Linux Kernel up to 4.13.5 (Operating System). It has been classified as critical. This affects the function userfaultfd_ctx_put
of the file fs/userfaultfd.c of the component fork Handler. 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 confidentiality, integrity, and availability. The summary by CVE is:
A use-after-free flaw was found in fs/userfaultfd.c in the Linux kernel before 4.13.6. The issue is related to the handling of fork failure when dealing with event messages. Failure to fork correctly can lead to a situation where a fork event will be removed from an already freed list of events with userfaultfd_ctx_put().
The bug was discovered 10/03/2017. The weakness was published 01/14/2018 (Website). The advisory is shared at git.kernel.org. This vulnerability is uniquely identified as CVE-2017-15126 since 10/08/2017. It is possible to initiate the attack remotely. 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 103 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 109380 (CentOS 7 : kernel (CESA-2018:1062)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CentOS Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 236711 (Red Hat Update for kernel-rt (RHSA-2018:0676)).
Upgrading to version 4.13.6 eliminates this vulnerability. A possible mitigation has been published 4 months after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (109380) and SecurityFocus (BID 102516†).
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.8VulDB Meta Temp Score: 6.7
VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 8.1
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: Use after freeCWE: CWE-416 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Local: No
Remote: Yes
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: 109380
Nessus Name: CentOS 7 : kernel (CESA-2018:1062)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: Kernel 4.13.6
Patch: git.kernel.org
Timeline
10/03/2017 🔍10/08/2017 🔍
12/05/2017 🔍
01/14/2018 🔍
01/14/2018 🔍
01/15/2018 🔍
04/27/2018 🔍
04/27/2018 🔍
01/20/2023 🔍
Sources
Vendor: kernel.orgAdvisory: RHSA-2018:1062
Status: Not defined
CVE: CVE-2017-15126 (🔍)
SecurityFocus: 102516 - Linux Kernel 'fs/userfaultfd.c' Local Use After Free Memory Corruption Vulnerability
Entry
Created: 01/15/2018 11:20Updated: 01/20/2023 19:41
Changes: 01/15/2018 11:20 (76), 12/23/2019 14:46 (4), 01/20/2023 19:34 (5), 01/20/2023 19:41 (1)
Complete: 🔍
Cache ID: 3:4A8:103
No comments yet. Languages: en.
Please log in to comment.