{"id":"CVE-2018-12232","published":"2018-06-12T12:00:00Z","modified":"2024-08-05T08:30:59Z","title":"In net/socket.c in the Linux kernel through 4.17.1, there is a race condition between fchownat and close in cases…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06179,"percentile":0.93665,"provenance":"source"},"cwes":[],"references":[{"url":"https://usn.ubuntu.com/3752-2/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://usn.ubuntu.com/3752-3/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14","tags":["x_refsource_MISC"]},{"url":"https://patchwork.ozlabs.org/patch/926519/","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2948","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lkml.org/lkml/2018/6/5/14","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/104453","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://usn.ubuntu.com/3752-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":18.73}]},"summary":{"text":"The Linux kernel through 4.17.1 has a race condition in net/socket.c, between the fchownat and close operations on the same socket file descriptor, involving the sock_close and sockfs_setattr functions. An attacker who can run local code concurrently against a socket can trigger a NULL pointer dereference by racing close against fchownat, since fchownat does not hold a reference to the descriptor, causing a system crash.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:02:47Z"},"euvd":{"id":"EUVD-2018-4210","exploited":false,"provenance":"source"}}