CVE-2018-12232

Summary

CVECVE-2018-12232
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-06-12 12:29:00 UTC
Updated2018-10-31 10:30:00 UTC
DescriptionIn 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.

Risk And Classification

Problem Types: CWE-362

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

References

ReferenceSourceLinkTags
Linux Kernel CVE-2018-12232 Local Denial of Service Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
USN-3752-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu UBUNTU usn.ubuntu.com
USN-3752-2: Linux kernel (HWE) vulnerabilities | Ubuntu security notices | Ubuntu UBUNTU usn.ubuntu.com
[net] socket: close race condition between sock_close() and sockfs_setattr() - Patchwork MISC patchwork.ozlabs.org Patch, Third Party Advisory
LKML: shankarapailoor: general protection fault in sockfs_setattr MISC lkml.org Third Party Advisory
kernel/git/torvalds/linux.git - Linux kernel source tree MISC git.kernel.org Patch, Third Party Advisory
socket: close race condition between sock_close() and sockfs_setattr() · torvalds/linux@6d8c50d · GitHub MISC github.com Patch, Third Party Advisory
USN-3752-3: Linux kernel (Azure, GCP, OEM) vulnerabilities | Ubuntu security notices | Ubuntu UBUNTU usn.ubuntu.com
Red Hat Customer Portal REDHAT access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report