FlawAtlas
Search the atlas
UBUNTU-CVE-2018-12232 Moderate

UBUNTU-CVE-2018-12232

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.

Exploit probability Not scored
Published June 12, 2018
Required by Not available
Last source change April 22, 2026

02 / AFFECTED SOFTWARE

Affected packages

Ubuntu:16.04:LTS linux-azure

20 explicit affected versions

Ubuntu:16.04:LTS linux-gcp

18 explicit affected versions

Ubuntu:16.04:LTS linux-hwe

38 explicit affected versions

Ubuntu:18.04:LTS linux

16 explicit affected versions

Ubuntu:18.04:LTS linux-aws

11 explicit affected versions

Ubuntu:18.04:LTS linux-azure

11 explicit affected versions

Ubuntu:18.04:LTS linux-gcp

10 explicit affected versions

Ubuntu:18.04:LTS linux-kvm

11 explicit affected versions

Ubuntu:18.04:LTS linux-oem

8 explicit affected versions

Ubuntu:18.04:LTS linux-raspi2

12 explicit affected versions

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities UBUNTU-CVE-2018-12232

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.

View original source

05 / REFERENCES

Further evidence