{"api_version":"1","generated_at":"2026-05-05T10:06:17+00:00","cve":"CVE-2018-12232","urls":{"html":"https://cve.report/CVE-2018-12232","api":"https://cve.report/api/cve/CVE-2018-12232.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-12232","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12232"},"summary":{"title":"CVE-2018-12232","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-06-12 12:29:00","updated_at":"2018-10-31 10:30:00"},"problem_types":["CWE-362"],"metrics":[],"references":[{"url":"http://www.securityfocus.com/bid/104453","name":"104453","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"Linux Kernel CVE-2018-12232 Local Denial of Service Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://usn.ubuntu.com/3752-1/","name":"USN-3752-1","refsource":"UBUNTU","tags":[],"title":"USN-3752-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3752-2/","name":"USN-3752-2","refsource":"UBUNTU","tags":[],"title":"USN-3752-2: Linux kernel (HWE) vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://patchwork.ozlabs.org/patch/926519/","name":"https://patchwork.ozlabs.org/patch/926519/","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"[net] socket: close race condition between sock_close() and sockfs_setattr() - Patchwork","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lkml.org/lkml/2018/6/5/14","name":"https://lkml.org/lkml/2018/6/5/14","refsource":"MISC","tags":["Third Party Advisory"],"title":"LKML: shankarapailoor: general protection fault in sockfs_setattr","mime":"text/xml","httpstatus":"200","archivestatus":"200"},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14","name":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"kernel/git/torvalds/linux.git - Linux kernel source tree","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14","name":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"socket: close race condition between sock_close() and sockfs_setattr() · torvalds/linux@6d8c50d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/3752-3/","name":"USN-3752-3","refsource":"UBUNTU","tags":[],"title":"USN-3752-3: Linux kernel (Azure, GCP, OEM) vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2018:2948","name":"RHSA-2018:2948","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12232","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12232","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"12232","vulnerable":"1","versionEndIncluding":"4.17.1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-12232","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"USN-3752-2","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3752-2/"},{"name":"USN-3752-3","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3752-3/"},{"name":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14","refsource":"MISC","url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14"},{"name":"https://patchwork.ozlabs.org/patch/926519/","refsource":"MISC","url":"https://patchwork.ozlabs.org/patch/926519/"},{"name":"RHSA-2018:2948","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:2948"},{"name":"https://lkml.org/lkml/2018/6/5/14","refsource":"MISC","url":"https://lkml.org/lkml/2018/6/5/14"},{"name":"104453","refsource":"BID","url":"http://www.securityfocus.com/bid/104453"},{"name":"USN-3752-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3752-1/"},{"name":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14","refsource":"MISC","url":"https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14"}]}},"nvd":{"publishedDate":"2018-06-12 12:29:00","lastModifiedDate":"2018-10-31 10:30:00","problem_types":["CWE-362"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:C","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"COMPLETE","baseScore":7.1},"severity":"HIGH","exploitabilityScore":8.6,"impactScore":6.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndIncluding":"4.17.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"12232","Ordinal":"128745","Title":"CVE-2018-12232","CVE":"CVE-2018-12232","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"12232","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"12232","Ordinal":"2","NoteData":"2018-06-12","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"12232","Ordinal":"3","NoteData":"2018-10-31","Type":"Other","Title":"Modified"}]}}}