Vulnerabilities · 2018 · Linux
CVE-2018-12232
Linux Kernel vulnerability
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 products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea6 · Patch
- github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 · Patch
- patchwork.ozlabs.org/patch/926519/ · Patch
- www.securityfocus.com/bid/104453 · Third Party Advisory
- lkml.org/lkml/2018/6/5/14 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:2948
- usn.ubuntu.com/3752-1/
- usn.ubuntu.com/3752-2/
- nvd.nist.gov/vuln/detail/CVE-2018-12232
- cve.org/CVERecord?id=CVE-2018-12232
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.