5.9
MEDIUM
CVE-2018-12232
Linux Sock File Descriptor Race Condition Buffer Overflow Vulnerability
Description

In net/socket.c in the Linux kernel through 4.17.1, there is a race condition between fchownat and close in cases where they target the same socket file descriptor, related to the sock_close and sockfs_setattr functions. fchownat does not increment the file descriptor reference count, which allows close to set the socket to NULL during fchownat's execution, leading to a NULL pointer dereference and system crash.

INFO

Published Date :

June 12, 2018, 12:29 p.m.

Last Modified :

Oct. 31, 2018, 10:30 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.2
Public PoC/Exploit Available at Github

CVE-2018-12232 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-12232 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Makefile Go Ragel Yacc

Updated: 3 months, 1 week ago
93 stars 24 fork 24 watcher
Born at : July 12, 2018, 3:43 p.m. This repo has been linked 3 different CVEs too.

memos of experiments, examinations, source reading, ... etc

Mermaid

Updated: 2 months, 1 week ago
225 stars 13 fork 13 watcher
Born at : Jan. 13, 2014, 2:12 p.m. This repo has been linked 5 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-12232 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-12232 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 31, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:2948 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 29, 2018

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/3752-3/ [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 24, 2018

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/3752-2/ [No Types Assigned]
    Added Reference https://usn.ubuntu.com/3752-1/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Aug. 06, 2018

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:N/I:N/A:C)
    Added CVSS V3 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14 No Types Assigned http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14 Patch, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/104453 No Types Assigned http://www.securityfocus.com/bid/104453 Third Party Advisory, VDB Entry
    Changed Reference Type https://lkml.org/lkml/2018/6/5/14 No Types Assigned https://lkml.org/lkml/2018/6/5/14 Third Party Advisory
    Changed Reference Type https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 No Types Assigned https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 Patch, Third Party Advisory
    Changed Reference Type https://patchwork.ozlabs.org/patch/926519/ No Types Assigned https://patchwork.ozlabs.org/patch/926519/ Patch, Third Party Advisory
    Added CWE CWE-362
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (including) 4.17.1
  • CVE Modified by [email protected]

    Jun. 15, 2018

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/104453 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-12232 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2018-12232 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.59 }} -0.01%

score

0.78308

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability