CVE-2018-12232
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 4.14.51-66.38.amzn2 |
| python-perf | Amazon Linux | 4.14.51-66.38.amzn2 |
| kernel-tools-devel | Amazon Linux | 4.14.51-66.38.amzn2 |
| kernel-tools | Amazon Linux | 4.14.51-66.38.amzn2 |
| linux-hwe | Ubuntu:16.04:LTS | 4.15.0-33.36~16.04.1 |
| linux-raspi2 | Ubuntu:18.04:LTS | 4.15.0-1021.23 |
| linux-gcp | Ubuntu:16.04:LTS | 4.15.0-1018.19~16.04.2 |
| linux-aws | Ubuntu:18.04:LTS | 4.15.0-1020.20 |
| linux | Ubuntu:18.04:LTS | 4.15.0-33.36 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/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