{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-12232","published":"2018-06-12T12:29:00.210000Z","last_modified":"2026-06-17T01:37:23.680000Z","status":"Modified","cvss":{"version":"3.0","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-362"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_end_including":"4.17.1"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"epss":{"score":0.06179,"percentile":0.94279,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":51,"links":{"html_es":"/es/cve/CVE-2018-12232/","html_en":"/en/cve/CVE-2018-12232/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12232","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-12232"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"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.","affected":[],"references":[{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14","tags":["Patch","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/104453","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2948","tags":[]},{"url":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14","tags":["Patch","Third Party Advisory"]},{"url":"https://lkml.org/lkml/2018/6/5/14","tags":["Third Party Advisory"]},{"url":"https://patchwork.ozlabs.org/patch/926519/","tags":["Patch","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3752-1/","tags":[]},{"url":"https://usn.ubuntu.com/3752-2/","tags":[]},{"url":"https://usn.ubuntu.com/3752-3/","tags":[]}]}}