Race condition in Linux kernel - CVE-2018-12232

 

Race condition in Linux kernel - CVE-2018-12232

Published: June 13, 2018 / Updated: June 14, 2018


Vulnerability identifier: #VU13339
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-12232
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local attacker to cause DoS condition on the target system.

The vulnerability exists in the net/socket.c source code file due to the fchownat() function does not increment the reference count of a socket file descriptor, which could trigger a race condition between the sock_close() and sockfs_setattr() functions. A local attacker can submit specially crafted input, trigger a NULL pointer dereference condition and cause the system to crash..


Affected software

Linux kernel
Amazon Linux AMI
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for IBM System z (Structure A)
Fedora
kernel-alt (Red Hat package)
kernel

How to mitigate CVE-2018-12232

Install update from vendor's website.

kernel-alt (Red Hat package) - update to 4.14.0-115.el7a
kernel - addressed in versions 4.16.16-200.fc27, 4.16.16-300.fc28

External References

Related Security Bulletins