CVE-2018-5873: Linux Kernel - Use After Free
- Cve: CVE-2018-5873
- Name: Linux Kernel - Use After Free
- Description: An issue was discovered in the __ns_get_path function in fs/nsfs.c in the Linux kernel before 4.11. Due to a race condition when accessing files, a Use After Free condition can occur. This also affects all Android releases from CAF using the Linux kernel (Android for MSM, Firefox OS for MSM, QRD Android) before security patch level 2018-07-05.
- Impact: Local attackers can potentially execute arbitrary code or cause system crashes due to use after free condition.
- Remediation: Update to Linux kernel version 4.11 or later, or apply the latest security patches for affected Android releases.
- Vulnerability type: use_after_free
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirements: Attacker needs race condition during file access
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00504
- Epss percentile: 0.43953
- Assignee: [email protected]
- Published at: 2018-07-06T19:29:01Z
- Age in days: 3063
- Modified at: 2026-06-17T02:00:56Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-5873
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Trinadh465/linux-4.1.15_CVE-2018-5873 | poc-in-github | 2023-08-16 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073c516ff73557a8f7315066856c04b50383ac34 | Patch, Third Party Advisory |
| https://github.com/torvalds/linux/commit/073c516ff73557a8f7315066856c04b50383ac34 | Patch, Third Party Advisory |
| https://source.android.com/security/bulletin/2018-07-01 | Vendor Advisory |
| https://source.codeaurora.org/quic/la/kernel/msm-4.9/commit/?id=34742aaf7cb16c95edba4a7afed6d2c4fa7e434b | Third Party Advisory |
| https://www.codeaurora.org/security-bulletin/2018/07/02/july-2018-code-aurora-security-bulletin | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | >= 4.10, < 4.11; >= 4.5, < 4.9.82; >= 4.2, < 4.4.116; >= 3.19, < 4.1.50 | no | nvd | /v1/products/linux/linux_kernel |
| google:android | all versions | no | nvd | /v1/products/google/android |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-08-16
- Authentication required: yes
- Exposed hosts: 9997488
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports