CVE-2018-12232

Published: 12 June 2018

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.

From the Ubuntu security team

Shankara Pailoor discovered that a race condition existed in the socket handling code in the Linux kernel. A local attacker could use this to cause a denial of service (system crash).

Priority

Medium

CVSS 3 base score: 5.9

Status

Package Release Status
linux
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-33.36)
Patches:
Introduced by 86741ec25462e4c8cdce6df2f41ead05568c7d5e
Fixed by 6d8c50dcb029872b298eea68cc6209c866fd3e14
linux-aws
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1020.20)
linux-azure
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1022.23)
linux-azure-edge
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Not vulnerable
(4.18.0-1003.3~18.04.1)
linux-euclid
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-flo
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-gcp
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1018.19)
linux-gke
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-goldfish
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-grouper
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-hwe
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Not vulnerable

linux-hwe-edge
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Not vulnerable
(4.18.0-11.12~18.04.1)
linux-kvm
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1020.20)
linux-lts-trusty
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-lts-utopic
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-lts-vivid
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-lts-wily
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-lts-xenial
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-maguro
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-mako
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-manta
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

linux-oem
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1017.20)
linux-raspi2
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (4.15.0-1021.23)
linux-snapdragon
Launchpad, Ubuntu, Debian
Upstream
Released (4.18~rc1)
Ubuntu 18.04 LTS (Bionic Beaver) Not vulnerable