CVE & CISA-KEV Catalog

CVE-2018-12232

MEDIUMEPSS 93th pctl
5.9
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:4.17.3-1CVE-2018-12232
Fixed in:4.17.3-1CVE-2018-12232
Fixed in:4.17.3-1CVE-2018-12232
Fixed in:4.17.3-1CVE-2018-12232
linuxUbuntu
Fixed in:4.15.0-33.36USN-3752-1
linux-awsUbuntu
Fixed in:4.15.0-1020.20USN-3752-1
linux-azureUbuntu
Fixed in:4.15.0-1022.22~16.04.1USN-3752-3
Fixed in:4.15.0-1022.23USN-3752-3
linux-gcpUbuntu
Fixed in:4.15.0-1018.19~16.04.2USN-3752-3
Fixed in:4.15.0-1018.19USN-3752-1
linux-hweUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2
linux-image-4.15.0-1020-awsUbuntu
Fixed in:4.15.0-1020.20USN-3752-1
linux-image-4.15.0-1020-kvmUbuntu
Fixed in:4.15.0-1020.20USN-3752-1
linux-image-4.15.0-1021-raspi2Ubuntu
Fixed in:4.15.0-1021.23USN-3752-1
linux-image-4.15.0-33-genericUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2
Fixed in:4.15.0-33.36USN-3752-1
linux-image-4.15.0-33-generic-lpaeUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2
Fixed in:4.15.0-33.36USN-3752-1
linux-image-4.15.0-33-lowlatencyUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2
Fixed in:4.15.0-33.36USN-3752-1
linux-image-4.15.0-33-snapdragonUbuntu
Fixed in:4.15.0-33.36USN-3752-1
linux-kvmUbuntu
Fixed in:4.15.0-1020.20USN-3752-1
linux-oemUbuntu
Fixed in:4.15.0-1017.20USN-3752-3
linux-raspi2Ubuntu
Fixed in:4.15.0-1021.23USN-3752-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

5.74%probability of exploitation in 30 days
93rdpercentile

High risk: more likely to be exploited than 93% of all known CVEs.

References

Related Vulnerabilities

Other CWE-362 (Race Condition) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-6387High8.1100%-Fix
CVE-2023-36884High7.599%KEV + RansomFix
CVE-2018-15473Medium5.399%-Fix
CVE-2024-27983High8.287%-Fix
CVE-2014-0226Medium6.886%-Fix
CVE-2016-5195High7.084%KEVFix

Common questions

How do I fix CVE-2018-12232?

Published advisories record a fix for 16 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2018-12232 being actively exploited?

Not that we know of. CVE-2018-12232 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 5.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 93% of all scored CVEs.

How severe is CVE-2018-12232?

CVE-2018-12232 has a CVSS v3 base score of 5.9, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2018-12232 affect?

Published advisories record a fix for linux (Debian), linux (Ubuntu), linux-aws (Ubuntu), linux-azure (Ubuntu), and 12 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2018-12232
CVE-2018-12232 severity badge

Markdown

[![CVE-2018-12232](https://tridentstack.com/cve/badge/CVE-2018-12232.svg)](https://tridentstack.com/cve/CVE-2018-12232)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-12232"><img src="https://tridentstack.com/cve/badge/CVE-2018-12232.svg" alt="CVE-2018-12232"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.