CVE-2018-12232

medium
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Description

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.

References

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6d8c50dcb029872b298eea68cc6209c866fd3e14

http://www.securityfocus.com/bid/104453

https://access.redhat.com/errata/RHSA-2018:2948

https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14

https://lkml.org/lkml/2018/6/5/14

https://patchwork.ozlabs.org/patch/926519/

https://usn.ubuntu.com/3752-1/

https://usn.ubuntu.com/3752-2/

https://usn.ubuntu.com/3752-3/

Details

Source: MITRE

Published: 2018-06-12

Updated: 2018-10-31

Type: CWE-362

Risk Information

CVSS v2

Base Score: 7.1

Vector: AV:N/AC:M/Au:N/C:N/I:N/A:C

Impact Score: 6.9

Exploitability Score: 8.6

Severity: HIGH

CVSS v3

Base Score: 5.9

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Impact Score: 3.6

Exploitability Score: 2.2

Severity: MEDIUM

Vulnerable Software

Configuration 1

OR

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to 4.17.1 (inclusive)

Tenable Plugins

View all (14 total)

IDNameProductFamilySeverity
124810EulerOS Virtualization for ARM 64 3.0.1.0 : kernel (EulerOS-SA-2019-1486)NessusHuawei Local Security Checks
high
121571SUSE SLED15 / SLES15 Security Update : kernel (SUSE-SU-2019:0224-1)NessusSuSE Local Security Checks
high
121569SUSE SLES12 Security Update : kernel (SUSE-SU-2019:0222-1) (Spectre)NessusSuSE Local Security Checks
high
121466SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2019:0196-1)NessusSuSE Local Security Checks
high
121289openSUSE Security Update : the Linux Kernel (openSUSE-2019-65)NessusSuSE Local Security Checks
high
120741Fedora 28 : kernel (2018-bb7aab12cb)NessusFedora Local Security Checks
medium
118513RHEL 7 : kernel-alt (RHSA-2018:2948) (Spectre)NessusRed Hat Local Security Checks
high
112189Ubuntu 16.04 LTS / 18.04 LTS : Linux kernel (Azure, GCP, OEM) vulnerabilities (USN-3752-3)NessusUbuntu Local Security Checks
high
112110Ubuntu 16.04 LTS : Linux kernel (HWE) vulnerabilities (USN-3752-2)NessusUbuntu Local Security Checks
high
112109Ubuntu 18.04 LTS : Linux kernel vulnerabilities (USN-3752-1)NessusUbuntu Local Security Checks
high
111725Oracle Linux 7 : Unbreakable Enterprise kernel (ELSA-2018-4195)NessusOracle Linux Local Security Checks
high
110967Amazon Linux 2 : kernel (ALAS-2018-1044)NessusAmazon Linux Local Security Checks
medium
110783Amazon Linux AMI : kernel (ALAS-2018-1044)NessusAmazon Linux Local Security Checks
medium
110671Fedora 27 : kernel (2018-c449dc1c9c)NessusFedora Local Security Checks
medium