Vulnerability in Linux Kernel
CVE-2018-12232
- CVSS v3
- 5.9 Medium
- Public exploits
- None known
- EPSS
- 0.063 · 93.7th percentile
- Published
- 2018-06-12
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.063, 93.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (hiboma/hiboma, shankarapailoor/moonshine). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- USN-3752-2 (vendor-advisory)
- USN-3752-3 (vendor-advisory)
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Third Party Advisory)
- patchwork.ozlabs.org/patch/926519/ (Patch, Third Party Advisory)
- RHSA-2018:2948 (vendor-advisory)
- lkml.org/lkml/2018/6/5/14 (Third Party Advisory)
- www.securityfocus.com/bid/104453 (Third Party Advisory, VDB Entry, vdb-entry)
- USN-3752-1 (vendor-advisory)
- github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 (Patch, Third Party Advisory)