Live threats

All CVEs / Linux

CVE-2018-12232Linux Kernel

Medium 5.9 No auth needed

Priority
51
CVSS 3.0
5.9
EPSS
6.2%
probability of exploitation in 30 days · percentile 94
Auth required
No
Published
Jun 12, 2018
Updated
Jun 17, 2026
Category
Operating system · Linux
Weakness (CWE)
CWE-362
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Linux Kernel.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
linuxlinux_kernel≤ 4.17.1

Official sources

References

Links published by the sources. Open them with care.