VDB

CVE-2018-12232

CVE-2018-12232 PUBLISHED

Reported by mitre · Published June 12, 2018

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-develAmazon Linux4.14.51-66.38.amzn2
python-perfAmazon Linux4.14.51-66.38.amzn2
kernel-tools-develAmazon Linux4.14.51-66.38.amzn2
kernel-toolsAmazon Linux4.14.51-66.38.amzn2
linux-hweUbuntu:16.04:LTS4.15.0-33.36~16.04.1
linux-raspi2Ubuntu:18.04:LTS4.15.0-1021.23
linux-gcpUbuntu:16.04:LTS4.15.0-1018.19~16.04.2
linux-awsUbuntu:18.04:LTS4.15.0-1020.20
linuxUbuntu:18.04:LTS4.15.0-33.36

Affected products

VendorProductVersions
n/an/an/a
n/an/a*

Timeline

  • Jun 12, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 8, 2025 CVE Updated
  • Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (6 in total, the first dated here)
  • Sep 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-12232
vulnetix vdb fixes CVE-2018-12232

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-12232/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • USN-3752-2 vendor-advisoryx_refsource_UBUNTU
  • USN-3752-3 vendor-advisoryx_refsource_UBUNTU
  • x_refsource_MISC
  • x_refsource_MISC
  • RHSA-2018:2948 vendor-advisoryx_refsource_REDHAT
  • x_refsource_MISC
  • 104453 vdb-entryx_refsource_BID
  • USN-3752-1 vendor-advisoryx_refsource_UBUNTU
  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›