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
kernelAmazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-debuginfoAmazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-debuginfo-common-x86_64Amazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-develAmazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-headersAmazon
Fixed in:0:4.14.51-66.38.amzn2
Fixed in:0:4.14.51-66.38.amzn2
kernel-toolsAmazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-tools-debuginfoAmazon
Fixed in:0:4.14.51-66.38.amzn2
kernel-tools-develAmazon
Fixed in:0:4.14.51-66.38.amzn2
perfAmazon
Fixed in:0:4.14.51-66.38.amzn2
perf-debuginfoAmazon
Fixed in:0:4.14.51-66.38.amzn2
python-perfAmazon
Fixed in:0:4.14.51-66.38.amzn2
python-perf-debuginfoAmazon
Fixed in:0:4.14.51-66.38.amzn2
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
linuxUbuntu
Fixed in:4.15.0-33.36USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-awsUbuntu
Fixed in:4.15.0-1020.20USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-azureUbuntu
Fixed in:4.15.0-1022.22~16.04.1USN-3752-3

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:4.15.0-1022.23USN-3752-3

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-gcpUbuntu
Fixed in:4.15.0-1018.19~16.04.2USN-3752-3

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:4.15.0-1018.19USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-hweUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2

This Ubuntu release reached end-of-life on 2021-04-02.

linux-image-4.15.0-1020-awsUbuntu
Fixed in:4.15.0-1020.20USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-1020-kvmUbuntu
Fixed in:4.15.0-1020.20USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-1021-raspi2Ubuntu
Fixed in:4.15.0-1021.23USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-33-genericUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:4.15.0-33.36USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-33-generic-lpaeUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:4.15.0-33.36USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-33-lowlatencyUbuntu
Fixed in:4.15.0-33.36~16.04.1USN-3752-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:4.15.0-33.36USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-image-4.15.0-33-snapdragonUbuntu
Fixed in:4.15.0-33.36USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-kvmUbuntu
Fixed in:4.15.0-1020.20USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-oemUbuntu
Fixed in:4.15.0-1017.20USN-3752-3

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

linux-raspi2Ubuntu
Fixed in:4.15.0-1021.23USN-3752-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

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

6.53%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 28 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 6.5% 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 kernel (Amazon), kernel-debuginfo (Amazon), kernel-debuginfo-common-x86_64 (Amazon), kernel-devel (Amazon), and 24 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>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart 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 2026-06-17.