{"id":"CVE-2018-12232","details":"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.","modified":"2026-03-12T22:43:48.109084Z","published":"2018-06-12T12:29:00.210Z","related":["SUSE-SU-2019:0150-1","SUSE-SU-2019:0196-1","SUSE-SU-2019:0222-1","SUSE-SU-2019:0224-1","SUSE-SU-2019:0740-1","openSUSE-SU-2019:0065-1","openSUSE-SU-2024:10728-1","openSUSE-SU-2024:13704-1"],"references":[{"type":"WEB","url":"https://usn.ubuntu.com/3752-1/"},{"type":"WEB","url":"https://usn.ubuntu.com/3752-2/"},{"type":"WEB","url":"https://usn.ubuntu.com/3752-3/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2948"},{"type":"ADVISORY","url":"https://lkml.org/lkml/2018/6/5/14"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/104453"},{"type":"FIX","url":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14"},{"type":"FIX","url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14"},{"type":"FIX","url":"https://patchwork.ozlabs.org/patch/926519/"}],"affected":[{"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"4.17.1"}]}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-12232.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}